summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-12-24 00:49:30 +0100
committertv <tv@krebsco.de>2021-12-24 00:51:28 +0100
commit234d9d96bf749c67add1339d37706bc07153d5f8 (patch)
tree425c54d2b16cfedb60cfe1212aa7a875fdc8cda4
parentf7ab46c2ec77fc87a9d564306c867d79ba6ab070 (diff)
krebs.systemd: allow LoadCredential to be a string
-rw-r--r--krebs/3modules/systemd.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/3modules/systemd.nix b/krebs/3modules/systemd.nix
index 0ce44391e..294f80a3c 100644
--- a/krebs/3modules/systemd.nix
+++ b/krebs/3modules/systemd.nix
@@ -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;