dotfiles/lib/load_secrets.nix
magic_rb 20c846f80f
Remove trace in load_secrets
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-02 23:09:36 +01:00

12 lines
351 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.pathExists "${path}/default.nix"
then import path {lib = final;}
else builtins.trace "Not loading secrets!" {};
};
}