Update zsh update alias and add a rebuild alias
This commit is contained in:
parent
017ead2640
commit
f35e191c85
1 changed files with 4 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, vars, ... }: {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
zsh
|
zsh
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
NIX_FLAKE_PATH = "/etc/nixos";
|
NIX_FLAKE_PATH = "$HOME/.nix/";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
|
@ -14,8 +14,6 @@
|
||||||
enableBashCompletion = true;
|
enableBashCompletion = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestions.enable = true;
|
autosuggestions.enable = true;
|
||||||
# history.append = true;
|
|
||||||
# history.size = 10000;
|
|
||||||
|
|
||||||
ohMyZsh = {
|
ohMyZsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -28,7 +26,8 @@
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ll = "ls -la";
|
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}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue