marleyos/Justfile

49 lines
972 B
Makefile
Raw Normal View History

default:
@just --list
defhost := `hostname`
defuser := env_var('USER')
2024-11-05 19:56:12 -08:00
alias dh := deployhome
[group('home')]
deployhome user=defuser host=defhost:
2025-01-11 20:21:29 -08:00
nh home switch -c {{user}}@{{host}} -b bak .
2024-11-05 19:56:12 -08:00
[group('home')]
2025-01-11 20:21:29 -08:00
refreshhome user=defuser host=defhost:
nh home switch -c {{user}}@{{host}} -b bak . -- --refresh
2024-11-03 19:12:15 -08:00
2025-01-06 18:45:16 -08:00
alias do := deployos
[group('nixos')]
deployos host=defhost:
2025-01-11 20:21:29 -08:00
nh os switch -H {{host}} .
2025-01-06 18:45:16 -08:00
alias dd := deploydarwin
[group('darwin')]
deploydarwin host=defhost:
darwin-rebuild switch --flake .#{{host}}
2024-11-05 19:56:12 -08:00
alias up := update
[group('update')]
update:
nix flake update
[group('update')]
updatejust this:
nix flake update {{this}}
2024-11-17 16:32:27 -08:00
alias gc := collectgarbage
[group('maintainence')]
2024-11-17 16:32:27 -08:00
collectgarbage:
2024-11-18 21:17:03 -08:00
nh clean all
2024-12-02 18:47:20 -08:00
[group('maintainence')]
genFirefoxAddons:
nix run git+https://git.sr.ht/~rycee/mozilla-addons-to-nix/ -- \
overlays/firefox-addons/addons.json \
overlays/firefox-addons/addons.nix
2024-12-02 18:47:20 -08:00
alias s := search
search this:
nh search {{this}}