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

View file

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