feat: power management for nas
This commit is contained in:
parent
b02acb5b60
commit
46f42dab4b
5 changed files with 235 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ in
|
|||
./modules/audiobookshelf.nix
|
||||
./modules/power-management.nix
|
||||
./modules/disk-monitoring.nix
|
||||
./modules/auto-shutdown.nix
|
||||
./modules/ugreen-leds.nix
|
||||
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -45,6 +46,10 @@ in
|
|||
networking.firewall.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
# Wake-on-LAN: fw re-wakes the NAS on demand after auto-shutdown.
|
||||
# Assumes WOL is enabled in BIOS; translates to `ethtool -s enp2s0 wol g`.
|
||||
networking.interfaces.enp2s0.wakeOnLan.enable = true;
|
||||
|
||||
# SOPS configuration
|
||||
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
sops.defaultSopsFile = ./secrets.yaml;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue