nixos-config/hosts/bootstrap/default.nix

27 lines
700 B
Nix
Raw Normal View History

{ lib, config, pkgs, inputs, modulesPath, ... }:
2022-02-04 15:59:57 +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;
# 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;
target = "/etc/nixos/";
2022-02-04 15:59:57 +00:00
}];
};
boot.kernelPackages = pkgs.linuxPackages_latest;
2022-11-29 02:38:33 +00:00
# Assume that this will be used for remote installations.
services.openssh = {
enable = true;
allowSFTP = true;
};
2022-02-04 15:59:57 +00:00
}