dotfiles/sync-nix.sh
2024-12-01 17:50:31 +01:00

11 lines
276 B
Bash
Executable file

#!/bin/bash
echo "Copying configurations"
cp .config/* ~/.config/ -r
cp .default-python-packages ~
if [ -z "$(which nh)" ]; then
sudo cp *.nix /etc/nixos/
sudo nixos-rebuild switch --show-trace
cp /etc/nixos/flake.lock .
else
nh os switch . -- --show-trace
fi