feat: kanboard test

This commit is contained in:
Nick 2025-06-09 01:12:16 -05:00
parent 6b4e499a3a
commit 2b0ab1d538

View file

@ -16,7 +16,7 @@ in
services = {
kanboard = {
enable = true;
domain = host;
domain = web.localhost.address1;
# dataDir = "/var/lib/${service.name}";
# settings = {
# HTTP_PROXY_HOSTNAME = host;
@ -51,47 +51,47 @@ in
};
};
};
sops =
let
sopsPath = secret: {
path = "${service.sops.path0}/${service.name}-${secret}";
owner = service.name;
mode = "600";
};
in
{
secrets = builtins.listToAttrs (
map
(secret: {
name = "${service.name}-${secret}";
value = sopsPath secret;
})
[
"smtp"
]
);
};
# sops =
# let
# sopsPath = secret: {
# path = "${service.sops.path0}/${service.name}-${secret}";
# owner = service.name;
# mode = "600";
# };
# in
# {
# secrets = builtins.listToAttrs (
# map
# (secret: {
# name = "${service.name}-${secret}";
# value = sopsPath secret;
# })
# [
# "smtp"
# ]
# );
# };
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";
options = [
"bind"
];
depends = [
ceres.storage0.mount
];
};
# fileSystems."/var/lib/${service.name}" = {
# device = service.paths.path0;
# fsType = "none";
# options = [
# "bind"
# ];
# depends = [
# ceres.storage0.mount
# ];
# };
systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
"Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
];
# systemd.tmpfiles.rules = [
# "Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
# "Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
# ];
users.users.${service.name}.extraGroups = [
"caddy"
"postgres"
];
# users.users.${service.name}.extraGroups = [
# "caddy"
# "postgres"
# ];
networking = {
firewall = {