From 3bf1ac28fabba350c9a825e933f977928bbbee0a Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 15 Mar 2024 16:37:56 +0300 Subject: [PATCH] AutoUpdate : Move URL to const. --- flake.nix | 5 +++-- module/common/AutoUpdate.nix | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 1088c6c3..512b1127 100644 --- a/flake.nix +++ b/flake.nix @@ -100,9 +100,10 @@ outputs = { self, nixpkgs, nix-on-droid, home-manager, ... } @inputs: { # Constant values. nixosModules.const = { - hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`. - stateVersion = "23.11"; + url = "git+https://git.voronind.com/voronind/nixos.git"; + hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`. droidStateVersion = "22.11"; + stateVersion = "23.11"; }; # Common modules used across all hosts. diff --git a/module/common/AutoUpdate.nix b/module/common/AutoUpdate.nix index fdbe1aa4..288aa8f5 100644 --- a/module/common/AutoUpdate.nix +++ b/module/common/AutoUpdate.nix @@ -1,9 +1,9 @@ -{ ... }: { +{ const, ... }: { system.autoUpgrade = { enable = true; allowReboot = false; dates = "hourly"; - flake = "git+https://git.voronind.com/voronind/nixos.git"; + flake = const.url; operation = "switch"; persistent = true; };