From 6ae866d53e4482668a9de7c616edfe292a931f2f Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Fri, 1 Mar 2024 14:53:40 +0100 Subject: [PATCH] add rebuild timer for queen --- nixos/hosts/queen/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nixos/hosts/queen/configuration.nix b/nixos/hosts/queen/configuration.nix index e406620..529339b 100644 --- a/nixos/hosts/queen/configuration.nix +++ b/nixos/hosts/queen/configuration.nix @@ -97,6 +97,20 @@ youtube-dl ]; + # Create an auto-update systemd service that runs every Saturday + systemd.services = { + updater = { + path = [ + pkgs.rebuild + ]; + script = "rebuild"; + serviceConfig = { + User = config.users.users.default.name; + }; + startAt = "weekly"; + }; + }; + # Enable networking networking.networkmanager.enable = true; networking.nat.enable = true;