Skip to content

Commit

Permalink
Rename home-manager installer
Browse files Browse the repository at this point in the history
  • Loading branch information
shikanime committed Sep 17, 2024
1 parent 44fe81a commit c1dcd8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/home-manager/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/devcontainers/features/nix"
],
"postCreateCommand": "/usr/local/share/catbox-install-home.sh"
"postCreateCommand": "/usr/local/share/home-manager-switch.sh"
}
6 changes: 3 additions & 3 deletions src/home-manager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ if [ ! -z "${FLAKEURI}" ] && [ "${FLAKEURI}" != "none" ]; then
nix run home-manager -- switch --flake "${FLAKEURI}" -b backup-before-nix --refresh
EOF
)"
if [ ! -e "/usr/local/share/catbox-install-home.sh" ]; then
if [ ! -e "/usr/local/share/home-manager-switch.sh" ]; then
echo "(*) Setting up entrypoint..."
echo "${install_script}" >/usr/local/share/catbox-install-home.sh
chmod +x /usr/local/share/catbox-install-home.sh
echo "${install_script}" >/usr/local/share/home-manager-switch.sh
chmod +x /usr/local/share/home-manager-switch.sh
fi
fi

Expand Down

0 comments on commit c1dcd8d

Please sign in to comment.