28 lines
697 B
Makefile
28 lines
697 B
Makefile
default:
|
|
just --list
|
|
|
|
nixos target=`hostname`:
|
|
git add -AN
|
|
sudo nixos-rebuild --flake .#{{target}} switch
|
|
|
|
home-manager target=(`whoami`+"@"+`hostname`):
|
|
git add -AN
|
|
home-manager --flake .#{{target}} switch
|
|
|
|
check:
|
|
git add -AN
|
|
nix flake check --keep-going
|
|
|
|
bootstrap-home-manager target=(`whoami`+"@"+`hostname`):
|
|
nix run --extra-experimental-features "nix-command flakes" --no-write-lock-file github:nix-community/home-manager/ -- --extra-experimental-features "nix-command flakes" --flake .#{{target}} switch
|
|
|
|
format:
|
|
nix fmt
|
|
|
|
home-gc:
|
|
home-manager expire-generations -7days
|
|
nix store gc
|
|
|
|
nixos-gc:
|
|
sudo nix-collect-garbage --delete-older-than 7d
|