Skyler Grey | f1c352b | 2024-04-19 00:07:44 +0000 | [diff] [blame] | 1 | { config, ... }: { |
| 2 | services.wiki-js = { |
| 3 | enable = true; |
| 4 | |
| 5 | settings = { |
| 6 | bindIP = "127.0.0.255"; |
| 7 | port = 1035; |
| 8 | |
| 9 | db = { |
| 10 | host = "standard"; |
| 11 | user = "wiki"; |
| 12 | pass = "$(DB_PASS)"; |
| 13 | }; |
| 14 | }; |
| 15 | |
| 16 | environmentFile = config.sops.secrets.wikijs__env_bin.path; |
| 17 | }; |
| 18 | |
| 19 | sops.secrets.wikijs__env_bin = { |
| 20 | mode = "0600"; |
| 21 | owner = config.users.users.root.name; |
| 22 | group = config.users.users.root.group; |
| 23 | sopsFile = ../../secrets/wikijs.env.bin; |
| 24 | format = "binary"; |
| 25 | }; |
| 26 | } |