From 5ceb5e6f40bbf393f4216e64868434e3a47210da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Thu, 10 Apr 2025 22:35:21 +0200 Subject: [PATCH] Just: install command --- Justfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Justfile b/Justfile index 57b0030d..5e1ecf2c 100644 --- a/Justfile +++ b/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