summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-03-07 15:42:39 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-03-07 15:42:39 -0500
commit9603fe34ebb0b3623dd64d8763aeec6a370361b6 (patch)
tree7a4ee55ad65eee58130357d62f2184959f551623 /modules
parent0f687ac0289b9d6402ebd595f84b774a7294aab9 (diff)
Re-enable auto-upgrade
Diffstat (limited to 'modules')
-rw-r--r--modules/auto-update.nix12
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";
+ };
+}