infra/roles/sops-nix.nix

8 lines
196 B
Nix
Raw Normal View History

2022-12-31 07:24:17 +01:00
{ config, lib, ... }:
2021-09-25 22:35:51 +02:00
let
2022-08-13 11:15:33 +02:00
defaultSopsPath = ../. + "/${config.networking.hostName}/secrets.yaml";
2021-09-25 22:35:51 +02:00
in
{
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;
}