nixos-config/hosts/bootstrap/default.nix
Gabriel Arazas 5a57c1886b
hosts/bootstrap: update config
A little update which should result in a smaller closure size.
2023-07-14 19:59:21 +08:00

32 lines
666 B
Nix

{ lib, config, pkgs, inputs, ... }:
{
imports = [
(lib.getUser "nixos" "nixos")
];
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_latest;
loader.systemd-boot.enable = true;
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
};
# Assume that this will be used for remote installations.
services.openssh = {
enable = true;
allowSFTP = true;
};
users.users.root.password = "";
}