nisosProfiles: add installer
parent
76d22b49ab
commit
06aea6f327
@ -0,0 +1,29 @@
|
||||
# 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
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue