use specializations to have multiple kernel versions
This commit is contained in:
parent
dd3c0e36b9
commit
e2d2def20b
3 changed files with 27 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
./rollback.nix
|
||||
./secureboot.nix
|
||||
./security.nix
|
||||
./specialisations.nix
|
||||
./virtualisation.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
systemd.enable = true;
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
||||
kernelParams = [ "quiet" ];
|
||||
kernel.sysctl = {
|
||||
"vm.swappiness" = 10;
|
||||
|
|
25
hosts/skipper/specialisations.nix
Normal file
25
hosts/skipper/specialisations.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
specialisation = {
|
||||
xanmod = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
boot = {
|
||||
kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_latest;
|
||||
};
|
||||
system.nixos.tags = [ "with-xanmod" ];
|
||||
};
|
||||
};
|
||||
zen = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
boot = {
|
||||
kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
|
||||
};
|
||||
system.nixos.tags = [ "with-zen" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue