mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
f9589f2ca1
This is to make creating installers easier.
27 lines
658 B
Nix
27 lines
658 B
Nix
{ self, lib, config, pkgs, inputs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
|
(lib.getUser "nixos" "nixos")
|
|
];
|
|
|
|
isoImage = {
|
|
isoBaseName = "bootstrap-${config.networking.hostName}";
|
|
contents = [{
|
|
source = self;
|
|
target = "/bootstrap/";
|
|
}];
|
|
storeContents = [
|
|
self.devShell.${config.nixpkgs.system}
|
|
] ++ builtins.attrValues inputs;
|
|
};
|
|
|
|
networking.hostName = "bootstrap";
|
|
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
|
|
|
|
users.users.root.password = "";
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
}
|