Try re-enabling system.autoUpgrade with the "boot" operation

This commit is contained in:
Evie Litherland-Smith 2024-06-07 06:17:37 +01:00
parent feb3f9149b
commit 51cc4d9486
3 changed files with 20 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
imports = [ imports = [
../services/caddy.nix ../services/caddy.nix
../services/forgejo.nix ../services/forgejo.nix
@ -16,12 +16,10 @@
}; };
users.mutableUsers = false; users.mutableUsers = false;
system.autoUpgrade = { system.autoUpgrade = {
enable = true; operation = "switch";
flake = "git+${config.nix.registry.my-nixos.to.url}";
dates = "02:00";
allowReboot = true; allowReboot = true;
rebootWindow = { rebootWindow = {
lower = "02:00"; lower = "01:00";
upper = "05:00"; upper = "05:00";
}; };
}; };

View file

@ -1,4 +1,5 @@
{ {
config,
pkgs, pkgs,
iosevkaCustom, iosevkaCustom,
... ...
@ -26,7 +27,21 @@
''; '';
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.05"; system = {
stateVersion = "23.05";
autoUpgrade = {
enable = true;
persistent = true;
flake = "git+${config.nix.registry.my-nixos.to.url}";
dates = "02:00";
randomizedDelaySec = "45min";
flags = [
"--option"
"extra-binary-caches"
"https://nix.xenia.me.uk"
];
};
};
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;

View file

@ -5,6 +5,7 @@
}: { }: {
imports = [./default.nix]; imports = [./default.nix];
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
system.autoUpgrade.operation = "boot";
environment = { environment = {
sessionVariables = { sessionVariables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";