mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-26 06:55:25 +08:00
make should just work
This commit is contained in:
parent
5ac6f8294a
commit
746d49fb23
2 changed files with 9 additions and 6 deletions
11
Makefile
11
Makefile
|
|
@ -1,9 +1,12 @@
|
|||
OS := $(shell uname)
|
||||
|
||||
|
||||
# TODO: Automatically detect platform.
|
||||
all:
|
||||
$(error Choose a platform (eg: 'make macos'))
|
||||
if [[ "`uname`" == 'Darwin' ]]; then \
|
||||
echo macOS; \
|
||||
make macos; \
|
||||
else \
|
||||
echo NixOS; \
|
||||
make nixos; \
|
||||
fi
|
||||
|
||||
nixos:
|
||||
sudo nixos-rebuild switch -j auto
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ This repository contains the Nix / NixOS configuration for all of my systems. St
|
|||
### NixOS
|
||||
|
||||
```sh-session
|
||||
make nixos
|
||||
make nixos # Or, just `make`
|
||||
```
|
||||
|
||||
### macOS
|
||||
|
||||
```sh-session
|
||||
make darwin
|
||||
make darwin # Or, just `make`
|
||||
```
|
||||
|
||||
## Install notes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue