mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
15 lines
398 B
Makefile
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
|