37 lines
669 B
Makefile
37 lines
669 B
Makefile
default:
|
|
@just --list
|
|
|
|
defhost := `hostname`
|
|
defuser := env_var('USER')
|
|
|
|
alias dh := deployhome
|
|
[group('home')]
|
|
deployhome user=defuser host=defhost:
|
|
nh home switch -c {{user}}@{{host}} -b bak . -- --impure
|
|
|
|
[group('home')]
|
|
refreshhome:
|
|
home-manager switch --refresh -b bak --flake .
|
|
|
|
alias dd := deploydarwin
|
|
[group('darwin')]
|
|
deploydarwin host=defhost:
|
|
darwin-rebuild switch --flake .#{{host}}
|
|
|
|
alias up := update
|
|
[group('update')]
|
|
update:
|
|
nix flake update
|
|
|
|
[group('update')]
|
|
updatejust this:
|
|
nix flake update {{this}}
|
|
|
|
alias gc := collectgarbage
|
|
[group('maintainence')]
|
|
collectgarbage:
|
|
nh clean all
|
|
|
|
alias s := search
|
|
search this:
|
|
nh search {{this}}
|