wave/qa-first-boot #1
@@ -59,39 +59,9 @@ if [[ "$USER" == "nixos" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 4. Starter home.nix
|
# 4. Setup Local Repo (Crucial for nomarchy-env-update to work)
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 4: Starter home.nix"
|
echo "Step 4: Git Repository Check"
|
||||||
HOME_NIX="$HOME/.config/home-manager/home.nix"
|
|
||||||
if [ ! -f "$HOME_NIX" ]; then
|
|
||||||
echo "It looks like you don't have a ~/.config/home-manager/home.nix file yet."
|
|
||||||
echo "Nomarchy uses this file to manage your user-level packages and settings."
|
|
||||||
if gum confirm "Would you like to generate a starter home.nix?"; then
|
|
||||||
mkdir -p "$(dirname "$HOME_NIX")"
|
|
||||||
cat <<EOF > "$HOME_NIX"
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
# Nomarchy starter home.nix
|
|
||||||
# Add your user packages here.
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
btop
|
|
||||||
fastfetch
|
|
||||||
chromium
|
|
||||||
# Add more packages here
|
|
||||||
];
|
|
||||||
|
|
||||||
# home.stateVersion = "25.11"; # Consult docs/MIGRATION.md if you change this
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
echo "Starter home.nix generated at $HOME_NIX"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Detected existing home.nix at $HOME_NIX. Skipping generation."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 5. Setup Local Repo (Crucial for nomarchy-env-update to work)
|
|
||||||
echo ""
|
|
||||||
echo "Step 5: Git Repository Check"
|
|
||||||
echo "Nomarchy relies on a local git repository for declarative updates."
|
echo "Nomarchy relies on a local git repository for declarative updates."
|
||||||
if [ ! -d "/etc/nixos/.git" ]; then
|
if [ ! -d "/etc/nixos/.git" ]; then
|
||||||
echo "Warning: /etc/nixos is not a git repository. Declarative updates might fail."
|
echo "Warning: /etc/nixos is not a git repository. Declarative updates might fail."
|
||||||
@@ -102,7 +72,7 @@ if [ ! -d "/etc/nixos/.git" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 6. Success
|
# 5. Success
|
||||||
echo ""
|
echo ""
|
||||||
echo "Applying all changes..."
|
echo "Applying all changes..."
|
||||||
nomarchy-env-update
|
nomarchy-env-update
|
||||||
|
|||||||
Reference in New Issue
Block a user