feat(gs/system): Add ISO config

Add configuration for a live install iso based on the depot's nixpkgs
pin and with a couple of networking-based options tweaked a bit.

Change-Id: I208bd0f7815fe54fc805e8995a8288d7a0d36f84
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2014
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2020-09-29 17:54:36 -04:00 committed by glittershark
parent b2870615f7
commit 1770396bf5
2 changed files with 24 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ depot, pkgs, ... }:
args @ { depot, pkgs, ... }:
rec {
chupacabra = import ./machines/chupacabra.nix;
@ -7,8 +7,13 @@ rec {
configuration = chupacabra;
}).system;
iso = import ./iso.nix args;
# Build chupacabra in CI
meta.targets = [ "chupacabraSystem" ];
meta.targets = [
"chupacabraSystem"
"iso"
];
rebuilder =
let

View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
let
configuration = { ... }: {
imports = [
"${pkgs.nixpkgsSrc}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix"
"${pkgs.nixpkgsSrc}/nixos/modules/installer/cd-dvd/channel.nix"
];
networking.networkmanager.enable = true;
networking.useDHCP = false;
networking.firewall.enable = false;
networking.wireless.enable = pkgs.lib.mkForce false;
};
in (pkgs.nixos {
inherit configuration;
}).config.system.build.isoImage