diff --git a/Makefile b/Makefile deleted file mode 100644 index 23dfde8..0000000 --- a/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# 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 diff --git a/README.md b/README.md index 9ce4644..b74945e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,14 @@ nix run ## Tips -- To update NixOS (and other inputs) run `nix flake update`[^selective] +- To update NixOS (and other inputs) run `nix flake update` + - You may also update a subset of inputs, e.g. + ```sh-session + nix flake lock --update-input nixpkgs --update-input darwin --update-input home-manager + ``` +- To free up disk space, + ```sh-session + sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +2 + sudo nixos-rebuild boot + ``` - To autoformat the project tree using nixpkgs-fmt, run `nix fmt`. - -[^selective]: You may also update the inputs selectively, viz.: `nix flake lock --update-input nixpkgs --update-input darwin --update-input home-manager`