nixos-config/hosts/bootstrap/default.nix

27 lines
637 B
Nix
Raw Normal View History

2022-02-04 15:59:57 +00:00
{ self, lib, config, pkgs, inputs, modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
(lib.getUser "nixos" "nixos")
2022-02-04 15:59:57 +00:00
];
isoImage = {
2022-11-25 06:01:25 +00:00
isoBaseName = "bootstrap";
2022-02-04 15:59:57 +00:00
contents = [{
source = self;
target = "/bootstrap/";
}];
storeContents = [
2022-07-08 01:46:56 +00:00
self.devShells.${config.nixpkgs.system}.default
2022-02-04 15:59:57 +00:00
] ++ builtins.attrValues inputs;
};
networking.hostName = "bootstrap";
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
users.users.root.password = "";
2022-02-04 15:59:57 +00:00
boot.loader.systemd-boot.enable = true;
}