From 60001f7d372513eb23dfa28ab5e8aad384ebda3c Mon Sep 17 00:00:00 2001 From: Tyler Mayoff Date: Tue, 29 Apr 2025 22:24:25 -0400 Subject: [PATCH] use nh for rebuilding nixos --- dot_config/flake/home/common.nix | 2 ++ run_nix-rebuild.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_config/flake/home/common.nix b/dot_config/flake/home/common.nix index 35d7f24..ae018ef 100644 --- a/dot_config/flake/home/common.nix +++ b/dot_config/flake/home/common.nix @@ -32,6 +32,8 @@ age unstable.chezmoi + nh + # backup restic libnotify diff --git a/run_nix-rebuild.sh b/run_nix-rebuild.sh index eeaab21..7f51762 100755 --- a/run_nix-rebuild.sh +++ b/run_nix-rebuild.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -[[ $(command -v nixos-rebuild) ]] && sudo nixos-rebuild switch --flake ~/.config/flake +[[ $(command -v nixos-rebuild) ]] && nh os switch ~/.config/flake [[ $(command -v darwin-rebuild) ]] && darwin-rebuild switch --flake ~/.config/flake/ [[ $(command -v home-manager) ]] && home-manager switch --flake ~/.config/flake/