feat: wiki test

This commit is contained in:
Nick 2024-10-19 16:04:58 -05:00
parent 020fec7e8e
commit beff387aa4

View file

@ -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;
@ -48,23 +48,23 @@ in {
};
};
# sops = let
# sopsSecrets = ["pass"];
# sopsPath = secret: {
# path = "${sops.path0}/${name}-${secret}";
# owner = "root";
# 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 = "root";
mode = "600";
};
in {
secrets = builtins.listToAttrs (
map
(secret: {
name = "${name}-${secret}";
value = sopsPath secret;
})
sopsSecrets
);
};
fileSystems."/var/lib/${name}" = {
device = paths.path0;