blob: 63d0da5ebe5b86209aee712ef525a7f680a92ea3 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
default:
@just --list
os hostname='kansai':
#!/usr/bin/env sh
git add .
if command -v doas &> /dev/null; then
SUPERUSER_COMMAND=doas
else
SUPERUSER_COMMAND=sudo
fi
if ! command -v nh &> /dev/null; then
$SUPERUSER_COMMAND nixos-rebuild switch --flake .#{{hostname}}
else
FLAKE="$(pwd)" nh os switch
fi
home user='ebisu':
#!/usr/bin/env sh
git add .
if ! command -v nh &> /dev/null; then
home-manager switch --flake .#{{user}} --impure
else
FLAKE="$(pwd)" NIXPKGS_ALLOW_UNFREE=1 nh home switch -- --impure
fi
news user='ebisu':
home-manager news --flake .#{{user}}
push message:
git add . && git commit -m "{{message}}" && git push origin main
commit message:
git add . && git commit -m "{{message}}"
restore:
git restore --staged . && git restore .
|