From fe82bf8656b5e1b1fbe0fc74ff70cbc800badaeb Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Sat, 17 Feb 2024 13:13:50 -0600 Subject: [PATCH] add aliases for nh to zsh --- config/home/zsh.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/home/zsh.nix b/config/home/zsh.nix index 028a52b..ff999ba 100644 --- a/config/home/zsh.nix +++ b/config/home/zsh.nix @@ -1,6 +1,6 @@ { config, lib, pkgs, ... }: -let inherit (import ../../options.nix) flakeDir theShell; in +let inherit (import ../../options.nix) flakeDir theShell hostname; in lib.mkIf (theShell == "zsh") { programs.zsh = { enable = true; @@ -45,8 +45,8 @@ lib.mkIf (theShell == "zsh") { }; shellAliases = { sv="sudo vim"; - flake-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}"; - flake-update="sudo nix flake update ${flakeDir}"; + flake-rebuild="nh os switch --nom --hostname ${hostname}"; + flake-update="nh os switch --nom --hostname ${hostname} --update"; gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot"; v="nvim"; ls="lsd";