forked from aylac.top/nixcfg
this repo has no description
1{ 2 config, 3 lib, 4 ... 5}: { 6 options.mySnippets.tailnet = { 7 name = lib.mkOption { 8 default = "cinnamon-is.ts.net"; 9 description = "Tailnet name."; 10 type = lib.types.str; 11 }; 12 13 networkMap = lib.mkOption { 14 type = lib.types.attrs; 15 description = "Hostnames, ports, and vHosts for ${config.mySnippets.tailnet.name} services."; 16 17 default = { 18 qbittorrent = { 19 hostName = "nanpi"; 20 port = 8080; 21 vHost = "qbittorrent.${config.mySnippets.tailnet.name}"; 22 }; 23 24 jellyfin = { 25 hostName = "nanpi"; 26 port = 8096; 27 vHost = "jellyfin.${config.mySnippets.tailnet.name}"; 28 }; 29 30 immich = { 31 hostName = "nanpi"; 32 port = 2283; 33 vHost = "immich.${config.mySnippets.tailnet.name}"; 34 }; 35 }; 36 }; 37 }; 38}