{ config, lib, inputs, ... }: with lib; let cfg = config.modules.sops; secretsFile = ../systems/${config.networking.hostName}/secrets/secrets.yaml; in { imports = [ inputs.sops-nix.nixosModules.sops ]; options.modules.sops = { enable = mkEnableOption "sops secret manager"; }; config = mkIf cfg.enable { sops.defaultSopsFile = secretsFile; }; }