From 8cef8a8839f8c4f847ccd9891e75468fdb0c1855 Mon Sep 17 00:00:00 2001 From: smayzy Date: Sat, 28 Jun 2025 13:49:12 +0000 Subject: [PATCH] move grub config to module --- hosts/desktop1/configuration.nix | 5 ----- modules/nix/grub.nix | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 modules/nix/grub.nix 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; +}