add nixos specifications with zen, vanilla and xanmod kernels
This commit is contained in:
parent
0934faacfb
commit
4d9dc19119
1 changed files with 17 additions and 1 deletions
|
@ -3,6 +3,22 @@
|
||||||
pkgs,
|
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 = {
|
boot = {
|
||||||
consoleLogLevel = 3;
|
consoleLogLevel = 3;
|
||||||
initrd = {
|
initrd = {
|
||||||
|
@ -19,7 +35,7 @@
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
kernelModules = ["kvm-intel"];
|
kernelModules = ["kvm-intel"];
|
||||||
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
||||||
kernelParams = ["quiet"];
|
kernelParams = ["quiet"];
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
"vm.swappiness" = 0;
|
"vm.swappiness" = 0;
|
||||||
|
|
Loading…
Reference in a new issue