Compare commits

..

2 Commits

Author SHA1 Message Date
coolneng 255cb34846
Limit resource usage when performing upgrades 2024-03-25 13:41:31 +01:00
coolneng bd493ea8ea
Update panacea ID in syncthing 2024-03-25 13:41:14 +01:00
2 changed files with 12 additions and 8 deletions

View File

@ -180,13 +180,17 @@ with pkgs;
system.autoUpgrade = {
enable = true;
flake = "/home/coolneng/system";
flags = [
"--update-input"
"agenix"
"--update-input"
"nixpkgs"
"--commit-lock-file"
];
flags =
[ "--update-input agenix --update-input nixpkgs" "--commit-lock-file" ];
};
# Limit the memory and CPU use of Nix
systemd.services.nixos-upgrade.serviceConfig = {
MemoryHigh = [ "500M" ];
MemoryMax = [ "2048M" ];
CPUWeight = [ "20" ];
CPUQuota = [ "85%" ];
IOWeight = [ "20" ];
};
# Configure git for auto-upgrade

View File

@ -14,7 +14,7 @@
};
devices = {
panacea.id =
"L2FDE7E-UQ762XM-HWVSRQU-7H435NK-FGQQFJM-YRDJ6Q5-BMQHMYQ-2LLRZQS";
"VEGVHKF-P4FT3BD-4T3ML7J-65URQOU-3XKNMI5-6LGWSCI-BIQZOUE-RKQ6PQX";
caravanserai.id =
"MIRF73R-S7AV47R-VLWZUK2-TFCVQPV-FRYCPND-Y4VR3W2-ZAIQXZD-JAEQCAD";
};