Compare commits

...

3 Commits

Author SHA1 Message Date
c3a05871bd add bing-gpt gateway 2023-04-16 21:45:11 +02:00
lassulus
e5639658b0 konsens: define isSystemUser & group 2023-04-15 17:01:36 +02:00
lassulus
7214a7658f kartei: add trust-gpg script 2023-04-15 17:01:36 +02:00
3 changed files with 17 additions and 0 deletions

View File

@ -90,6 +90,7 @@ in {
"tts.r" "tts.r"
"flood.r" "flood.r"
"warez.r" "warez.r"
"bing-gpt.r"
"navidrome.r" "navidrome.r"
]; ];
tinc.pubkey = '' tinc.pubkey = ''

13
kartei/trust-gpg.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# usage: $0
set -eu
WD=$(dirname "$(realpath "$0")")
PUBKEYS=
for key in "$WD"/kmein/kmein.gpg "$WD"/lass/pgp/* "$WD"/makefu/pgp/* "$WD"/tv/pgp/*; do
echo "$key" >&2
keyid=$(gpg --with-colons --fingerprint --import-options show-only --import "$key" | grep fpr | cut -d : -f 10 | head -1)
gpg --import "$key" >&2
printf '5\ny\n' | gpg --command-fd 0 --expert --edit-key "$keyid" trust >&2
PUBKEYS="${PUBKEYS}${keyid}\n"
done
printf "$PUBKEYS"

View File

@ -39,10 +39,13 @@ let
}; };
imp = { imp = {
users.groups.konsens.gid = genid "konsens";
users.users.konsens = rec { users.users.konsens = rec {
name = "konsens"; name = "konsens";
group = "konsens";
uid = genid name; uid = genid name;
home = "/var/lib/konsens"; home = "/var/lib/konsens";
isSystemUser = true;
createHome = true; createHome = true;
}; };