added: adapt modules
This commit is contained in:
@@ -13,15 +13,14 @@ in
|
||||
Environment = "RUST_LOG=debug";
|
||||
ExecStart = toString (pkgs.writeShellApplication {
|
||||
name = "ssh-cert-dist-${options.name}";
|
||||
runtimeInputs = [ pkgs.ssh-cert-dist ];
|
||||
runtimeInputs = [ cfg.package ];
|
||||
text = ''
|
||||
${optionalString options.fetch ''
|
||||
ssh-cert-dist client fetch --cert-dir '${path}' --api-endpoint '${cfg.endpoint}'
|
||||
ssh-cert-dist fetch --cert-dir '${path}' --api-endpoint '${cfg.endpoint}'
|
||||
''}
|
||||
${optionalString options.upload ''
|
||||
ssh-cert-dist client upload --api-endpoint '${cfg.endpoint}' ${path}/*
|
||||
ssh-cert-dist upload --api-endpoint '${cfg.endpoint}' ${path}/*
|
||||
''}
|
||||
|
||||
'';
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user