fix: package theme engine and system scripts and fix env-update scriptability
This commit is contained in:
18
features/scripts/utils/nomarchy-env-update
Normal file
18
features/scripts/utils/nomarchy-env-update
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Nomarchy Environment Update Script
|
||||
# 1. Runs the pre-flight state migration
|
||||
# 2. Applies user-level Home Manager changes
|
||||
|
||||
set -e
|
||||
|
||||
# Use the pre-flight migration script to ensure the state is synced before evaluation
|
||||
if command -v nomarchy-preflight-migration >/dev/null 2>&1; then
|
||||
nomarchy-preflight-migration
|
||||
fi
|
||||
|
||||
# Apply Home Manager changes from the local flake
|
||||
echo "Applying user-level changes..."
|
||||
home-manager switch --flake /etc/nixos#default --impure
|
||||
|
||||
echo "Environment update complete."
|
||||
12
features/scripts/utils/nomarchy-sys-update
Normal file
12
features/scripts/utils/nomarchy-sys-update
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Nomarchy System Update Script
|
||||
# 1. Applies system-wide NixOS changes
|
||||
|
||||
set -e
|
||||
|
||||
# Apply NixOS changes from the local flake
|
||||
echo "Applying system-level changes..."
|
||||
sudo nixos-rebuild switch --flake /etc/nixos#default --impure
|
||||
|
||||
echo "System update complete."
|
||||
Reference in New Issue
Block a user