From 17aee57df455e5524a6911ff517acfb3ae2629b5 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 16 Mar 2021 16:42:58 -0500 Subject: [PATCH] iso: pin inputs as flakes This intends to avoid downloading inputs on the iso live image and is a step towards completely air-gaped installs. credits: @Pacman99 closes: #190 --- lib/devos/devosSystem.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/devos/devosSystem.nix b/lib/devos/devosSystem.nix index 78b7f363..46ca9658 100644 --- a/lib/devos/devosSystem.nix +++ b/lib/devos/devosSystem.nix @@ -1,4 +1,4 @@ -{ lib, nixos, self, ... }: +{ lib, nixos, self, inputs, ... }: { modules, ... } @ args: lib.nixosSystem (args // { @@ -17,6 +17,7 @@ lib.nixosSystem (args // { source = self; target = "/devos/"; }]; + nix.registry = lib.mapAttrs (n: v: { flake = v; }) inputs; # confilcts with networking.wireless which might be slightly # more useful on a stick networking.networkmanager.enable = lib.mkForce false;