krebs.systemd: allow LoadCredential to be a string

This commit is contained in:
tv 2021-12-24 00:49:30 +01:00
parent f7ab46c2ec
commit 234d9d96bf

View File

@ -31,7 +31,8 @@
lib.types.absolute-pathname.check
(map
(lib.compose [ lib.maybeHead (lib.match "[^:]*:(.*)") ])
config.systemd.services.${serviceName}.serviceConfig.LoadCredential);
(lib.toList
config.systemd.services.${serviceName}.serviceConfig.LoadCredential));
}
) config.krebs.systemd.services;