I hope this works?

This commit is contained in:
Lillian Violet 2024-03-01 15:04:14 +01:00
parent 546b38547d
commit 25ddebec3c

View file

@ -97,17 +97,16 @@
youtube-dl youtube-dl
]; ];
# Create an auto-update systemd service that runs every Saturday # Create an auto-update systemd service that runs every day
systemd.services = { systemd.services = {
updater = { updater = {
path = [ path = [
pkgs.rebuild pkgs.rebuild
pkgs.nix
pkgs.bash
]; ];
script = "rebuild"; script = "bash /run/current-system/sw/bin/rebuild";
serviceConfig = { startAt = "daily";
User = config.users.users.root;
};
startAt = "weekly";
}; };
}; };