AutoUpdate : Move URL to const.
This commit is contained in:
parent
c87400d8ed
commit
3bf1ac28fa
|
@ -100,9 +100,10 @@
|
||||||
outputs = { self, nixpkgs, nix-on-droid, home-manager, ... } @inputs: {
|
outputs = { self, nixpkgs, nix-on-droid, home-manager, ... } @inputs: {
|
||||||
# Constant values.
|
# Constant values.
|
||||||
nixosModules.const = {
|
nixosModules.const = {
|
||||||
|
url = "git+https://git.voronind.com/voronind/nixos.git";
|
||||||
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
|
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
|
||||||
stateVersion = "23.11";
|
|
||||||
droidStateVersion = "22.11";
|
droidStateVersion = "22.11";
|
||||||
|
stateVersion = "23.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Common modules used across all hosts.
|
# Common modules used across all hosts.
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ ... }: {
|
{ const, ... }: {
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowReboot = false;
|
allowReboot = false;
|
||||||
dates = "hourly";
|
dates = "hourly";
|
||||||
flake = "git+https://git.voronind.com/voronind/nixos.git";
|
flake = const.url;
|
||||||
operation = "switch";
|
operation = "switch";
|
||||||
persistent = true;
|
persistent = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue