diff --git a/hosts/desktop1/configuration.nix b/hosts/desktop1/configuration.nix index eaf0da3..cb95a9a 100644 --- a/hosts/desktop1/configuration.nix +++ b/hosts/desktop1/configuration.nix @@ -23,11 +23,6 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; - boot.loader.grub.enable = true; - boot.loader.grub.efiSupport = true; - boot.loader.grub.device = "nodev"; - boot.loader.efi.canTouchEfiVariables = true; - boot.loader.grub.extraEntries = '' menuentry "Archlinux" { insmod part_gpt diff --git a/modules/nix/grub.nix b/modules/nix/grub.nix new file mode 100644 index 0000000..58ff8c4 --- /dev/null +++ b/modules/nix/grub.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: +{ + boot.loader.grub.enable = true; + boot.loader.grub.efiSupport = true; + boot.loader.grub.device = "nodev"; + boot.loader.efi.canTouchEfiVariables = true; +}