nix-config/justfile

31 lines
747 B
Makefile
Raw Permalink Normal View History

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