remove Makefile

This commit is contained in:
Sridhar Ratnakumar 2022-12-03 22:07:07 -05:00
parent 08bfaa4e88
commit ad35387fe8
2 changed files with 10 additions and 18 deletions

View file

@ -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

View file

@ -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`