diff --git a/nixosModules/clanCore/flake-module.nix b/nixosModules/clanCore/flake-module.nix index ddac88f18..4d6dbe2e0 100644 --- a/nixosModules/clanCore/flake-module.nix +++ b/nixosModules/clanCore/flake-module.nix @@ -33,7 +33,7 @@ ''; }; clanIcon = lib.mkOption { - type = lib.types.path; + type = lib.types.nullOr lib.types.path; description = '' the location of the clan icon ''; diff --git a/pkgs/clan-cli/clan_cli/nix.py b/pkgs/clan-cli/clan_cli/nix.py index 3a7aca7ee..ae47a4f48 100644 --- a/pkgs/clan-cli/clan_cli/nix.py +++ b/pkgs/clan-cli/clan_cli/nix.py @@ -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)