hashString (readFile ...) -> hashFile

Co-authored-by: Winter <78392041+winterqt@users.noreply.github.com>
This commit is contained in:
Taeer Bar-Yam 2022-01-13 09:57:04 -05:00 committed by Taeer Bar-Yam
parent cd108c08e8
commit 76d9127f92

View file

@ -232,7 +232,7 @@ in
(lib.mapAttrsToList
(name: {action, service, file, path, mode, owner, group, ...}:
let
fileHash = builtins.hashString "sha256" (builtins.readFile file);
fileHash = builtins.hashFile "sha256" file;
restartTriggers = [ fileHash path mode owner group ];
in
lib.mkMerge [