1
1
Fork 0
nixos/options/custom/services/logind.nix

17 lines
287 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.custom.services.logind;
in
{
options.custom.services.logind.enable = mkOption { default = false; };
config = mkIf cfg.enable {
services.logind = {
lidSwitch = "suspend-then-hibernate"; # Laptop lid switch
};
};
}