clanCore: Fixed missing type null for clanIcon

This commit is contained in:
Luis Hebendanz 2023-12-08 19:27:58 +01:00
parent eba34bf2f7
commit d6052c3497
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@
'';
};
clanIcon = lib.mkOption {
type = lib.types.path;
type = lib.types.either lib.types.path lib.types.null;
description = ''
the location of the clan icon
'';

View File

@ -82,6 +82,7 @@ def nix_eval(flags: list[str]) -> list[str]:
return default_flags + flags
@deal.raises(ClanError)
def nix_metadata(flake: str) -> dict[str, Any]:
cmd = nix_command(["flake", "metadata", "--json", flake])
proc = subprocess.run(cmd, check=True, text=True, stdout=subprocess.PIPE)