forked from poz/niksos
feat: switch to nh and add n alias for nix
This commit is contained in:
parent
b132f5d81b
commit
5a7d5c2ff5
2 changed files with 3 additions and 2 deletions
|
@ -342,8 +342,8 @@
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraAliases = {
|
extraAliases = {
|
||||||
u = "nixos-rebuild switch -L --use-remote-sudo --flake \"/home/jacek/niksos#niks\" --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' nixos-rebuild switch -L --use-remote-sudo --flake \"/home/jacek/niksos#chmura\" --target-host chmura --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;
|
profiling = false;
|
||||||
};
|
};
|
||||||
|
|
|
@ -41,6 +41,7 @@ in {
|
||||||
gpl = "curl https://www.gnu.org/licenses/gpl-3.0.txt -o LICENSE";
|
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";
|
agpl = "curl https://www.gnu.org/licenses/agpl-3.0.txt -o LICENSE";
|
||||||
g = "git";
|
g = "git";
|
||||||
|
n = "nix";
|
||||||
woman = "man";
|
woman = "man";
|
||||||
wget = "wget --hsts-file=\"${config.home-manager.users.${config'.username}.xdg.dataHome}/wget-hsts\"";
|
wget = "wget --hsts-file=\"${config.home-manager.users.${config'.username}.xdg.dataHome}/wget-hsts\"";
|
||||||
} // cfg.extraAliases;
|
} // cfg.extraAliases;
|
||||||
|
|
Loading…
Reference in a new issue