nixos-config/hosts/bootstrap/default.nix
2022-12-04 08:55:06 +08:00

29 lines
629 B
Nix

{ self, lib, config, pkgs, inputs, modulesPath, ... }:
{
imports = [
(lib.getUser "nixos" "nixos")
];
isoImage = {
isoBaseName = "bootstrap";
contents = [{
source = self;
target = "/bootstrap/";
}];
storeContents = [
self.devShells.${config.nixpkgs.system}.default
] ++ builtins.attrValues inputs;
};
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.systemd-boot.enable = true;
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
};
networking.hostName = "bootstrap";
users.users.root.password = "";
}