Re-enable autoUpgrade but only for Legion

This commit is contained in:
Evie Litherland-Smith 2025-02-01 11:26:35 +00:00
parent 6c176a9222
commit 5363e103ff
2 changed files with 21 additions and 21 deletions

View file

@ -1,4 +1,9 @@
{ lib, username, ... }: {
config,
lib,
username,
...
}:
{ {
imports = [ imports = [
./services/adguardhome.nix ./services/adguardhome.nix
@ -23,7 +28,21 @@
services.emacs.enable = false; services.emacs.enable = false;
home.stateVersion = "23.05"; home.stateVersion = "23.05";
}; };
system.stateVersion = "23.05"; system = {
stateVersion = "23.05";
autoUpgrade = {
enable = true;
persistent = true;
allowReboot = false;
flake = "git+${config.nix.registry.my-nixos.to.url}";
dates = "02:00";
flags = [
"--option"
"extra-binary-caches"
"https://nix.xenia.me.uk"
];
};
};
users.mutableUsers = false; users.mutableUsers = false;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
networking.nameservers = lib.mkForce [ "0.0.0.0" ]; networking.nameservers = lib.mkForce [ "0.0.0.0" ];

View file

@ -49,25 +49,6 @@
"steamcmd" "steamcmd"
"nomachine-client" "nomachine-client"
]; ];
system.autoUpgrade = {
enable = false; # TEMP disable until server is back up
persistent = true;
allowReboot = false;
flake = "git+${config.nix.registry.my-nixos.to.url}";
dates = "02:00";
flags = [
"--option"
"extra-binary-caches"
"https://nix.xenia.me.uk"
];
};
systemd.services = lib.mkIf config.system.autoUpgrade.enable {
nixos-upgrade.serviceConfig = {
CPUQuota = "75%";
CPUWeight = 20;
IOWeight = 20;
};
};
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;