feat: merge bootloader related features

This commit is contained in:
2026-05-26 21:11:59 +02:00
parent db1e9c15ac
commit a9378ca8b5
7 changed files with 129 additions and 132 deletions

View File

@@ -8,11 +8,6 @@
options.features.power = {
enable = lib.mkEnableOption "laptop power management";
resumeDevice = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
};
lidSwitch = lib.mkOption {
type = lib.types.str;
default = "suspend-then-hibernate";
@@ -40,8 +35,6 @@
};
config = lib.mkIf cfg.enable {
boot.resumeDevice = lib.mkIf (cfg.resumeDevice != null) cfg.resumeDevice;
services.logind.settings.Login = {
HandleLidSwitch = cfg.lidSwitch;
HandlePowerKey = cfg.powerKey;