rebuild alias for nixos

This commit is contained in:
willemml 2023-02-09 12:40:05 -08:00
parent c7eb6e933b
commit ba3133b50d
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
2 changed files with 2 additions and 1 deletions

View file

@ -38,6 +38,7 @@ in
};
programs.zsh.shellAliases = mkIf stdenv.isDarwin ({
drs = "darwin-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
o = "open";
oa = "open -a";
pinentry = "pinentry-mac";

View file

@ -143,13 +143,13 @@
shellAliases = {
cd = "z";
drs = "darwin-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
e = "emacsclient -c -nw";
em = "emacs -nw";
emw = "emacs";
ew = "emacsclient -c";
l = "ls -1";
np = "nix-shell -p";
nrs = lib.optionals pkgs.stdenv.isLinux "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
org = "z ${config.home.sessionVariables.ORGDIR}";
ubc = "z ${config.home.sessionVariables.UBCDIR}";
};