dotfiles/sync-nix.sh
Daniel Bulant fde14a05d8
update
2025-04-28 10:06:24 +02:00

11 lines
263 B
Bash
Executable file

#!/bin/bash
sh fast-copy.sh
if [ -z "$(which nh)" ]; then
sudo cp *.nix /etc/nixos/
sudo nixos-rebuild switch --show-trace
cp /etc/nixos/flake.lock .
else
# sudo nix-channel --update
# sudo nix flake update
nh os switch . -- --show-trace
fi