Re-enable nix autoUpgrade for all systems

This commit is contained in:
Evie Litherland-Smith 2024-02-10 06:27:39 +00:00
parent 694d3ea7c2
commit 023d1ecc2b
2 changed files with 11 additions and 5 deletions

View file

@ -56,7 +56,9 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
flakeURL = "https://git.xenia.me.uk/xenia/nixos.git?ref=main";
in {
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
@ -90,7 +92,7 @@
}; };
to = { to = {
type = "git"; type = "git";
url = "https://git.xenia.me.uk/xenia/nixos.git?ref=main"; url = flakeURL;
}; };
}; };
pyenv = { pyenv = {
@ -127,7 +129,13 @@
''; '';
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
system = {inherit stateVersion;}; system = {
inherit stateVersion;
autoUpgrade = {
enable = true;
flake = "git+${flakeURL}";
};
};
networking = { networking = {
inherit hostName; inherit hostName;
firewall.enable = true; firewall.enable = true;

View file

@ -1,8 +1,6 @@
{...}: { {...}: {
users.mutableUsers = false; users.mutableUsers = false;
system.autoUpgrade = { system.autoUpgrade = {
enable = true;
flake = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
dates = "02:30"; dates = "02:30";
allowReboot = true; allowReboot = true;
rebootWindow = { rebootWindow = {