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 GitHub
parent 72d63d37eb
commit 957c7c0918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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