From 1ac3cb09b737794a2362335a931842af9e1a88c8 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 5 Feb 2021 22:12:07 +0100 Subject: [PATCH] configuration: use lib.fileContents --- configuration.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 12a7975..a9eca91 100644 --- a/configuration.nix +++ b/configuration.nix @@ -79,7 +79,7 @@ borg-backup = { enable = true; - repo = (lib.removeSuffix "\n" (builtins.readFile ./secrets/borg-backup-repo)); + repo = lib.fileContents ./secrets/borg-backup-repo; }; gitea = { @@ -95,10 +95,9 @@ matrix = { enable = true; - registration_shared_secret = - (lib.removeSuffix "\n" ( - builtins.readFile ./secrets/matrix-registration-shared-secret - )); + registration_shared_secret = ( + lib.fileContents ./secrets/matrix-registration-shared-secret + ); }; monitoring = {