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

View file

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