Make systemdboot optional
This commit is contained in:
parent
4afd999894
commit
8c19df773b
4 changed files with 11 additions and 3 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue