refactor: move specialisation configs to separate file

This commit is contained in:
Adithya 2023-07-11 22:25:07 +05:30
parent 4d9dc19119
commit 530ba15140
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 23 additions and 18 deletions

View file

@ -1,5 +1,4 @@
{
config,
lib,
pkgs,
...
@ -13,6 +12,7 @@
./rollback.nix
./secureboot.nix
./security.nix
./specialisations.nix
./virtualisation.nix
];

View file

@ -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";
}

View 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"];
};
};
};
}