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. # broadly on every network interface by the firewall.
services.openssh = { services.openssh = {
enable = true; enable = true;
openFirewall = false; openFirewall = true;
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = false;
KbdInteractiveAuthentication = false; KbdInteractiveAuthentication = false;
@@ -29,14 +29,14 @@ let
} }
listener { listener {
timeout = 10 timeout = 4
on-timeout = loginctl lock-session on-timeout = loginctl lock-session
} }
listener { listener {
timeout = 15 timeout = 5
on-timeout = hyprctl dispatch dpms off on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "off" })'
on-resume = hyprctl dispatch dpms on on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
} }
# No suspend listener. # No suspend listener.
''; '';
@@ -45,7 +45,7 @@ let
general { general {
lock_cmd = pidof hyprlock || hyprlock lock_cmd = pidof hyprlock || hyprlock
before_sleep_cmd = loginctl lock-session before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
} }
listener { listener {
@@ -55,8 +55,8 @@ let
listener { listener {
timeout = 660 timeout = 660
on-timeout = hyprctl dispatch dpms off on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "off" })'
on-resume = hyprctl dispatch dpms on on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
} }
listener { listener {