dotfiles/justfile
2024-09-18 10:35:06 -04:00

22 lines
568 B
Makefile

update_all: system_update home_update sync_configs
format_home:
nixfmt ~/.config/home-manager
format_system:
run0 nixfmt /etc/nixos
system_update:
run0 nix flake update --flake /etc/nixos
run0 nixos-rebuild boot --impure
home_update:
nix flake update --flake ~/.config/home-manager
rm -fr ~/.gtkrc-2.0
home-manager switch --impure
sync_configs: format_home format_system
rsync -a --delete /etc/nixos/ ~/dotfiles/nix/etcnixos/
rsync -a --delete ~/.config/home-manager/ ~/dotfiles/nix/home-manager/
cp ~/justfile ~/dotfiles/