nix-config/Justfile

23 lines
507 B
Makefile

deploy host:
nixos-rebuild switch --flake .#{{host}}
debug host:
nixos-rebuild switch --flake .#{{host}} --show-trace --verbose
dry host:
nix build .#nixosConfigurations.{{host}}.config.system.build.toplevel --dry-run --no-link
update:
nix flake update
history:
nix profile history --profile /nix/var/nix/profiles/system
repl:
nix repl -f flake:nixpkgs
clean:
nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
gc:
sudo nix-collect-garbage --delete-old