mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Fix Makefile
This commit is contained in:
parent
d6ff55fea6
commit
10add30249
2 changed files with 6 additions and 14 deletions
8
Makefile
8
Makefile
|
|
@ -3,16 +3,16 @@ HOSTNAME := $(shell hostname -s)
|
|||
all:
|
||||
if [[ "`uname`" == 'Darwin' ]]; then \
|
||||
echo macOS; \
|
||||
make macos; \
|
||||
make macos-system; \
|
||||
else \
|
||||
echo NixOS; \
|
||||
make nixos; \
|
||||
make nixos-system; \
|
||||
fi
|
||||
|
||||
nixos:
|
||||
nixos-system:
|
||||
sudo nixos-rebuild switch -j auto
|
||||
|
||||
macos:
|
||||
macos-system:
|
||||
sudo ls # cache sudo
|
||||
# The `TERM` needs to be set to workaround kitty issue: `tput: unknown terminal "xterm-kitty"`
|
||||
TERM=xterm $$(nix build --extra-experimental-features "flakes nix-command" .#darwinConfigurations.$(HOSTNAME).system --no-link --json | nix --extra-experimental-features "flakes nix-command" run ${WITHEXP} nixpkgs#jq -- -r '.[].outputs.out')/sw/bin/darwin-rebuild switch --flake .
|
||||
|
|
|
|||
12
README.md
12
README.md
|
|
@ -1,17 +1,9 @@
|
|||
This repository contains the Nix / NixOS configuration for all of my systems. Start from `flakes.nix` (see [Flakes](https://nixos.wiki/wiki/Flakes)).
|
||||
|
||||
## Platforms
|
||||
|
||||
### NixOS
|
||||
To build,
|
||||
|
||||
```sh-session
|
||||
make nixos # Or, just `make`
|
||||
```
|
||||
|
||||
### macOS
|
||||
|
||||
```sh-session
|
||||
make darwin # Or, just `make`
|
||||
make
|
||||
```
|
||||
|
||||
## Install notes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue