nixos/version: add config.system.nixos.distroName and config.system.nixos.distroId

This commit is contained in:
Victor Fuentes 2022-12-17 18:00:58 -05:00
parent c9c4aea7ab
commit d3528cdc3d
No known key found for this signature in database
GPG key ID: 0A88B68D6A9ACAE0
19 changed files with 64 additions and 40 deletions

View file

@ -41,7 +41,7 @@ in {
};
vmName = mkOption {
type = types.str;
default = "NixOS ${config.system.nixos.label} (${pkgs.stdenv.hostPlatform.system})";
default = "${config.system.nixos.distroName} ${config.system.nixos.label} (${pkgs.stdenv.hostPlatform.system})";
description = lib.mdDoc ''
The name of the VirtualBox appliance.
'';