diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-03-07 15:42:39 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-03-07 15:42:39 -0500 |
commit | 9603fe34ebb0b3623dd64d8763aeec6a370361b6 (patch) | |
tree | 7a4ee55ad65eee58130357d62f2184959f551623 /modules | |
parent | 0f687ac0289b9d6402ebd595f84b774a7294aab9 (diff) |
Re-enable auto-upgrade
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auto-update.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/auto-update.nix b/modules/auto-update.nix new file mode 100644 index 0000000..996ff81 --- /dev/null +++ b/modules/auto-update.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: +{ + system.autoUpgrade = { + enable = true; + dates = "04:40"; + flake = + if config.networking.hostName == "dragon" then + "git+file:///storage/projects/nixos-config.git" + else + "git+https://git.orbekk.com/nixos-config.git"; + }; +} |