From beeb65621be5ccecb06c5994696599a282530625 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Sep 2017 13:54:24 +0200 Subject: Add grub2 module --- machines/satoshipad.nix | 1 + modules/grub2.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/grub2.nix diff --git a/machines/satoshipad.nix b/machines/satoshipad.nix index 40fa3c7..ff3a104 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 0000000..6eaa8cc --- /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; + }; +} -- cgit 1.4.1