Skip to content

Commit

Permalink
Make systemdboot optional
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Feb 25, 2025
1 parent 4afd999 commit 8c19df7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base/common_hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ in {
boot = {
consoleLogLevel = 0;
loader = {
systemd-boot = {
systemd-boot = lib.mkIf config.conf.useSystemdBootloader {
enable = true;
configurationLimit = 5;
};
Expand Down
8 changes: 8 additions & 0 deletions modules/conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/greetd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8c19df7

Please sign in to comment.