mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
refactor: seperate loader module
This commit is contained in:
@@ -52,13 +52,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# --- Boot ---
|
# --- Boot ---
|
||||||
boot = {
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
loader = {
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
|
||||||
kernelParams = [ "nvidia-drm.modeset=1" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# --- Networking ---
|
# --- Networking ---
|
||||||
networking = {
|
networking = {
|
||||||
@@ -89,6 +83,7 @@
|
|||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
|
||||||
nixpkgs.config.cudaSupport = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
||||||
|
|||||||
5
modules/nixos/boot/loader.nix
Normal file
5
modules/nixos/boot/loader.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.boot = {
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user