22 lines
587 B
Nix
22 lines
587 B
Nix
{ keyCommandEnv, ... }:
|
|
{
|
|
deployment.keys = {
|
|
"paperless-admin-password.secret" = {
|
|
keyCommand = keyCommandEnv ++ [ "pass" "paperless/admin-password" ];
|
|
destDir = "/secrets";
|
|
user = "paperless";
|
|
group = "paperless";
|
|
permissions = "0640";
|
|
uploadAt = "pre-activation";
|
|
};
|
|
"paperless-samba-credentials.secret" = {
|
|
keyCommand = keyCommandEnv ++ [ "pass" "paperless/samba-credentials" ];
|
|
destDir = "/secrets";
|
|
user = "root";
|
|
group = "root";
|
|
permissions = "0640";
|
|
uploadAt = "pre-activation";
|
|
};
|
|
};
|
|
}
|