nixos-config/Makefile
Sridhar Ratnakumar 0626cdd361 Update comment
2022-11-10 11:11:29 -05:00

10 lines
354 B
Makefile

# 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