ssh in lan
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user