merge files for vaultwarden
This commit is contained in:
parent
a8dfbe7154
commit
132e6cff86
2 changed files with 30 additions and 26 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs
|
{ customPkgs
|
||||||
|
, pkgs
|
||||||
, utils
|
, utils
|
||||||
, customPkgs
|
|
||||||
}:
|
}:
|
||||||
{ serviceName ? "Ttrss"
|
{ serviceName ? "Ttrss"
|
||||||
, siteName ? "ttrss"
|
, siteName ? "ttrss"
|
||||||
|
@ -28,14 +28,6 @@
|
||||||
|
|
||||||
with pkgs.lib.attrsets;
|
with pkgs.lib.attrsets;
|
||||||
let
|
let
|
||||||
mkServices = services: listToAttrs (map (
|
|
||||||
x: nameValuePair x.name x
|
|
||||||
) services);
|
|
||||||
|
|
||||||
mkDistribution = services: on: listToAttrs (map (
|
|
||||||
x: nameValuePair x.name on
|
|
||||||
) services);
|
|
||||||
|
|
||||||
rtdir = "/run/ttrss";
|
rtdir = "/run/ttrss";
|
||||||
lock_directory = "${rtdir}/lock";
|
lock_directory = "${rtdir}/lock";
|
||||||
cache_directory = "${rtdir}/cache";
|
cache_directory = "${rtdir}/cache";
|
||||||
|
@ -191,23 +183,23 @@ rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = mkServices [
|
services = {
|
||||||
db
|
${db.name} = db;
|
||||||
config
|
${config.name} = config;
|
||||||
dbupgrade
|
${dbupgrade.name} = dbupgrade;
|
||||||
service
|
${service.name} = service;
|
||||||
phpfpmService
|
${phpfpmService.name} = phpfpmService;
|
||||||
updateService
|
${updateService.name} = updateService;
|
||||||
];
|
};
|
||||||
|
|
||||||
distribute = mkDistribution [
|
distribute = on: {
|
||||||
db
|
${db.name} = on;
|
||||||
config
|
${config.name} = on;
|
||||||
dbupgrade
|
${dbupgrade.name} = on;
|
||||||
service
|
${service.name} = on;
|
||||||
phpfpmService
|
${phpfpmService.name} = on;
|
||||||
updateService
|
${updateService.name} = on;
|
||||||
];
|
};
|
||||||
|
|
||||||
directories_modes = {
|
directories_modes = {
|
||||||
"${rtdir}" = "0550";
|
"${rtdir}" = "0550";
|
||||||
|
|
|
@ -173,4 +173,16 @@ rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
${db.name} = db;
|
||||||
|
${web.name} = web;
|
||||||
|
${service.name} = service;
|
||||||
|
};
|
||||||
|
|
||||||
|
distribute = on: {
|
||||||
|
${db.name} = on;
|
||||||
|
${web.name} = on;
|
||||||
|
${service.name} = on;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue