Switch to a Makefile

This commit is contained in:
Dave Gallant
2021-10-26 22:06:47 -04:00
parent fe1a2654b6
commit 68de2e924b
4 changed files with 33 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
This repo stores nix to manage my machines running both [NixOS](https://nixos.org/) and macOS. The initial structure was inspired by [samuelgrf/nixos-config](https://gitlab.com/samuelgrf/nixos-config/-/tree/master/).
This repo stores nix to manage my machines running both [NixOS](https://nixos.org/) and macOS.
The configuration is very specific to my own machines and setup, but it may be a useful reference for anyone else learning or experimenting with nix, whether it be on a personal machine or a server.
@@ -14,16 +14,15 @@ The configuration is very specific to my own machines and setup, but it may be a
To run a rebuild:
```sh
./rebuild.sh switch
make switch
```
## Update
To update nixpkgs defined in [flake.nix](./flake.nix), run:
```sh
nix flake update
make update
```
If there are updates, they should be reflected in [flake.lock](./flake.lock).