Skip to content

Commit 8a4cb4f

Browse files
committed
Fix self.lib.secretPath'
1 parent 5ebb1f7 commit 8a4cb4f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696

9797
# Variant of lib.secret specifically for files. This will actually copy
9898
# the file out to a separate derivation, which is more efficient.
99-
secretFile' = pkgs: path: pkgs.writeText (builtins.baseNameOf path) (self.lib.secret path);
99+
secretFile' =
100+
pkgs: path: pkgs.writeText (builtins.baseNameOf path) (builtins.readFile (self.lib.secret path));
100101
};
101102
}
102103

0 commit comments

Comments
 (0)