move nix max jobs and cores from the alias to nix.settings

This commit is contained in:
jacekpoz 2024-02-12 19:39:42 +01:00
parent 315c8a3ab8
commit 5e2b828238
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -86,6 +86,8 @@
"flakes"
"nix-command"
];
max-jobs = 3;
cores = 4;
substituters = [
"https://nix-gaming.cachix.org"
"https://nix-community.cachix.org"
@ -362,10 +364,10 @@
zsh = {
enable = true;
extraAliases = {
#u = "nh os switch \"/home/jacek/niksos\" -H niks -- --use-remote-sudo --max-jobs 3 --cores 4";
#us = "NIX_SSHOPTS='-t' nh os switch \"/home/jacek/niksos\" -H chmura -- --use-remote-sudo --target-host chmura --max-jobs 3 --cores 4";
u = "nixos-rebuild switch --flake \"/home/jacek/niksos#niks\" -L --use-remote-sudo --max-jobs 3 --cores 4";
us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura --max-jobs 3 --cores 4";
#u = "nh os switch \"/home/jacek/niksos\" -H niks -- --use-remote-sudo";
#us = "NIX_SSHOPTS='-t' nh os switch \"/home/jacek/niksos\" -H chmura -- --use-remote-sudo --target-host chmura";
u = "nixos-rebuild switch --flake \"/home/jacek/niksos#niks\" -L --use-remote-sudo";
us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura";
};
profiling = false;
};