7 lines
220 B
Nix
7 lines
220 B
Nix
{ config, inputs, lib, ... }:
|
|
let
|
|
defaultSopsPath = "${toString inputs.self}/${config.networking.hostName}/secrets.yaml";
|
|
in
|
|
{
|
|
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;
|
|
}
|