fix(ankisyncd): fix the envvars

This commit is contained in:
jacekpoz 2023-09-13 17:40:01 +02:00
parent f8e15106b0
commit d01c04d78c
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
5 changed files with 44 additions and 20 deletions

View file

@ -15,14 +15,23 @@
'';
};
age.secrets.ankisyncd-user-credentials = {
file = ../../secrets/ankisyncd-user-credentials.age;
mode = "700";
owner = config'.username;
group = "users";
age.secrets = {
ankisyncd-username = {
file = ../../secrets/ankisyncd-username.age;
mode = "700";
owner = config'.username;
group = "users";
};
ankisyncd-password = {
file = ../../secrets/ankisyncd-password.age;
mode = "700";
owner = config'.username;
group = "users";
};
};
environment.sessionVariables = {
SYNC_USER1 = "${builtins.readFile config.age.secrets.ankisyncd-user-credentials.path}";
ANKISYNCD_USERNAME = "$(cat ${config.age.secrets.ankisyncd-username.path})";
ANKISYNCD_PASSWORD = "$(cat ${config.age.secrets.ankisyncd-password.path})";
};
}

View file

@ -0,0 +1,13 @@
age-encryption.org/v1
-> ssh-ed25519 05IAmg 1ZYcZpCbYtP1ck85Zk2AZ+zZv1Ux1zQWnVdAETv1nCw
KOVtQNfLWaPT6GBzRBibjlEb23MTOS/bNcm8QljGYQk
-> ssh-ed25519 HC8P8A vj+204x0X0+CVj1p+i/vA3EFRKnB58hUVUFdcKMfmSQ
+1+0+CXjq6/k+ho2QBfgocqY4VjcLpqmcI3krmqsIyo
-> ssh-ed25519 sItgaw UiCiBpKPPy9JkWcrDJjVRYYZLmFpAlxlZPrG9ODnnEM
7H0w0J7iB1j4wqUcSHoZfTwsvRC+/V3I1CAqwKigVdo
-> ssh-ed25519 YQNd1g RP8JIdng7SFRJLHPHC3Q2dW76URlbGQ2lTl5PEYGhDc
UdUv8PS26CDvoBmBkKBLyjvg0neMiGkjivgSZEjD4po
-> 5M-grease #s2dp/| $ c^&FswLA
+9lvheu17GWcrBwurwFWB8YnnOO/9FmRILTrhPvCEOmZ6iXUHay6jbK+
--- un4Yu4uYu7zqdZdmhGSPKvDHuxzYHZ9PemZC/Iyl2R0
ß“VÔõ:tŽø"bpÙ˜Å3Òƒa zÅsV_yí ÊÿÐ,;›Á^4‰Ÿ·ÛATGÁ/ ÑnØÄ”Ç;Nؾ}'

View file

@ -1,13 +0,0 @@
age-encryption.org/v1
-> ssh-ed25519 05IAmg Mv3hFHx2TrjGG4mAN5bUUjskd8u6eOQ+aQ+OSNt0bBI
ushr6qeamUtpdTrBl5duuKuIZgduaFC3QqvvHhKTNAI
-> ssh-ed25519 HC8P8A 6TfhS54C1jHGR4d9YLKk3DY562qx1zhiBjt3P+7rAiA
jwfCWgek44wWPQHbBJbbr3JgWvCk5SJtqL+axnBdGZA
-> ssh-ed25519 sItgaw 8wDj/vfOPOeBOHVLjTZ4y6kaccTZ++zBMNWV7e8sjmU
pWQHSFuAv9bcCQy80nt4h77rJuT3mR9XxojZorMm2lE
-> ssh-ed25519 YQNd1g 3MeluHTgy3q1i3MiSY6wfPLxSEn9s6Pq4fZJqvvmkg0
6iXY6/DgAcBTeKMwGej5IIMCIf0UaFdAg4nOtXzCezE
-> v(Mu$-grease 6ZM j\*p(1xm P
wTHgdc2cxfJmMxzSGsoowlNiHv8mCROnMFBLsBb2g32HdcA
--- uEUkiLSaxQxtU+EL1WNFAk2hVFVKR0yadGGQTNJL6QE
EnÀòÿ(77M¿æÕ4@²qîI[*ÖÂ7R<¬qI Ôò"*á^V³b9ñ‡¹#A

View file

@ -0,0 +1,14 @@
age-encryption.org/v1
-> ssh-ed25519 05IAmg hOwljrTCYZwaQsKuohprSVuqmJ5zfbT9/RdwWW3An1E
QwTNvnAr7Kq802dOAkx7y8G+YlR2wtlT17agalRD9AE
-> ssh-ed25519 HC8P8A xvzaQzCjMoIBViMf3NMoydEBVRTFMOoU4oOsAmwCehM
IA2vtbC+wjOIcm91sQM/0V+6gkzhESNyr0AbrJPg/+8
-> ssh-ed25519 sItgaw ViO7yNhkZ9i6xnJZmtvgrFfxlzPyP6B/GbsDrS7c1lo
S7ZXnueUuI6S5CZrmdv4MxedXQ8KUUnDkIS3ujjkdjE
-> ssh-ed25519 YQNd1g QOgINcUppPriV4lZ6jzwlUwwtcw7Jg05eN2inF/LmFQ
T/7kzBQofEuVx+8CvxS+TR954CNtNEu6IQmvTAPVKH0
-> syQ$va-grease ;~M&{8%< b1jw;$h Om._<}k
o3RjXfALP1KKhRKrkoX/jnSPRIZrC6TSE4LG+dpUdC9wJvOEkpXEZenwpPyzI3LB
NmY1Sw+gqQwNQiv62g6MyUTuxxKTvABiZFQfBdfFW3KjBLZIi30LtWU
--- Y+q3InJWdcn3ojcmjVJTCDt7Cr9ntDygVQIeY6hP/kk
U1ÐÁ·ÁüÄ`.Ù:3¿šæ¦˜tyáž ¨Ý¾tL`…"l§NÅûC

View file

@ -8,5 +8,6 @@ let
niks = [ niks_user niks_host ];
chmura = [ chmura_user chmura_host ];
in {
"ankisyncd-user-credentials.age".publicKeys = niks ++ chmura;
"ankisyncd-username.age".publicKeys = niks ++ chmura;
"ankisyncd-password.age".publicKeys = niks ++ chmura;
}