nixos-config/hosts/bootstrap/default.nix
Gabriel Arazas 2397656b7f
hosts/bootstrap: downgrade Linux kernel to 6.1
This is mainly to support zfs which is a likely future for me once I got
my hands on a mini-PC server.
2023-10-09 22:30:25 +08:00

27 lines
697 B
Nix

{ lib, config, pkgs, inputs, modulesPath, ... }:
# 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.
{
isoImage = {
isoBaseName = config.networking.hostName;
# Store the source code in a easy-to-locate path.
contents = [{
source = inputs.self;
target = "/etc/nixos/";
}];
};
boot.kernelPackages = pkgs.linuxPackages_6_1;
# Assume that this will be used for remote installations.
services.openssh = {
enable = true;
allowSFTP = true;
};
}