Vic's *Nix config.
at main 29 lines 582 B view raw
1username := `whoami` 2hostname := `hostname -s` 3system := `nix-instantiate --raw --strict --eval -E builtins.currentSystem` 4 5help: 6 just -l 7 8fmt *args: 9 fmtt {{args}} 10 11hm *args: 12 {{username}}@{{hostname}} switch --ask {{args}} 13 14build host=hostname *args: 15 {{hostname}} build {{args}} 16 17switch host=hostname *args: 18 {{hostname}} switch --ask {{args}} 19 20boot host=hostname *args: 21 {{hostname}} boot --ask {{args}} 22 23reboot host=hostname *args: 24 just boot {{host}} --ask {{args}} 25 reboot 26 27ci test="" *args: 28 nix-unit --expr "(import ./.).ci \"{{system}}\" \"{{test}}\"" {{args}} 29