added home-manager switch function

This commit is contained in:
John Lancaster
2024-12-09 19:55:06 -06:00
parent 75d9d5a76e
commit 649b1d0c30

View File

@@ -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
];
};