services require storage

This commit is contained in:
mjallen18
2025-12-19 14:06:18 -06:00
parent 479ac18f20
commit e8fcf96253
20 changed files with 25 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ rec {
options ? { },
moduleConfig ? { },
domain ? "services",
config
config,
serviceName ? name
}:
let
cfg = config.${namespace}.${domain}.${name};
@@ -63,6 +64,10 @@ rec {
groups.${name} = { };
};
systemd.services.${serviceName} = {
requires = [ "media-nas-main.mount" ];
};
services = {
postgresql = lib.mkIf cfg.configureDb {
enable = true;