diff --git a/flake.nix b/flake.nix index afc8e12..0d08c3f 100644 --- a/flake.nix +++ b/flake.nix @@ -105,14 +105,9 @@ iosevka-lyte.url = "github:lytedev/iosevka-lyte"; # iosevka-lyte.inputs.nixpkgs.follows = "nixpkgs-unstable"; - quickshell = { - url = "github:outfoxxed/quickshell"; - inputs.nixpkgs.follows = "nixpkgs-unstable"; - }; noctalia = { url = "github:noctalia-dev/noctalia-shell"; inputs.nixpkgs.follows = "nixpkgs-unstable"; - inputs.quickshell.follows = "quickshell"; }; spicetify-nix = { diff --git a/packages/hosts/flab.nix b/packages/hosts/flab.nix index 52c591c..de17996 100644 --- a/packages/hosts/flab.nix +++ b/packages/hosts/flab.nix @@ -2,6 +2,7 @@ diskoConfigurations, hardware, pkgs, + lib, ... }: { @@ -72,4 +73,33 @@ }; home.stateVersion = "25.11"; }; + services.logind = + let + logindSettings = { + "KillUserProcesses" = lib.mkForce false; + + "HandlePowerKey" = lib.mkForce "suspend"; + "HandlePowerKeyLongPress" = lib.mkForce "poweroff"; + + "HandleRebootKey" = lib.mkForce "reboot"; + "HandleRebootKeyLongPress" = lib.mkForce "poweroff"; + + "HandleSuspendKey" = lib.mkForce "suspend"; + "HandleSuspendKeyLongPress" = lib.mkForce "hibernate"; + + "HandleHibernateKey" = lib.mkForce "hibernate"; + "HandleHibernateKeyLongPress" = lib.mkForce "hibernate"; + + "HandleLidSwitch" = lib.mkForce "suspend"; + "HandleLidSwitchExternalPower" = lib.mkForce "suspend"; + "HandleLidSwitchDocked" = lib.mkForce "suspend"; + + "IdleActionSec" = lib.mkForce "11m"; + "IdleAction" = lib.mkForce "suspend"; + }; + in + { + settings.Login = logindSettings; + }; + }