mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: wiki test
This commit is contained in:
parent
fd0e5275d5
commit
573728f2ed
1 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue