From 649b1d0c3066f1e3056fd34c84416283763faef7 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:55:06 -0600 Subject: [PATCH] added home-manager switch function --- home.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home.nix b/home.nix index e1e6b5d..dd043ab 100644 --- a/home.nix +++ b/home.nix @@ -19,7 +19,7 @@ in extraConfig.credential.helper = "store --file ~/.git-credentials"; userName = "${userSettings.gitUserName}"; userEmail = "${userSettings.gitUserEmail}"; - extraConfig.safe.directory = "${homePath}"; + extraConfig.safe.directory = "${repoPath}"; }; programs.bash.enable = true; @@ -33,11 +33,12 @@ in (writeShellScriptBin "nfs" '' sudo nixos-rebuild switch --flake ${repoPath}#${systemSettings.hostName} --impure '') + (writeShellScriptBin "nhs" '' + home-manager switch --flake ${repoPath}#${userSettings.username} + '') (writeShellScriptBin "init-panoptes" '' sudo -u ${userSettings.username} git clone -b ${repoBranch} ${repoURL} ${repoPath} '') - git - python313 ]; };