1
0
Fork 0

unix-setup.sh: improve home-manager setup

- update the flake beforehand
 - home-manager build: show trace and print build logs to keep the cat
   distracted
This commit is contained in:
Pratham Patel 2024-04-10 17:04:07 +05:30
parent 78bfbcd2a4
commit 88f7210c7c
Signed by: thefossguy
SSH Key Fingerprint: SHA256:HwRBy9H1FYXWcv/Qi1WY3kmcVtGz2ydZuPJgD4pkusY
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ function home_manager_setup() {
if ! command -v home-manager > /dev/null; then
mkdir -vp "${HM_CONFIG_PATH}"
git clone https://gitlab.com/thefossguy/prathams-nixos "${HM_CONFIG_PATH}"
nix run home-manager/master -- --print-build-logs init --switch --flake "${HM_CONFIG_PATH}"
nix flake update --flake "${HM_CONFIG_PATH}"
nix run home-manager/master -- switch --print-build-logs --show-trace --flake "${HM_CONFIG_PATH}"
fi
}
function run_rustup() {