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 --- config/auto-upgrade.nix | 12 ------------ modules/auto-update.nix | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 config/auto-upgrade.nix create mode 100644 modules/auto-update.nix diff --git a/config/auto-upgrade.nix b/config/auto-upgrade.nix deleted file mode 100644 index 996ff81..0000000 --- a/config/auto-upgrade.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ 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"; - }; -} 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