dotfiles/justfile

22 lines
557 B
Makefile

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