diff options
Diffstat (limited to 'modules/boot')
| -rw-r--r-- | modules/boot/options.nix | 4 | ||||
| -rw-r--r-- | modules/boot/system/default.nix | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/modules/boot/options.nix b/modules/boot/options.nix index c040032..dc6d3b3 100644 --- a/modules/boot/options.nix +++ b/modules/boot/options.nix @@ -7,9 +7,7 @@ in { options = { collinux.boot = { - bootloader = mkOption { - type = types.enum ["grub" "systemd-boot"]; - }; + systemd-boot.enable = mkEnableOption "systemd-boot"; plymouth = { enable = mkEnableOption "plymouth bootsplash"; theme = mkOption { diff --git a/modules/boot/system/default.nix b/modules/boot/system/default.nix index e32601c..53f18be 100644 --- a/modules/boot/system/default.nix +++ b/modules/boot/system/default.nix @@ -17,11 +17,10 @@ in { systemd.enable = true; }; loader = { - systemd-boot = lib.optionalAttrs (cfg.bootloader == "systemd-boot" && !cfg.secureBoot.enable) { + systemd-boot = lib.optionalAttrs (cfg.systemd-boot.enable && !cfg.secureBoot.enable) { enable = true; configurationLimit = 3; }; - grub = lib.optionalAttrs (cfg.bootloader == "grub") {enable = true;}; efi.canTouchEfiVariables = true; timeout = 0; }; |
