diff --git a/base/common_hardware.nix b/base/common_hardware.nix index f1288df..7e6239a 100644 --- a/base/common_hardware.nix +++ b/base/common_hardware.nix @@ -17,7 +17,7 @@ in { boot = { consoleLogLevel = 0; loader = { - systemd-boot = { + systemd-boot = lib.mkIf config.conf.useSystemdBootloader { enable = true; configurationLimit = 5; }; diff --git a/modules/conf.nix b/modules/conf.nix index 91f83db..a9e9734 100644 --- a/modules/conf.nix +++ b/modules/conf.nix @@ -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"; diff --git a/modules/programs/greetd.nix b/modules/programs/greetd.nix index e5bcfb9..f7cd71c 100644 --- a/modules/programs/greetd.nix +++ b/modules/programs/greetd.nix @@ -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"; }; diff --git a/modules/programs/sway.nix b/modules/programs/sway.nix index 7e45a9d..eef6025 100644 --- a/modules/programs/sway.nix +++ b/modules/programs/sway.nix @@ -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;