feat: wiki test

This commit is contained in:
Nick 2024-10-19 15:16:10 -05:00
parent fd0e5275d5
commit 573728f2ed

View file

@ -13,7 +13,7 @@ in {
services = { services = {
wiki-js = { wiki-js = {
enable = true; enable = true;
environmentFile = config.sops.secrets."${name}-pass".path; # environmentFile = config.sops.secrets."${name}-pass".path;
settings = { settings = {
port = ports.port0; port = ports.port0;
bindIP = localhost; bindIP = localhost;
@ -37,23 +37,23 @@ in {
}; };
}; };
sops = let # sops = let
sopsSecrets = ["pass"]; # sopsSecrets = ["pass"];
sopsPath = secret: { # sopsPath = secret: {
path = "${sops.path0}/${name}-${secret}"; # path = "${sops.path0}/${name}-${secret}";
owner = name; # owner = name;
mode = "600"; # mode = "600";
}; # };
in { # in {
secrets = builtins.listToAttrs ( # secrets = builtins.listToAttrs (
map # map
(secret: { # (secret: {
name = "${name}-${secret}"; # name = "${name}-${secret}";
value = sopsPath secret; # value = sopsPath secret;
}) # })
sopsSecrets # sopsSecrets
); # );
}; # };
fileSystems."/var/lib/${name}" = { fileSystems."/var/lib/${name}" = {
device = paths.path0; device = paths.path0;