diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-07-15 12:51:55 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-07-15 12:51:55 +0200 |
| commit | 2ce47665ae600e107925a89c01f06050df82331f (patch) | |
| tree | 4d9eb6846c32ff4c760ed9d35202649bf139f198 | |
| parent | 9943f54a7e6a17d3e3c0566c9b50e98c26896270 (diff) | |
| download | nixos-2ce47665ae600e107925a89c01f06050df82331f.tar nixos-2ce47665ae600e107925a89c01f06050df82331f.tar.gz nixos-2ce47665ae600e107925a89c01f06050df82331f.tar.bz2 nixos-2ce47665ae600e107925a89c01f06050df82331f.tar.xz nixos-2ce47665ae600e107925a89c01f06050df82331f.zip | |
Be more aggressive than pull
| -rw-r--r-- | hel.nix | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -558,4 +558,12 @@ | |||
| 558 | disable spoolss = yes | 558 | disable spoolss = yes |
| 559 | ''; | 559 | ''; |
| 560 | }; | 560 | }; |
| 561 | |||
| 562 | systemd.services."nixos-upgrade" = { | ||
| 563 | path = with pkgs; [ git ]; | ||
| 564 | preStart = '' | ||
| 565 | git -C /etc/nixos fetch --recurse-submodules | ||
| 566 | git -C /etc/nixos reset --hard origin/master | ||
| 567 | ''; | ||
| 568 | }; | ||
| 561 | } | 569 | } |
