about summary refs log tree commit diff
path: root/justfile
blob: 0e67acd0c20857894899ddf5bfc34e9ab4c28b29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# a quick setup
setup:
	rye sync

# update dependencies
update-deps:
	nix flake update --commit-lock-file

# build (and only build) the configuration for darwin
build-darwin:
	darwin-rebuild build --flake .#$(hostname -s)

# build and switch the configuration for darwin
switch-darwin:
	darwin-rebuild switch --flake .#$(hostname -s)

# a simple check to ensure the nix configuration is OK
test-nix:
	nix flake check
	nix develop -c echo OK

# run various formatting tools
fmt:
	nix fmt