mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 03:37:12 +08:00
remove Makefile
This commit is contained in:
parent
08bfaa4e88
commit
ad35387fe8
2 changed files with 10 additions and 18 deletions
15
Makefile
15
Makefile
|
|
@ -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
|
||||
13
README.md
13
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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue