2023-07-16 10:17:05 +00:00
|
|
|
{ lib, config, pkgs, inputs, modulesPath, ... }:
|
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
|
|
|
{
|
|
|
|
isoImage = {
|
2023-06-23 03:46:21 +00:00
|
|
|
isoBaseName = config.networking.hostName;
|
2023-07-14 11:59:21 +00:00
|
|
|
|
|
|
|
# Store the source code in a easy-to-locate path.
|
2022-02-04 15:59:57 +00:00
|
|
|
contents = [{
|
2023-06-23 03:46:21 +00:00
|
|
|
source = inputs.self;
|
2023-07-14 11:59:21 +00:00
|
|
|
target = "/etc/nixos/";
|
2022-02-04 15:59:57 +00:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
2023-10-09 14:30:25 +00:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
2022-11-29 02:38:33 +00:00
|
|
|
|
2023-07-14 11:59:21 +00:00
|
|
|
# Assume that this will be used for remote installations.
|
2023-07-05 08:39:58 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
allowSFTP = true;
|
|
|
|
};
|
2022-02-04 15:59:57 +00:00
|
|
|
}
|