Skip to content

Commit

Permalink
better configuration.nix input
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperkowski committed Oct 5, 2024
1 parent feb6e8d commit 7224398
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/tabs/common-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ checkPackageManager() {
printf "%b\n" "${CYAN}Using ${pgm} as package manager${RC}"

if [ $PACKAGER == 'nix-env' ] && [ -z "$NIXOS_CONFIG" ]; then
if [ -f "/etc/nixos/configuration.nix" ]; then
NIXOS_CONFIG="/etc/nixos/configuration.nix"
else
NIXOS_CONFIG="/etc/nixos/configuration.nix"
while [ ! -f "$NIXOS_CONFIG" ]; do
printf "%b\n" "${RED}configuration.nix not found.${RC}"
printf "%b" "${YELLOW}Enter the path manually: ${RC}"
read -r NIXOS_CONFIG
fi
done
fi

break
Expand Down

0 comments on commit 7224398

Please sign in to comment.