From 2d279c511efa29ac38f4fbca486280b10add48a8 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 6 Nov 2020 22:16:18 -0600 Subject: [PATCH] Have init script run the setup script --- bin/init-dotfiles | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/init-dotfiles b/bin/init-dotfiles index bfc777f..9925e40 100755 --- a/bin/init-dotfiles +++ b/bin/init-dotfiles @@ -58,6 +58,11 @@ setup_home_manager() { nix-shell '' -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