summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-15 14:00:45 +0200
committerAlan Pearce2017-09-15 14:00:45 +0200
commit28e8cdf197e28662d2933daa2a742cff91ed05af (patch)
tree1fe469e3fdb49921c59fd55a95e258ff2d38095b
parent3cd6ae385ed8ac2efd7b63ab6bd698ea8efc0c67 (diff)
downloadnixfiles-28e8cdf197e28662d2933daa2a742cff91ed05af.tar.lz
nixfiles-28e8cdf197e28662d2933daa2a742cff91ed05af.tar.zst
nixfiles-28e8cdf197e28662d2933daa2a742cff91ed05af.zip
systemd-boot: Don't allow modifying boot options
-rw-r--r--modules/systemd-boot.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/systemd-boot.nix b/modules/systemd-boot.nix
index 4f7ca361..80e79fdc 100644
--- a/modules/systemd-boot.nix
+++ b/modules/systemd-boot.nix
@@ -1,6 +1,9 @@
 { config, pkgs, ... }:
 
-{ boot.loader.systemd-boot.enable = true;
+{ boot.loader.systemd-boot = {
+    enable = true;
+    editor = false; # Don't allow modification
+  };
   boot.loader.efi.canTouchEfiVariables = true;
   boot.vesa = true;
   boot.earlyVconsoleSetup = true;