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
This commit is contained in:
David Arnold 2021-03-16 16:42:58 -05:00 committed by "David Arnold"
parent 4034659350
commit 17aee57df4
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08

View file

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