From 88f7210c7c62187da8f468a5f86a020e21e0c336 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 10 Apr 2024 17:04:07 +0530 Subject: [PATCH] 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 --- .local/scripts/other-common-scripts/unix-setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/scripts/other-common-scripts/unix-setup.sh b/.local/scripts/other-common-scripts/unix-setup.sh index e2a7e66..8d4e1d3 100644 --- a/.local/scripts/other-common-scripts/unix-setup.sh +++ b/.local/scripts/other-common-scripts/unix-setup.sh @@ -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() {