nixos-configuration/home-manager/secretsLoader.nix
2025-03-01 15:09:03 +01:00

7 lines
118 B
Nix

lib:
{
loadSecret =
filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
}