diff --git a/home/darwin.nix b/home/darwin.nix index 85f1c4c..46e6279 100644 --- a/home/darwin.nix +++ b/home/darwin.nix @@ -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"; diff --git a/home/programs.nix b/home/programs.nix index f04fb9a..cd17f78 100644 --- a/home/programs.nix +++ b/home/programs.nix @@ -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}"; };