1
0
This repository has been archived on 2024-11-23. You can view files and clone it, but cannot push or open issues or pull requests.
nuc-configurations/Makefile
2023-09-25 00:15:15 +00:00

26 lines
696 B
Makefile

############################################################################
#
# Nix commands related to the local machine
#
############################################################################
deploy:
nixos-rebuild switch --flake '.#default' --use-remote-sudo
debug:
nixos-rebuild switch --flake '.#default' --use-remote-sudo --show-trace --verbose
update:
nix flake update
history:
nix profile history --profile /nix/var/nix/profiles/system
gc:
# remove all generations older than 7 days
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 3d
# garbage collect all unused nix store entries
sudo nix store gc --debug
nix-collect-garbage -d