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;