From 0fbceaf0828f7aefe69a51b6880506445c8ab77c Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Tue, 17 Dec 2024 18:44:06 +0100 Subject: [PATCH] solis powers off at night --- machines/solis/configuration.nix | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/machines/solis/configuration.nix b/machines/solis/configuration.nix index 7fa49ac..76601a9 100644 --- a/machines/solis/configuration.nix +++ b/machines/solis/configuration.nix @@ -33,7 +33,7 @@ systemd.timers."backupSyncthing" = { wantedBy = [ "timers.target" ]; timerConfig = { - OnCalendar = "daily"; + OnCalendar = "weekly"; Persistent = true; }; }; @@ -48,26 +48,13 @@ }; }; - services.samba = { - enable = false; - securityType = "user"; - openFirewall = true; - shares = { - public = { - path = "/home/horseman/mnt/sda1"; - browseable = "yes"; - "read only" = "yes"; - "guest ok" = "yes"; - "create mask" = "0644"; - "directory mask" = "0755"; - "force user" = "user"; - }; - }; - }; - - services.samba-wsdd = { + services.sleep-at-night = { enable = true; - openFirewall = true; + shutdown = { + hour = 00; + minute = 30; + }; + wakeup = "08:00:00"; }; networking.firewall.enable = true;