-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
50 lines (39 loc) · 1.11 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Like GNU `make`, but `just` rustier.
# https://just.systems/
# run `just` from this directory to see available commands
has_backup := path_exists("/etc/nix/nix.conf.before-nix-darwin")
has_nix := path_exists("/etc/nix/nix.conf")
alias fmt := format
# Default command when 'just' is run without arguments
default:
@just run
# Update nix flake
[group('Main')]
update:
nix flake update
# Performs automated code analysis to identify potential programming errors, stylistic issues, and suspicious constructs. It helps maintain consistent code quality and prevents common programming mistakes.
[group('Development')]
lint:
statix check
deadnix
[group('Development')]
check:
nix flake check
[group('Development')]
format:
nix fmt
# Denvironment
[group('dev')]
shell:
nix develop
# Activate the configuration
[group('main')]
run:
nh home switch .
# Install nix-darwin for lix and nix without determine package
[group('Installation')]
install:
nix --extra-experimental-features "nix-command flakes" run .#activate
# ...
migrate_nix_configuration:
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin