From 9603fe34ebb0b3623dd64d8763aeec6a370361b6 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sun, 7 Mar 2021 15:42:39 -0500 Subject: Re-enable auto-upgrade --- modules/auto-update.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/auto-update.nix (limited to 'modules') 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"; + }; +} -- cgit v1.2.3