mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 14:45:51 +05:30
16 lines
387 B
Bash
Executable file
16 lines
387 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 )
|
|
|
|
# Fix root-owned sqlite errors
|
|
sudo chown -R 1000:users ~/.cache/nix;
|
|
|
|
# Install and build home-manager configuration
|
|
home-manager switch --flake $SCRIPT_DIR#user;
|
|
|
|
$SCRIPT_DIR/sync-posthook.sh
|