Added pi4 to systems, moved getSecret function to lib

This commit is contained in:
2025-04-12 20:25:10 +02:00
parent 6ca92c8537
commit 0649473709
5 changed files with 17 additions and 11 deletions

View File

@ -2,8 +2,11 @@
{ lib, ... }:
{
getSecret = with lib.strings; filePath: trim (removeSuffix "\n" (builtins.readFile filePath));
# use path relative to the root of the project
relativeToRoot = lib.path.append ../.;
scanPaths =
path:
builtins.map (f: (path + "/${f}")) (