dotfiles/Makefile

32 lines
668 B
Makefile
Raw Normal View History

2023-01-02 21:08:34 +00:00
## Setup
.PHONY: rebuild-macos
## Management
git-add:
git add .
update: update-neovim
update-os:
sudo nixos-rebuild switch
update-neovim:
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
sync:
sudo nix-channel --update
nix-channel --update
clean:
sudo nix-collect-garbage --delete-older-than 7d
home-manager expire-generations "-7 days"
rebuild-macos: git-add
2023-01-03 01:59:53 +00:00
./result/sw/bin/darwin-rebuild switch --flake _macos -v
2023-01-02 21:08:34 +00:00
rebuild-ubuntu: git-add
NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels
nix run ./_ubuntu switch -vv
home-manager switch --flake ./_ubuntu