ca: install step-cli and set ENV var to point to configs
This commit is contained in:
parent
a2b0137d99
commit
571050d966
@ -22,12 +22,6 @@ with lib; {
|
||||
owner = config.xinCA.user;
|
||||
sopsFile = config.xin-secrets.cert_authority;
|
||||
};
|
||||
"ca.json" = {
|
||||
mode = "400";
|
||||
owner = config.xinCA.user;
|
||||
sopsFile = config.xin-secrets.cert_authority;
|
||||
path = "/var/lib/step-ca/config/ca.json";
|
||||
};
|
||||
"defaults.json" = {
|
||||
mode = "400";
|
||||
owner = config.xinCA.user;
|
||||
@ -62,6 +56,10 @@ with lib; {
|
||||
|
||||
networking.hosts = { "127.0.0.1" = [ "ca.bolddaemon.com" ]; };
|
||||
|
||||
environment.systemPackages = with pkgs; [ step-cli ];
|
||||
|
||||
environment.sessionVariables = { STEPPATH = "/var/lib/step-ca"; };
|
||||
|
||||
services.step-ca = {
|
||||
enable = true;
|
||||
intermediatePasswordFile = "${config.sops.secrets.ca_password.path}";
|
||||
|
Loading…
Reference in New Issue
Block a user