diff --git a/modules/nixos/meta/services.nix b/modules/nixos/meta/services.nix new file mode 100644 index 0000000..fee970a --- /dev/null +++ b/modules/nixos/meta/services.nix @@ -0,0 +1,27 @@ +{ lib, ... }: +{ + options.custom.meta.services = lib.mkOption { + type = lib.types.attrsOf ( + lib.types.submodule ( + { name, ... }: + { + options = { + title = lib.mkOption { + type = lib.types.nonEmptyStr; + default = name; + }; + url = lib.mkOption { + type = lib.types.nonEmptyStr; + default = "https://${name}"; + }; + icon = lib.mkOption { + type = lib.types.nonEmptyStr; + default = ""; + }; + }; + } + ) + ); + default = { }; + }; +}