From c089cbedee90f8465bb9cea2370f1536f54a25f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 12 Oct 2024 21:59:28 +0200 Subject: [PATCH] Remove rebuild switch, messes with running unit --- system/weekly-rebuild.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/weekly-rebuild.nix b/system/weekly-rebuild.nix index b52cbd4..7c81203 100644 --- a/system/weekly-rebuild.nix +++ b/system/weekly-rebuild.nix @@ -8,10 +8,7 @@ serviceConfig = { Type = "oneshot"; 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#" - ]; + ExecStartPost = "${pkgs.nix}/bin/nix-collect-garbage --delete-older-than 30d"; }; }; systemd.timers."weekly-rebuild" = {