Files
nixos-config/scripts/sync-system.sh
2024-12-28 11:03:24 -06:00

11 lines
267 B
Bash
Executable File

#!/bin/sh
# Script to synchronize system state
# with configuration files for nixos system
# and home-manager
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Rebuild system
sudo nixos-rebuild switch --flake $SCRIPT_DIR/..#system;