added: adapt modules

This commit is contained in:
2022-12-24 17:17:20 +01:00
parent 991dbaeec9
commit 0f6e2e0d40
4 changed files with 9 additions and 8 deletions

View File

@@ -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}/*
''}
'';
});
};