nixos-servers/system/weekly-rebuild.nix
Torjus Håkestad 57d79fc563
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Add weekly-rebuild timer
2024-10-12 21:27:02 +02:00

17 lines
404 B
Nix

{ pkgs, ... }:
{
systemd.services."weekly-rebuild" = {
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.bash}/bin/bash -c 'nixos-rebuild --boot --flake git+https://git.t-juice.club/torjus/nixos-servers'";
};
};
systemd.timers."weekly-rebuild" = {
enable = true;
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "Sun 06:00:00";
};
};
}