nixos-servers/services/ca/default.nix
Torjus Håkestad 8b5a2825df
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m20s
Periodic flake update / flake-update (push) Successful in 1m44s
Add secrets to ca
2024-10-21 12:02:10 +02:00

34 lines
987 B
Nix

{ pkgs, unstable, ... }:
{
sops.secrets."ca_root_pw" = {
sopsFile = ../../secrets/ca/secrets.yaml;
path = "/var/lib/step-ca/secrets/ca_root_pw";
};
sops.secrets."intermediate_ca_key" = {
sopsFile = ../../secrets/ca/keys/intermediate_ca_key;
format = "binary";
path = "/var/lib/step-ca/secrets/intermediate_ca_key";
};
sops.secrets."root_ca_key" = {
sopsFile = ../../secrets/ca/keys/root_ca_key;
format = "binary";
path = "/var/lib/step-ca/secrets/root_ca_key";
};
sops.secrets."ssh_host_ca_key" = {
sopsFile = ../../secrets/ca/keys/ssh_host_ca_key;
format = "binary";
path = "/var/lib/step-ca/secrets/ssh_host_ca_key";
};
sops.secrets."ssh_user_ca_key" = {
sopsFile = ../../secrets/ca/keys/ssh_user_ca_key;
format = "binary";
path = "/var/lib/step-ca/secrets/ssh_user_ca_key";
};
#services.step-ca = {
# enable = true;
# package = unstable.step-ca;
# settings = builtins.fromJSON ./ca.json;
#};
}