move grub config to module

This commit is contained in:
smayzy 2025-06-28 13:49:12 +00:00
parent d08dd1bed0
commit 8cef8a8839
2 changed files with 7 additions and 5 deletions

View File

@ -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

7
modules/nix/grub.nix Normal file
View File

@ -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;
}