-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
42 lines (32 loc) · 1.19 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
macosNix := "${HOME}/Config/nix-config"
nixosNix := "/etc/nixos"
[macos]
rebuild-nix:
darwin-rebuild switch --flake {{macosNix}}
[linux]
rebuild-nix:
nixos-rebuild switch --use-remote-sudo --flake {{nixosNix}}
[macos]
install-nix:
# install nix
# install nix-darwin
# install home-manager
[macos]
update-home-manager hostname:
home-manager switch --flake {{macosNix}}\#{{hostname}}
[linux]
update-home-manager hostname:
home-manager switch --flake {{nixosNix}}\#{{hostname}}
[macos]
install-homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
link-pass:
ln -s ${HOME}/Security/.password-store ${HOME}/.local/share/password-store
create-public-key:
ssh-keygen -f ${HOME}/.ssh/id_rsa -y > ${HOME}/.ssh/id_rsa.pub
[macos]
install-ff-native-messaging:
rm -f ${HOME}/Library/Application\ Support/Mozilla/NativeMessagingHosts/*
ln -s ${HOME}/.nix-profile/lib/mozilla/native-messaging-hosts/* ${HOME}/Library/Application\ Support/Mozilla/NativeMessagingHosts/
rebuild-nix-remote:
nixos-rebuild switch --use-remote-sudo --flake /etc/nixos --builders "ssh://mryall@rossi x86_64-linux - - - big-parallel" -j 0 -v