ops/nixos: create installcd
This commit is contained in:
parent
665dc16239
commit
4a381f03d3
2 changed files with 23 additions and 0 deletions
|
@ -58,12 +58,14 @@ let
|
|||
builtins.listToAttrs (builtins.concatLists (lib.mapAttrsToList exportersForSystem evaledSystems));
|
||||
|
||||
netbootSystem = systemFor "netboot" (import ./netboot);
|
||||
installcdSystem = systemFor "installcd" (import ./installcd);
|
||||
in systemDrvs // {
|
||||
systems = systemDrvs;
|
||||
systemExporters = systemExporters;
|
||||
tailscaleIPs = systemTailscaleIPs;
|
||||
|
||||
netboot = netbootSystem.config.system.build.pixiecore;
|
||||
installcd = installcdSystem.config.system.build.isoImage;
|
||||
|
||||
systemPathJSON = pkgs.writeText "systems.json" (builtins.toJSON systemDrvs);
|
||||
}
|
||||
|
|
21
ops/nixos/installcd/default.nix
Normal file
21
ops/nixos/installcd/default.nix
Normal 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";
|
||||
}
|
Loading…
Reference in a new issue