remove old commented out code (pixiecore, utils, xenia kernel)
This commit is contained in:
parent
2de002ef1b
commit
6ec141902a
2 changed files with 0 additions and 120 deletions
|
@ -11,33 +11,8 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../common.nix
|
../../common.nix
|
||||||
../../modules
|
../../modules
|
||||||
#inputs.mms.module
|
|
||||||
];
|
];
|
||||||
|
|
||||||
#nixpkgs = {
|
|
||||||
#overlays = [
|
|
||||||
#(self: super: {
|
|
||||||
#linux_zen_xeniafied = pkgs.linuxPackagesFor (pkgs.linuxKernel.kernels.linux_zen.override {
|
|
||||||
#structuredExtraConfig = with lib.kernel; {
|
|
||||||
##"FB" = yes;
|
|
||||||
##"FRAMEBUFFER_CONSOLE" = yes;
|
|
||||||
##"VGA_CONSOLE" = yes;
|
|
||||||
##"VIDEO_SELECT" = yes;
|
|
||||||
#LOGO = lib.mkForce yes;
|
|
||||||
#LOGO_LINUX_CLUT224 = yes;
|
|
||||||
#};
|
|
||||||
#ignoreConfigErrors = true;
|
|
||||||
#});
|
|
||||||
#})
|
|
||||||
#];
|
|
||||||
#};
|
|
||||||
#boot.kernelPatches = [
|
|
||||||
#{
|
|
||||||
#name = "fomx";
|
|
||||||
#patch = ../other/0001-fomx.patch;
|
|
||||||
#}
|
|
||||||
#];
|
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||||
|
|
||||||
jade = {
|
jade = {
|
||||||
|
@ -59,7 +34,6 @@
|
||||||
"/".options = ["compress=zstd:3"];
|
"/".options = ["compress=zstd:3"];
|
||||||
"/home".options = ["compress=zstd:3"];
|
"/home".options = ["compress=zstd:3"];
|
||||||
"/nix".options = ["compress=zstd:3" "noatime"];
|
"/nix".options = ["compress=zstd:3" "noatime"];
|
||||||
#"/swap".options = [ "noatime" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -85,7 +59,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# hardware.keyboard.uhk.enable = true;
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -106,43 +79,6 @@
|
||||||
|
|
||||||
systemd.services."NetworkManager-wait-online".enable = false;
|
systemd.services."NetworkManager-wait-online".enable = false;
|
||||||
|
|
||||||
# services.pixiecore =
|
|
||||||
# let
|
|
||||||
# nixpkgs = builtins.getFlake "nixpkgs/nixos-unstable";
|
|
||||||
# sys = nixpkgs.lib.nixosSystem {
|
|
||||||
# system = "x86_64-linux";
|
|
||||||
# modules = [
|
|
||||||
# ({config, pkgs, lib, modulesPath, ...}: {
|
|
||||||
# imports = [
|
|
||||||
# (modulesPath + "/installer/netboot/netboot-base.nix")
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# services.getty.autologinUser = lib.mkForce "root";
|
|
||||||
# console.keyMap = "de";
|
|
||||||
|
|
||||||
# system.stateVersion = config.system.nixos.release;
|
|
||||||
# environment.systemPackages = with pkgs; [
|
|
||||||
# helix nil git neofetch
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# programs = {
|
|
||||||
# zsh = {
|
|
||||||
# enable = true;
|
|
||||||
# enableCompletion = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# })
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# build = sys.config.system.build;
|
|
||||||
# in {
|
|
||||||
# enable = true;
|
|
||||||
# openFirewall = true;
|
|
||||||
# kernel = "${build.kernel}/bzImage";
|
|
||||||
# initrd = "${build.netbootRamdisk}/initrd";
|
|
||||||
# cmdLine = "init=${build.toplevel}/init loglevel=4";
|
|
||||||
# };
|
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
create-swapfile = {
|
create-swapfile = {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
}: rec {
|
|
||||||
# taken from https://github.com/NixOS/nixpkgs/blob/3650808d85dccbfa3be3d785dfd3ce33a757bd2c/pkgs/build-support/trivial-builders/default.nix#L335
|
|
||||||
writeNuShellApplication = {
|
|
||||||
name,
|
|
||||||
text,
|
|
||||||
runtimeInputs ? [],
|
|
||||||
meta ? {},
|
|
||||||
checkPhase ? null,
|
|
||||||
}:
|
|
||||||
writeTextFile {
|
|
||||||
inherit name meta;
|
|
||||||
executable = true;
|
|
||||||
destination = "/bin/${name}";
|
|
||||||
allowSubstitutes = true;
|
|
||||||
preferLocalBuild = false;
|
|
||||||
text =
|
|
||||||
''
|
|
||||||
#!${pkgs.nushell}
|
|
||||||
''
|
|
||||||
+ lib.optionalString (runtimeInputs != []) ''
|
|
||||||
|
|
||||||
$env.PATH = ($env.PATH | split row (char esep) | prepend '${lib.makeBinPath runtimeInputs}');
|
|
||||||
''
|
|
||||||
+ ''
|
|
||||||
|
|
||||||
${text}
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase =
|
|
||||||
# GHC (=> shellcheck) isn't supported on some platforms (such as risc-v)
|
|
||||||
# but we still want to use writeShellApplication on those platforms
|
|
||||||
if checkPhase == null
|
|
||||||
then ''
|
|
||||||
runHook preCheck
|
|
||||||
|
|
||||||
nu -c "nu-check -d $target"
|
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
''
|
|
||||||
else checkPhase;
|
|
||||||
};
|
|
||||||
packageNushellApplication = {
|
|
||||||
name,
|
|
||||||
path,
|
|
||||||
runtimeInputs ? [],
|
|
||||||
meta ? {},
|
|
||||||
checkPhase ? null,
|
|
||||||
}:
|
|
||||||
writeNuShellApplication {
|
|
||||||
inherit name runtimeInputs meta checkPhase;
|
|
||||||
text = builtins.readFile path;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue