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:
parent
b2870615f7
commit
1770396bf5
2 changed files with 24 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ depot, pkgs, ... }:
|
args @ { depot, pkgs, ... }:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
chupacabra = import ./machines/chupacabra.nix;
|
chupacabra = import ./machines/chupacabra.nix;
|
||||||
|
@ -7,8 +7,13 @@ rec {
|
||||||
configuration = chupacabra;
|
configuration = chupacabra;
|
||||||
}).system;
|
}).system;
|
||||||
|
|
||||||
|
iso = import ./iso.nix args;
|
||||||
|
|
||||||
# Build chupacabra in CI
|
# Build chupacabra in CI
|
||||||
meta.targets = [ "chupacabraSystem" ];
|
meta.targets = [
|
||||||
|
"chupacabraSystem"
|
||||||
|
"iso"
|
||||||
|
];
|
||||||
|
|
||||||
rebuilder =
|
rebuilder =
|
||||||
let
|
let
|
||||||
|
|
17
users/glittershark/system/system/iso.nix
Normal file
17
users/glittershark/system/system/iso.nix
Normal 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
|
Loading…
Reference in a new issue