more stuff

This commit is contained in:
Noah Masur
2025-02-01 16:10:16 -05:00
parent ea3ab18cca
commit 1226eafef2
34 changed files with 291 additions and 308 deletions

View File

@@ -0,0 +1,18 @@
{ config, lib, ... }:
let
cfg = config.nmasur.presets.services.logind;
in
{
options.nmasur.presets.services.logind.enable = lib.mkEnableOption "Logind power key management";
config = lib.mkIf cfg.enable {
# Use power button to sleep instead of poweroff
services.logind.powerKey = "suspend";
services.logind.powerKeyLongPress = "poweroff";
};
}