nixos-config/hosts/bootstrap/default.nix

32 lines
671 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;
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" ];
};
services.openssh = {
enable = true;
allowSFTP = true;
};
users.users.root.password = "";
2022-02-04 15:59:57 +00:00
}