Torjus Håkestad
c4e1026d5e
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m37s
18 lines
426 B
Nix
18 lines
426 B
Nix
{ pkgs, ... }:
|
|
{
|
|
systemd.services."weekly-rebuild" = {
|
|
path = [ pkgs.git ];
|
|
serviceConfig = {
|
|
Type = "oneshot";
|
|
ExecStart = "${pkgs.nixos-rebuild}/bin/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";
|
|
};
|
|
};
|
|
}
|