2023-06-23 03:46:21 +00:00
|
|
|
{ lib, config, pkgs, inputs, ... }:
|
2022-02-04 15:59:57 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2022-02-05 09:55:48 +00:00
|
|
|
(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;
|
2022-02-04 15:59:57 +00:00
|
|
|
contents = [{
|
2023-06-23 03:46:21 +00:00
|
|
|
source = inputs.self;
|
2022-02-04 15:59:57 +00:00
|
|
|
target = "/bootstrap/";
|
|
|
|
}];
|
|
|
|
storeContents = [
|
2023-06-23 03:46:21 +00:00
|
|
|
inputs.self.devShells.${config.nixpkgs.system}.default
|
2022-02-04 15:59:57 +00:00
|
|
|
] ++ builtins.attrValues inputs;
|
|
|
|
};
|
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
|
2023-07-05 08:39:58 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
allowSFTP = true;
|
|
|
|
};
|
|
|
|
|
2022-02-05 09:55:48 +00:00
|
|
|
users.users.root.password = "";
|
2022-02-04 15:59:57 +00:00
|
|
|
}
|