Skip to content

Secrets

Source directory: modules/secrets/

api-keys.nix

modules/secrets/api-keys.nix

API Keys Management with Age Encryption

  • Enable option: Enable encrypted API keys management

Options: enable, enableEnvironmentVariables, enableUserEnvironment

Options declaration (Nix)
  options.secrets.apiKeys = {
    enable = mkEnableOption "Enable encrypted API keys management";

    enableEnvironmentVariables = mkOption {
      type = types.bool;
      default = true;
      description = "Export API keys as environment variables system-wide";
    };

    enableUserEnvironment = mkOption {
      type = types.bool;
      default = true;
      description = "Export API keys in user shell environment";
    };
  }

default.nix

modules/secrets/default.nix

No option declarations; see source for implementation.