Update zsh update alias and add a rebuild alias

This commit is contained in:
KnightArtorias 2025-12-12 19:01:29 +00:00
parent 017ead2640
commit f35e191c85

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, vars, ... }: {
environment.systemPackages = with pkgs; [
zsh
@ -6,7 +6,7 @@
];
environment.variables = {
NIX_FLAKE_PATH = "/etc/nixos";
NIX_FLAKE_PATH = "$HOME/.nix/";
};
programs.zsh = {
@ -14,8 +14,6 @@
enableBashCompletion = true;
enableCompletion = true;
autosuggestions.enable = true;
# history.append = true;
# history.size = 10000;
ohMyZsh = {
enable = true;
@ -28,7 +26,8 @@
shellAliases = {
ll = "ls -la";
update = "sudo nixos-rebuild switch --upgrade-all --flake $NIX_FLAKE_PATH";
update = "sudo nixos-rebuild switch --upgrade-all --flake $NIX_FLAKE_PATH#${vars.hostName}";
rebuild = "sudo nixos-rebuild switch --flake $NIX_FLAKE_PATH#${vars.hostName}";
};
};