2024-06-21 08:10:50 +00:00
|
|
|
{ lib, config, pkgs, foodogsquaredLib, foodogsquaredModulesPath, ... }:
|
2022-02-04 15:59:57 +00:00
|
|
|
|
2023-07-16 10:17:05 +00:00
|
|
|
# Since this will be exported as an installer ISO, you'll have to keep in mind
|
|
|
|
# about the added imports from nixos-generators. In this case, it simply adds
|
|
|
|
# the NixOS installation CD profile.
|
|
|
|
#
|
|
|
|
# This means, there will be a "nixos" user among other things.
|
2022-02-04 15:59:57 +00:00
|
|
|
{
|
2024-02-27 13:18:18 +00:00
|
|
|
imports = [
|
|
|
|
"${foodogsquaredModulesPath}/profiles/installer.nix"
|
|
|
|
];
|
|
|
|
|
2024-02-17 06:58:53 +00:00
|
|
|
config = lib.mkMerge [
|
|
|
|
{
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_6;
|
2023-07-14 11:59:21 +00:00
|
|
|
|
2024-02-17 06:58:53 +00:00
|
|
|
# Assume that this will be used for remote installations.
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
allowSFTP = true;
|
|
|
|
};
|
2024-01-15 00:00:15 +00:00
|
|
|
|
2024-02-17 06:58:53 +00:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|
2022-02-04 15:59:57 +00:00
|
|
|
|
2024-06-21 08:10:50 +00:00
|
|
|
(lib.mkIf (foodogsquaredLib.nixos.isFormat config "isoImage") {
|
2024-02-17 06:58:53 +00:00
|
|
|
isoImage = {
|
|
|
|
isoBaseName = config.networking.hostName;
|
2024-06-21 08:10:50 +00:00
|
|
|
edition = "minimal";
|
2022-11-29 02:38:33 +00:00
|
|
|
|
2024-02-17 06:58:53 +00:00
|
|
|
squashfsCompression = "zstd -Xcompression-level 11";
|
2024-04-06 02:53:30 +00:00
|
|
|
|
|
|
|
makeEfiBootable = true;
|
|
|
|
makeUsbBootable = true;
|
2024-02-17 06:58:53 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2022-02-04 15:59:57 +00:00
|
|
|
}
|