diff --git a/modules/hosts/sirius/config.nix b/modules/hosts/sirius/config.nix index fdf87a0..7f7aa4d 100644 --- a/modules/hosts/sirius/config.nix +++ b/modules/hosts/sirius/config.nix @@ -52,13 +52,7 @@ }; # --- Boot --- - boot = { - loader = { - efi.canTouchEfiVariables = true; - }; - kernelPackages = pkgs.linuxKernel.packages.linux_zen; - kernelParams = [ "nvidia-drm.modeset=1" ]; - }; + boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen; # --- Networking --- networking = { @@ -89,6 +83,7 @@ nvidiaSettings = true; }; }; + boot.kernelParams = [ "nvidia-drm.modeset=1" ]; nixpkgs.config.cudaSupport = true; services.xserver.videoDrivers = [ "nvidia" ]; environment.systemPackages = with pkgs; [ nvtopPackages.full ]; diff --git a/modules/nixos/boot/loader.nix b/modules/nixos/boot/loader.nix new file mode 100644 index 0000000..e03e00c --- /dev/null +++ b/modules/nixos/boot/loader.nix @@ -0,0 +1,5 @@ +{ + flake.modules.nixos.boot = { + boot.loader.efi.canTouchEfiVariables = true; + }; +}