nix-config/justfile

31 lines
796 B
Makefile
Raw Normal View History

2024-03-24 17:39:49 -05:00
default:
just --list
nixos target=`hostname`:
2024-05-15 11:32:19 -05:00
git add -AN
2024-06-04 13:08:13 -05:00
nix flake update nix-secrets
sudo nixos-rebuild --flake .#{{target}} switch
home-manager target=(`whoami`+"@"+`hostname`):
2024-05-15 11:32:19 -05:00
git add -AN
2024-06-04 13:08:13 -05:00
nix flake update nix-secrets
2024-03-24 17:39:49 -05:00
home-manager --flake .#{{target}} switch
check:
2024-05-15 11:32:19 -05:00
git add -AN
2024-06-04 13:08:13 -05:00
nix flake update nix-secrets
2024-05-24 15:23:56 -05:00
nix flake check --keep-going
2024-03-24 17:39:49 -05:00
bootstrap-home-manager target=(`whoami`+"@"+`hostname`):
2024-03-24 17:39:49 -05:00
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
2024-05-09 17:47:54 -05:00
nixos-gc:
sudo nix-collect-garbage --delete-older-than 7d