Make systemdboot optional

This commit is contained in:
DashieTM 2025-02-25 23:02:29 +01:00
parent 4afd999894
commit 8c19df773b
4 changed files with 11 additions and 3 deletions

View file

@ -17,7 +17,7 @@ in {
boot = { boot = {
consoleLogLevel = 0; consoleLogLevel = 0;
loader = { loader = {
systemd-boot = { systemd-boot = lib.mkIf config.conf.useSystemdBootloader {
enable = true; enable = true;
configurationLimit = 5; configurationLimit = 5;
}; };

View file

@ -20,6 +20,14 @@
''; '';
}; };
useSystemdBootloader = lib.mkOption {
default = true;
example = false;
description = ''
use systemd bootloader.
'';
};
cpu = lib.mkOption { cpu = lib.mkOption {
# TODO: how to enable arm? # TODO: how to enable arm?
default = "amd"; default = "amd";

View file

@ -40,7 +40,7 @@
} --config /etc/greetd/hyprgreet.conf"; } --config /etc/greetd/hyprgreet.conf";
example = "${ example = "${
lib.getExe pkgs.cage lib.getExe pkgs.cage
} -s -- ${lib.getEze pkgs.regreet}"; } -s -- ${lib.getExe pkgs.regreet}";
type = lib.types.str; type = lib.types.str;
description = "The compositor/greeter command to run"; description = "The compositor/greeter command to run";
}; };

View file

@ -19,7 +19,7 @@
}; };
}; };
config = lib.mkIf config.mods.sway.enable ( config = lib.mkIf config.mods.sway.enable (
lib.optionalAttrs (options ? wayland.windowManger) { lib.optionalAttrs (options ? wayland.windowManger.sway) {
wayland.windowManager.sway = wayland.windowManager.sway =
{ {
enable = true; enable = true;