ft: certificates

This commit is contained in:
2026-09-27 22:46:38 +02:00
parent 623edfd8b4
commit 532832e693
8 changed files with 56 additions and 26 deletions

View File

@@ -2,11 +2,13 @@
# Each secret is a file stored in this directory as binary files (edit with `sops edit <filename>`)
let
# make secrets readable by our processes
djaiOnly = {
rootOnly = {
format = "binary";
owner = "djai";
mode = "0400";
};
djaiOnly = rootOnly // {
owner = "djai";
};
in
{
# machine's age key, also used by `sops edit`.
@@ -22,13 +24,13 @@ in
};
# npm caddy certificates
"npm-certificate-private" = djaiOnly // {
"npm-certificate-private" = rootOnly // {
sopsFile = ./npm-certificate-private.bin;
};
"npm-certificate-shared" = djaiOnly // {
"npm-certificate-shared" = rootOnly // {
sopsFile = ./npm-certificate-shared.bin;
};
"npm-certificate-public" = djaiOnly // {
"npm-certificate-public" = rootOnly // {
sopsFile = ./npm-certificate-public.bin;
};
@@ -39,10 +41,5 @@ in
"wg-config-tuxcomp" = djaiOnly // {
sopsFile = ./wg-config-tuxcomp.bin;
};
# thunderbird's logins.json + key4.db as a tarball, seeded on fresh hosts.
"thunderbird-creds" = djaiOnly // {
sopsFile = ./thunderbird-creds.bin;
};
};
}