Collect garbage after rebuild
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m36s
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m36s
This commit is contained in:
parent
c4e1026d5e
commit
b7d9a12786
@ -1,10 +1,17 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
systemd.services."weekly-rebuild" = {
|
systemd.services."weekly-rebuild" = {
|
||||||
path = [ pkgs.git ];
|
path = [
|
||||||
|
pkgs.git
|
||||||
|
pkgs.nix
|
||||||
|
];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild boot --flake git+https://git.t-juice.club/torjus/nixos-servers";
|
ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild boot --flake git+https://git.t-juice.club/torjus/nixos-servers#";
|
||||||
|
ExecStartPost = [
|
||||||
|
"${pkgs.nix}/bin/nix-collect-garbage --delete-older-than 30d"
|
||||||
|
"${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --flake git+https://git.t-juice.club/torjus/nixos-servers#"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.timers."weekly-rebuild" = {
|
systemd.timers."weekly-rebuild" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user