diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-08-29 23:16:11 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-08-30 11:32:34 +0200 |
| commit | b13a7a31aedae645baa653047022f9899879e6e7 (patch) | |
| tree | 262d207010a3db787300acde96a947750b068f29 /nixos | |
| parent | 26e8f65ca49e2063b81e900941284def8e8726e0 (diff) | |
nixos: nix: fix git and auto update
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/nix.nix | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/nixos/nix.nix b/nixos/nix.nix index df864fd..5587491 100644 --- a/nixos/nix.nix +++ b/nixos/nix.nix @@ -1,16 +1,26 @@ -{pkgs, ...}: { +{...}: { personal.nix = { enable = true; - autoUpgrade = true; + autoUpgrade = { + enable = true; + autoUpdateInputs = [ + "precision-3571/home-manager" + "precision-3571/my-nixpkgs" + "precision-3571/nixos-hardware" + "precision-3571/nixpkgs" + "precision-3571/stylix" + ]; + }; flake = "git+file:///etc/nixos"; gc.enable = true; }; - system.autoUpgrade.flags = pkgs.personal.lib.updateInputFlags [ - "precision-3571/home-manager" - "precision-3571/my-nixpkgs" - "precision-3571/nixos-hardware" - "precision-3571/nixpkgs" - "precision-3571/stylix" - ]; + systemd.services.flake-update = { + preStart = '' + pushd /home/qaristote/code/nix/machines/precision-3571 + git status + popd + ''; + environment.HOME = "/root"; + }; } |
