.dotfiles/modules/home/common/sops.nix
Leon Schwarzäugl 64e6a9c159
Some checks failed
Flake check / Check flake (push) Has been cancelled
fix[work,client]: get home-manager working on dgx
2025-10-31 15:04:59 +01:00

15 lines
426 B
Nix

{ config, lib, inputs, ... }:
let
inherit (config.swarselsystems) homeDir;
in
{
options.swarselmodules.sops = lib.mkEnableOption "sops settings";
config = lib.optionalAttrs (inputs ? sops) {
sops = {
age.sshKeyPaths = [ "${homeDir}/.ssh/sops" "${homeDir}/.ssh/ssh_host_ed25519_key" ];
defaultSopsFile = "${homeDir}/.dotfiles/secrets/general/secrets.yaml";
validateSopsFiles = false;
};
};
}