added home-manager switch function
This commit is contained in:
7
home.nix
7
home.nix
@@ -19,7 +19,7 @@ in
|
|||||||
extraConfig.credential.helper = "store --file ~/.git-credentials";
|
extraConfig.credential.helper = "store --file ~/.git-credentials";
|
||||||
userName = "${userSettings.gitUserName}";
|
userName = "${userSettings.gitUserName}";
|
||||||
userEmail = "${userSettings.gitUserEmail}";
|
userEmail = "${userSettings.gitUserEmail}";
|
||||||
extraConfig.safe.directory = "${homePath}";
|
extraConfig.safe.directory = "${repoPath}";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
@@ -33,11 +33,12 @@ in
|
|||||||
(writeShellScriptBin "nfs" ''
|
(writeShellScriptBin "nfs" ''
|
||||||
sudo nixos-rebuild switch --flake ${repoPath}#${systemSettings.hostName} --impure
|
sudo nixos-rebuild switch --flake ${repoPath}#${systemSettings.hostName} --impure
|
||||||
'')
|
'')
|
||||||
|
(writeShellScriptBin "nhs" ''
|
||||||
|
home-manager switch --flake ${repoPath}#${userSettings.username}
|
||||||
|
'')
|
||||||
(writeShellScriptBin "init-panoptes" ''
|
(writeShellScriptBin "init-panoptes" ''
|
||||||
sudo -u ${userSettings.username} git clone -b ${repoBranch} ${repoURL} ${repoPath}
|
sudo -u ${userSettings.username} git clone -b ${repoBranch} ${repoURL} ${repoPath}
|
||||||
'')
|
'')
|
||||||
git
|
|
||||||
python313
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user