-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
31 lines (24 loc) · 780 Bytes
/
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
set positional-arguments
@default:
just update
@deploy profile:
just clone
just hardware-generation ~/.dotfiles/kogami
just hardware-generation ~/.dotfiles/ginoza
just build $1
@clone:
git clone https://git.foglar.tech/foglar/dotfiles.git ~/.dotfiles
@quick-clone:
git clone https://git.foglar.tech/foglar/dotfiles.git ~/.dotfiles --depth 1
@update:
cd ~/.dotfiles && git pull && nix flake update
@remove:
gum confirm && rm -rf ~/.dotfiles || echo "File ~/.dotfiles not removed"
@install rebuild-argument entrypoint:
sudo nixos-rebuild $1 --flake ~/.dotfiles#$2
@switch flake-entrypoint:
just install switch $1
@build flake-entrypoint:
just install build $1
@hardware-generation path:
sudo nixos-generate-config --dir $1