system.kernel: add cachyos-server

This commit is contained in:
2024-04-20 10:55:18 +08:00
parent dd2cab14d7
commit 80167bda73
6 changed files with 6 additions and 8 deletions

View File

@@ -43,7 +43,6 @@ inputs:
grub.installDevice = "efi";
nixpkgs.march = "silvermont";
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
kernel.patches = [ "cjktty" "lantian" ];
networking = { hostname = "nas"; networkd = {}; };
};
hardware = { cpus = [ "intel" ]; gpu.type = "intel"; };

View File

@@ -54,7 +54,7 @@ inputs:
};
nixpkgs =
{ march = "znver4"; cuda = { enable = true; capabilities = [ "8.9" ]; forwardCompat = false; }; };
kernel = { varient = "cachyos"; patches = [ "cjktty" "hibernate-progress" ]; };
kernel.patches = [ "cjktty" "hibernate-progress" ];
networking.hostname = "pc";
sysctl.laptop-mode = 5;
};

View File

@@ -31,7 +31,7 @@ inputs:
nixpkgs.march = "skylake";
grub.installDevice = "efi";
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
kernel.patches = [ "cjktty" "lantian" "surface" ];
kernel = { variant = "xanmod-lts"; patches = [ "cjktty" "lantian" "surface" ]; };
networking.hostname = "surface";
};
hardware = { cpus = [ "intel" ]; gpu.type = "intel"; };

View File

@@ -48,7 +48,6 @@ inputs:
};
};
gui = { preferred = false; autoStart = true; };
kernel.patches = [ "cjktty" "lantian" ];
networking.hostname = "xmupc1";
nix.remote.slave.enable = true;
};

View File

@@ -42,7 +42,6 @@ inputs:
};
};
gui = { preferred = false; autoStart = true; };
kernel.patches = [ "cjktty" "lantian" ];
networking.hostname = "xmupc2";
nix.remote.slave.enable = true;
};

View File

@@ -4,10 +4,10 @@ inputs:
{
varient = mkOption
{
type = types.enum [ "nixos" "xanmod-lts" "xanmod-latest" "cachyos" "cachyos-lto" ];
default = "xanmod-lts";
type = types.enum [ "nixos" "xanmod-lts" "xanmod-latest" "cachyos" "cachyos-lto" "cachyos-server" ];
default = if inputs.config.nixos.system.gui.preferred then "cachyos" else "cachyos-server";
};
patches = mkOption { type = types.listOf types.nonEmptyStr; default = []; };
patches = mkOption { type = types.listOf types.nonEmptyStr; default = [ "cjktty" ]; };
modules =
{
install = mkOption { type = types.listOf types.str; default = []; };
@@ -45,6 +45,7 @@ inputs:
xanmod-latest = inputs.pkgs.linuxPackages_xanmod_latest;
cachyos = inputs.pkgs.linuxPackages_cachyos;
cachyos-lto = inputs.pkgs.linuxPackages_cachyos-lto;
cachyos-server = inputs.pkgs.linuxPackages_cachyos-server;
rpi3 = inputs.pkgs.linuxPackages_rpi3;
}.${kernel.varient};
kernelPatches =