configuration: use lib.fileContents

This commit is contained in:
Antoine Martin 2021-02-05 22:12:07 +01:00
parent bb3532eb8a
commit 1ac3cb09b7

View file

@ -79,7 +79,7 @@
borg-backup = { borg-backup = {
enable = true; enable = true;
repo = (lib.removeSuffix "\n" (builtins.readFile ./secrets/borg-backup-repo)); repo = lib.fileContents ./secrets/borg-backup-repo;
}; };
gitea = { gitea = {
@ -95,10 +95,9 @@
matrix = { matrix = {
enable = true; enable = true;
registration_shared_secret = registration_shared_secret = (
(lib.removeSuffix "\n" ( lib.fileContents ./secrets/matrix-registration-shared-secret
builtins.readFile ./secrets/matrix-registration-shared-secret );
));
}; };
monitoring = { monitoring = {