nixos-config/hosts/bootstrap/default.nix

32 lines
666 B
Nix
Raw Normal View History

2023-06-23 03:46:21 +00:00
{ lib, config, pkgs, inputs, ... }:
2022-02-04 15:59:57 +00:00
{
imports = [
(lib.getUser "nixos" "nixos")
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
}];
};
2022-11-29 02:38:33 +00:00
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 = "";
2022-02-04 15:59:57 +00:00
}