From c7fb0d754655d641167f7fae08524b7a2a98c38e Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 7 Apr 2023 19:51:52 +0530 Subject: [PATCH] move kernel options --- system/default.nix | 7 ------- system/hardware/kernel.nix | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/system/default.nix b/system/default.nix index f4c36e5..9657b3b 100644 --- a/system/default.nix +++ b/system/default.nix @@ -9,13 +9,6 @@ ./virtualisation.nix ]; - boot = { - initrd.systemd.enable = true; - kernel.sysctl = { - "vm.swappiness" = 0; - }; - }; - console.useXkbConfig = true; environment.sessionVariables = { diff --git a/system/hardware/kernel.nix b/system/hardware/kernel.nix index ab0e1f8..fa769e2 100644 --- a/system/hardware/kernel.nix +++ b/system/hardware/kernel.nix @@ -12,10 +12,14 @@ "rtsx_pci_sdmmc" ]; kernelModules = [ "i915" ]; + systemd.enable = true; }; kernelModules = [ "kvm-intel" ]; kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest; kernelParams = [ "quiet" ]; + kernel.sysctl = { + "vm.swappiness" = 0; + }; }; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";