Have init script run the setup script

This commit is contained in:
Daniel Flanagan 2020-11-06 22:16:18 -06:00
parent 9e8e8abc8e
commit 2d279c511e
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
1 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,11 @@ setup_home_manager() {
nix-shell '<home-manager>' -A install
}
setup_dotfiles() {
cd "$daniel_home$dotfiles"
./bin/setup-dotfiles
}
init_for_root() {
clone_dotfiles "$root_home$dotfiles"
symlink_nixos "$root_home$dotfiles/env/nix/"
@ -77,6 +82,7 @@ init_for_daniel() {
# TODO: setup ssh/gpg keys
# TODO: setup password store
fix_dotfiles_origin
setup_dotfiles
}
if [ "$EUID" -eq 0 ]; then