1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: deploy only with 2 cores

This commit is contained in:
2023-12-29 20:01:01 +01:00
parent acdc09efe0
commit 19c916b771

View File

@@ -94,7 +94,7 @@
lib.attrsets.nameValuePair "deploy-${hostname}" { lib.attrsets.nameValuePair "deploy-${hostname}" {
type = "app"; type = "app";
program = toString (pkgs.writers.writeDash "deploy-${hostname}" '' program = toString (pkgs.writers.writeDash "deploy-${hostname}" ''
exec nixos-rebuild switch --log-format internal-json --flake .?submodules=1#${hostname} --build-host ${targets.${hostname}} --target-host ${targets.${hostname}} 2>&1 | ${pkgs.nix-output-monitor}/bin/nom --json exec ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --max-jobs 2 --log-format internal-json --flake .?submodules=1#${hostname} --build-host ${targets.${hostname}} --target-host ${targets.${hostname}} 2>&1 | ${pkgs.nix-output-monitor}/bin/nom --json
''); '');
}) (builtins.attrNames self.nixosConfigurations)); }) (builtins.attrNames self.nixosConfigurations));
}; };