-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
66 lines (43 loc) · 1.36 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
dotfilesPath := "$HOME/Desktop/dev/github.com/mrsekut/dotfiles"
default:
@just --choose
# =================
# Nix
# =================
# install nix by Determine Nix Installer
# https://zero-to-nix.com/concepts/nix-installer#using
nix-install:
#!/usr/bin/env bash
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
nix-uninstall:
/nix/nix-installer uninstall
nix-apply:
ln -s $HOME/Desktop/dev/github.com/mrsekut/dotfiles/nix/home.nix $HOME/.config/home-manager/home.nix # できればこれなしでやりたい
nix run . switch
# =================
# Nix Darwin
# =================
nix-darwin-install:
#!/usr/bin/env bash
mkdir -p $HOME/.nixpkgs
ln -s {{dotfilesPath}}/nix-darwin/darwin-configuration.nix $HOME/.nixpkgs/darwin-configuration.nix
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
nix-darwin-apply:
#!/usr/bin/env bash
darwin-rebuild switch
nix-darwin-update:
#!/usr/bin/env bash
nix-channel --update darwin
darwin-rebuild changelog
# =================
# VSCode
# =================
# dotfilesの内容をlocalに適用する
vscode-apply:
bash vscode/settings/index.sh
bash vscode/keybindings/index.sh
bash vscode/extensions/apply.sh
# localの内容をdotfilesに適用する
vscode-save:
bash vscode/extensions/save.sh