refactor: move specialisation configs to separate file
This commit is contained in:
parent
4d9dc19119
commit
530ba15140
3 changed files with 23 additions and 18 deletions
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
|
@ -13,6 +12,7 @@
|
|||
./rollback.nix
|
||||
./secureboot.nix
|
||||
./security.nix
|
||||
./specialisations.nix
|
||||
./virtualisation.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -3,22 +3,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
specialisation = {
|
||||
xanmod = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_latest;
|
||||
system.nixos.tags = ["with-xanmod"];
|
||||
};
|
||||
};
|
||||
vanilla = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||
system.nixos.tags = ["with-vanilla"];
|
||||
};
|
||||
};
|
||||
};
|
||||
boot = {
|
||||
consoleLogLevel = 3;
|
||||
initrd = {
|
||||
|
@ -41,6 +25,5 @@
|
|||
"vm.swappiness" = 0;
|
||||
};
|
||||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
}
|
||||
|
|
22
hosts/skipper/specialisations.nix
Normal file
22
hosts/skipper/specialisations.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
specialisation = {
|
||||
xanmod = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_latest;
|
||||
system.nixos.tags = ["with-xanmod"];
|
||||
};
|
||||
};
|
||||
vanilla = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||
system.nixos.tags = ["with-vanilla"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue