mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
11 lines
403 B
Nix
11 lines
403 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.swarselsystems.modules.server.sops = lib.mkEnableOption "enable sops on server";
|
|
config = lib.mkIf config.swarselsystems.modules.server.sops {
|
|
sops = {
|
|
age.sshKeyPaths = lib.mkDefault [ "/etc/ssh/sops" ];
|
|
defaultSopsFile = lib.mkDefault "${config.swarselsystems.flakePath}/secrets/winters/secrets.yaml";
|
|
validateSopsFiles = false;
|
|
};
|
|
};
|
|
}
|