From 89db21792c78679f038c3c6404e3e9b77b61d329 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Feb 2021 16:24:38 +0100 Subject: [PATCH] configuration: use fileContents Instead of emulating it with 'readFile' --- configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 1a3f940..618af96 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { imports = @@ -84,7 +84,7 @@ transmission = { enable = true; username = "Ambroisie"; - password = pkgs.lib.removeSuffix "\n" (builtins.readFile ./secrets/transmission/password.txt); + password = lib.fileContents ./secrets/transmission/password.txt; }; };