all repos — searchix @ fb25a97b6c55c6d51e59d983fdb74b4917c97bf0

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: nix module

Alan Pearce
commit

fb25a97b6c55c6d51e59d983fdb74b4917c97bf0

parent

42bcd10f010f884bddb0142c31b526faace24186

1 file changed, 16 insertions(+), 0 deletions(-)

changed files
A nix/modules/source-options.nix
@@ -0,0 +1,16 @@
+{ cfg }: +{ config, lib, name, ... }: +let + inherit (lib) literalExpression mkOption mkEnableOption types; +in +{ + options = { + key = mkOption { + type = types.strMatching "[a-z0-9_-]*"; + default = name; + description = "URL-safe name for this source."; + }; + + enable = mkEnableOption "Whether to enable this source."; + }; +}