mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 01:54:02 +05:30
13 lines
300 B
Bash
Executable file
13 lines
300 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/..;
|
|
|
|
# Refresh
|
|
$SCRIPT_DIR/sync-posthook.sh
|