mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-07 07:09:15 +00:00
Just: install command
This commit is contained in:
parent
d735b392d4
commit
5ceb5e6f40
1 changed files with 9 additions and 0 deletions
9
Justfile
9
Justfile
|
|
@ -7,6 +7,15 @@ os host action:
|
|||
--fast \
|
||||
--attr "nixosConfigurations.{{ host }}"
|
||||
|
||||
install host:
|
||||
#!/usr/bin/env bash
|
||||
nixpkgs=$(nix-instantiate --eval -E "let sources = import ./nix/sources.nix {}; in sources.nixpkgs.outPath" | jq -r .)
|
||||
sudo nixos-install \
|
||||
-I nixpkgs=${nixpkgs} \
|
||||
-I nixos-config=./nix/configurations/{{ host }}.nix \
|
||||
--file ./default.nix \
|
||||
--attr "nixosConfigurations.{{ host }}"
|
||||
|
||||
update:
|
||||
niv update nixpkgs
|
||||
niv update nur
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue