ops/nixos: create installcd

This commit is contained in:
Luke Granger-Brown 2021-03-18 23:51:38 +00:00
parent 665dc16239
commit 4a381f03d3
2 changed files with 23 additions and 0 deletions

View file

@ -58,12 +58,14 @@ let
builtins.listToAttrs (builtins.concatLists (lib.mapAttrsToList exportersForSystem evaledSystems)); builtins.listToAttrs (builtins.concatLists (lib.mapAttrsToList exportersForSystem evaledSystems));
netbootSystem = systemFor "netboot" (import ./netboot); netbootSystem = systemFor "netboot" (import ./netboot);
installcdSystem = systemFor "installcd" (import ./installcd);
in systemDrvs // { in systemDrvs // {
systems = systemDrvs; systems = systemDrvs;
systemExporters = systemExporters; systemExporters = systemExporters;
tailscaleIPs = systemTailscaleIPs; tailscaleIPs = systemTailscaleIPs;
netboot = netbootSystem.config.system.build.pixiecore; netboot = netbootSystem.config.system.build.pixiecore;
installcd = installcdSystem.config.system.build.isoImage;
systemPathJSON = pkgs.writeText "systems.json" (builtins.toJSON systemDrvs); systemPathJSON = pkgs.writeText "systems.json" (builtins.toJSON systemDrvs);
} }

View file

@ -0,0 +1,21 @@
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, lib, pkgs, rebuilder, config, ... }:
let
inherit (depot.ops) secrets;
in {
imports = [
../../../third_party/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
];
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
isoImage.contents = lib.mkAfter [{
source = /home/lukegb/depot;
target = "/depot";
}];
system.stateVersion = "21.05";
}