diff --git a/home/programs/terminal/shell/zsh/aliases.nix b/home/programs/terminal/shell/zsh/aliases.nix index 2a1aa7a..2abf7c9 100644 --- a/home/programs/terminal/shell/zsh/aliases.nix +++ b/home/programs/terminal/shell/zsh/aliases.nix @@ -1,6 +1,6 @@ -{ config, ... }: +{ config, pkgs, lib, ... }: let - username = config.myOptions.system.username; + nr = "${pkgs.nixos-rebuild}/bin/nixos-rebuild"; in { programs.zsh.shellAliases = { @@ -30,6 +30,9 @@ in rrf = "rm -rf"; vimdiff = "nvim -d"; + # Nix aliases + rebuild = "nix-store --verify; pushd ~/dots; ${nr} switch --flake .#$1 --use-remote-sudo ; popd"; + # Expand aliases from sudo sudo = "sudo "; };