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

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

View file

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

View file

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