Just: install command

This commit is contained in:
Primrose 2025-04-10 22:35:21 +02:00
parent d735b392d4
commit 5ceb5e6f40
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -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