marleyos/Justfile
punkfairie cc51153ece
feat(darwin): Big messy darwin bootstrap
I thought about splitting this into smaller commits but fuck it
2024-11-21 20:28:46 -08:00

33 lines
604 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 .
[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