mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
15 lines
426 B
Nix
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;
|
|
};
|
|
};
|
|
}
|