You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
809 B
Nix
30 lines
809 B
Nix
# applies to self-built installers, esp. auto installers
|
|
|
|
{ inputs, ... }@flakeArg:
|
|
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
# from nixpkgs
|
|
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" # includes allHardware configs
|
|
# from flake inputs
|
|
inputs.unattended-installer.nixosModules.default
|
|
# from here
|
|
./common.nix
|
|
./pveGuestHwSupport.nix
|
|
];
|
|
config = {
|
|
isoImage = {
|
|
isoBaseName = "nixos-${config.isoImage.edition}";
|
|
squashfsCompression = "zstd"; # more efficient
|
|
};
|
|
networking.domain = lib.mkDefault "temp.6nw.de"; # acceptable here because temporary
|
|
system.stateVersion = lib.versions.majorMinor config.system.nixos.version;
|
|
# installer does not necessarily need working SSH access & an extra user for that
|
|
};
|
|
}
|