diff --git a/hosts/jpporta-nixos/configuration.nix b/hosts/jpporta-nixos/configuration.nix index 6c3f4c8..dacf6bf 100644 --- a/hosts/jpporta-nixos/configuration.nix +++ b/hosts/jpporta-nixos/configuration.nix @@ -213,7 +213,7 @@ # broadly on every network interface by the firewall. services.openssh = { enable = true; - openFirewall = false; + openFirewall = true; settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false; diff --git a/modules/home-manager/power-profiles/default.nix b/modules/home-manager/power-profiles/default.nix index 29209b5..0ff0150 100644 --- a/modules/home-manager/power-profiles/default.nix +++ b/modules/home-manager/power-profiles/default.nix @@ -29,14 +29,14 @@ let } listener { - timeout = 10 + timeout = 4 on-timeout = loginctl lock-session } listener { - timeout = 15 - on-timeout = hyprctl dispatch dpms off - on-resume = hyprctl dispatch dpms on + timeout = 5 + on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "off" })' + on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })' } # No suspend listener. ''; @@ -45,7 +45,7 @@ let general { lock_cmd = pidof hyprlock || hyprlock before_sleep_cmd = loginctl lock-session - after_sleep_cmd = hyprctl dispatch dpms on + after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })' } listener { @@ -55,8 +55,8 @@ let listener { timeout = 660 - on-timeout = hyprctl dispatch dpms off - on-resume = hyprctl dispatch dpms on + on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "off" })' + on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })' } listener {