Wildcard encrypt files in secrets dir, util function to load

secrets, use apu-key in weather widget
This commit is contained in:
2025-03-01 15:04:56 +01:00
parent fd03c87c18
commit 7ab89cda7c
3 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,6 @@
lib:
{
loadSecret =
filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
}