nixos-config/Makefile
2022-12-01 17:28:57 -05:00

15 lines
398 B
Makefile

# TODO: Move these to nix apps
all:
echo
# Update the primary inputs
#
# Typically run as: `make update && nix run` followed by a git commit.
update:
nix flake lock --update-input nixpkgs --update-input darwin --update-input home-manager
# Delete all but the last few NixOS generations
freeupboot:
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +2
sudo nixos-rebuild boot