Skip to content

Commit

Permalink
fish: user_setup: Use systemd-nspawn for main development environment
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Dec 24, 2024
1 parent 65ab3a4 commit 7014edd
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions fish/functions/user_setup.fish
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ rpmbuild/' >>$gitignore
else
updall --no-os; or return
end
if has_container_manager; and test "$LOCATION" != wsl
dbxc --yes
end

# Git config and aliases
git_setup
Expand Down Expand Up @@ -340,19 +337,29 @@ rpmbuild/' >>$gitignore
decrypt_gpg_file server_ip

set github_repos hugo-files nathanchance.github.io

case '*'
return 0
end

mkdir -p $GITHUB_FOLDER
for github_repo in $github_repos
set folder $GITHUB_FOLDER/$github_repo
if not test -d $folder
gh repo clone $github_repo $folder; or return
end
if test "$github_repo" = hugo-files
git -C $folder submodule update --init --recursive
if set -q github_repos
mkdir -p $GITHUB_FOLDER
for github_repo in $github_repos
set folder $GITHUB_FOLDER/$github_repo
if not test -d $folder
gh repo clone $github_repo $folder; or return
end
if test "$github_repo" = hugo-files
git -C $folder submodule update --init --recursive
end
end
end

switch $LOCATION
case hetzner workstation
sd_nspawn -i

case wsl
case '*'
if has_container_manager
dbxc --yes
end
end
end

0 comments on commit 7014edd

Please sign in to comment.