mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
1fa314427f
Signed-off-by: magic_rb <magic_rb@redalder.org>
12 lines
392 B
Nix
12 lines
392 B
Nix
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
{lib, ...}: {
|
|
flake.libOverlays.loadSecrets = final: prev: {
|
|
loadSecrets = path:
|
|
if builtins.trace (builtins.readDir path) (builtins.pathExists "${path}/default.nix")
|
|
then import path {lib = final;}
|
|
else builtins.trace "Not loading secrets!" {};
|
|
};
|
|
}
|