From fe1d6fe3a28c2158e5847c0d94ba97fbd5925162 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Oct 2024 15:26:09 -0500 Subject: [PATCH] feat: wiki test --- nixos/modules/services/wiki.nix | 36 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nixos/modules/services/wiki.nix b/nixos/modules/services/wiki.nix index be95ce6..71e5d6c 100644 --- a/nixos/modules/services/wiki.nix +++ b/nixos/modules/services/wiki.nix @@ -13,7 +13,7 @@ in { services = { wiki-js = { enable = true; - # environmentFile = config.sops.secrets."${name}-pass".path; + environmentFile = config.sops.secrets."${name}-pass".path; settings = { port = ports.port0; bindIP = localhost; @@ -37,23 +37,23 @@ in { }; }; - # sops = let - # sopsSecrets = ["pass"]; - # sopsPath = secret: { - # path = "${sops.path0}/${name}-${secret}"; - # owner = name; - # mode = "600"; - # }; - # in { - # secrets = builtins.listToAttrs ( - # map - # (secret: { - # name = "${name}-${secret}"; - # value = sopsPath secret; - # }) - # sopsSecrets - # ); - # }; + sops = let + sopsSecrets = ["pass"]; + sopsPath = secret: { + path = "${sops.path0}/${name}-${secret}"; + owner = name; + mode = "600"; + }; + in { + secrets = builtins.listToAttrs ( + map + (secret: { + name = "${name}-${secret}"; + value = sopsPath secret; + }) + sopsSecrets + ); + }; fileSystems."/var/lib/${name}" = { device = paths.path0;