aboutsummaryrefslogtreecommitdiff
path: root/modules/boot
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-08 17:03:20 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-08 17:14:14 +0000
commit82ec91b4d2c253c6ccb783f960a2788f230d6ad1 (patch)
tree94dad925340787e5a045d9bb0d094f71dedce036 /modules/boot
parentcfe198ee85f3c5ee41f4221f49b73dd492b42fdc (diff)
start avoiding lib.enum; start using hjem generators
Diffstat (limited to 'modules/boot')
-rw-r--r--modules/boot/options.nix4
-rw-r--r--modules/boot/system/default.nix3
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;
};