feat: switch to nh and add n alias for nix

This commit is contained in:
jacekpoz 2023-11-28 19:51:24 +01:00
parent b132f5d81b
commit 5a7d5c2ff5
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 3 additions and 2 deletions

View file

@ -342,8 +342,8 @@
zsh = {
enable = true;
extraAliases = {
u = "nixos-rebuild switch -L --use-remote-sudo --flake \"/home/jacek/niksos#niks\" --max-jobs 3 --cores 4";
us = "NIX_SSHOPTS='-t' nixos-rebuild switch -L --use-remote-sudo --flake \"/home/jacek/niksos#chmura\" --target-host chmura --max-jobs 3 --cores 4";
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";
};
profiling = false;
};

View file

@ -41,6 +41,7 @@ in {
gpl = "curl https://www.gnu.org/licenses/gpl-3.0.txt -o LICENSE";
agpl = "curl https://www.gnu.org/licenses/agpl-3.0.txt -o LICENSE";
g = "git";
n = "nix";
woman = "man";
wget = "wget --hsts-file=\"${config.home-manager.users.${config'.username}.xdg.dataHome}/wget-hsts\"";
} // cfg.extraAliases;