summary refs log tree commit diff stats
path: root/modules/grub2.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/grub2.nix')
-rw-r--r--modules/grub2.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/grub2.nix b/modules/grub2.nix
new file mode 100644
index 00000000..6eaa8cc5
--- /dev/null
+++ b/modules/grub2.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+
+{ boot.loader = {
+    grub = {
+      enable = true;
+      version = 2;
+      device = "nodev";
+      efiSupport = true;
+    };
+    efi.canTouchEfiVariables = true;
+  };
+}