summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 13:54:24 +0200
committerAlan Pearce2017-09-09 13:56:42 +0200
commitbeeb65621be5ccecb06c5994696599a282530625 (patch)
tree85f6d49948eaa456b49ae079f2ed11894bcaac3c
parenta6ecfec5e8401c10ab8bbddc39cd203b7c0eeac7 (diff)
downloadnixfiles-beeb65621be5ccecb06c5994696599a282530625.tar.lz
nixfiles-beeb65621be5ccecb06c5994696599a282530625.tar.zst
nixfiles-beeb65621be5ccecb06c5994696599a282530625.zip
Add grub2 module
-rw-r--r--machines/satoshipad.nix1
-rw-r--r--modules/grub2.nix12
2 files changed, 13 insertions, 0 deletions
diff --git a/machines/satoshipad.nix b/machines/satoshipad.nix
index 40fa3c72..ff3a1046 100644
--- a/machines/satoshipad.nix
+++ b/machines/satoshipad.nix
@@ -3,6 +3,7 @@
 {
   imports = [
     ./hardware-configuration.nix
+    ./modules/grub2.nix
   ];
 
   networking.hostName = "satoshipad";
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;
+  };
+}