AutoUpdate : Move URL to const.

This commit is contained in:
Dmitry Voronin 2024-03-15 16:37:56 +03:00
parent c87400d8ed
commit 3bf1ac28fa
2 changed files with 5 additions and 4 deletions

View file

@ -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.

View file

@ -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;
};