marleyos/Justfile

43 lines
772 B
Makefile
Raw Normal View History

default:
@just --list
defhost := `hostname`
defuser := env_var('USER')
2024-11-06 03:56:12 +00:00
alias dh := deployhome
[group('home')]
deployhome user=defuser host=defhost:
nh home switch -c {{user}}@{{host}} -b bak . -- --impure
2024-11-06 03:56:12 +00:00
[group('home')]
refreshhome:
2024-11-14 04:01:43 +00:00
home-manager switch --refresh -b bak --flake .
2024-11-04 03:12:15 +00:00
2025-01-07 02:45:16 +00:00
alias do := deployos
[group('nixos')]
deployos host=defhost:
nh os switch -H {{host}} . -- --impure
alias dd := deploydarwin
[group('darwin')]
deploydarwin host=defhost:
darwin-rebuild switch --flake .#{{host}}
2024-11-06 03:56:12 +00:00
alias up := update
[group('update')]
update:
nix flake update
[group('update')]
updatejust this:
nix flake update {{this}}
2024-11-18 00:32:27 +00:00
alias gc := collectgarbage
[group('maintainence')]
2024-11-18 00:32:27 +00:00
collectgarbage:
2024-11-19 05:17:03 +00:00
nh clean all
2024-12-03 02:47:20 +00:00
alias s := search
search this:
nh search {{this}}