summaryrefslogtreecommitdiff
path: root/nixos/features/services/core/systemd-boot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/features/services/core/systemd-boot.nix')
-rw-r--r--nixos/features/services/core/systemd-boot.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/features/services/core/systemd-boot.nix b/nixos/features/services/core/systemd-boot.nix
new file mode 100644
index 0000000..2826f1b
--- /dev/null
+++ b/nixos/features/services/core/systemd-boot.nix
@@ -0,0 +1,11 @@
+{ config, lib, ... }: let
+ cfg = config.features.services.core.systemd-boot;
+in {
+ options.features.services.core.systemd-boot.enable = lib.mkEnableOption "systemd-boot";
+ config = lib.mkIf cfg.enable {
+ boot.loader = {
+ systemd-boot.enable = true;
+ efi.canTouchEfiVariables = true;
+ };
+ };
+}