yep yep, justfiles are cooooool
This commit is contained in:
parent
8228418b7f
commit
3921693f84
1 changed files with 17 additions and 0 deletions
17
justfile
Normal file
17
justfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[private]
|
||||||
|
default:
|
||||||
|
@just -l
|
||||||
|
|
||||||
|
[doc('Update flake dependencies')]
|
||||||
|
update:
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
[doc('install nixos on a system (uses nix-anywhere)
|
||||||
|
> profile: Which profile to use
|
||||||
|
> host: How to reach the target system in the standard format of `user@host`
|
||||||
|
')]
|
||||||
|
install profile host:
|
||||||
|
nix run nixpkgs#nixos-anywhere -- \
|
||||||
|
--flake .#{{profile}} \
|
||||||
|
--generate-hardware-config nixos-generate-config ./hardware-configuration.nix \
|
||||||
|
{{host}}
|
Loading…
Add table
Add a link
Reference in a new issue