From ad35387fe882236d19704f5cd16a32fdba5e20e9 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 3 Dec 2022 22:07:07 -0500 Subject: [PATCH] remove Makefile --- Makefile | 15 --------------- README.md | 13 ++++++++++--- 2 files changed, 10 insertions(+), 18 deletions(-) delete mode 100644 Makefile 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`