sneeuwvlok/modules/nixos/system/security/sops/default.nix
Chris Kruining f390d41955
Some checks failed
Test action / kaas (push) Failing after 1s
WIP: trying to get smtp configured for zitadel
2025-10-23 16:31:56 +02:00

26 lines
No EOL
602 B
Nix

{ pkgs, config, namespace, inputs, system, ... }:
let
cfg = config.${namespace}.system.security.sops;
in
{
imports = [
inputs.sops-nix.nixosModules.sops
];
options.${namespace}.system.security.sops = {};
config = {
environment.systemPackages = with pkgs; [ sops ];
sops = {
defaultSopsFormat = "yaml";
defaultSopsFile = inputs.self + "/systems/${system}/${config.networking.hostName}/secrets.yml";
age = {
# keyFile = "~/.config/sops/age/keys.txt";
# sshKeyPaths = [ "~/.ssh/id_ed25519" ];
# generateKey = true;
};
};
};
}