ssh in lan

This commit is contained in:
2026-07-15 14:14:07 -03:00
parent 0aa5c4021e
commit 0c69e71585
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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;
@@ -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 {