mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
feat(zaatar): convert to flake feat(tahina, tabula): convert to flake feat(makanek): convert to flake feat(manakish, zaatar): convert to flake feat(ci): build flake systems fix: ci build feat: secrets via submodule foo foo foo
34 lines
673 B
Nix
34 lines
673 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
systemd.services.moinbot = {
|
|
startAt = "7:00";
|
|
script = ''
|
|
greeting=$(echo "moin
|
|
oi
|
|
noim
|
|
MOIN
|
|
OI
|
|
moi" | shuf -n1)
|
|
echo "$greeting" | ${config.nur.repos.mic92.ircsink}/bin/ircsink \
|
|
--nick "$greeting""bot" \
|
|
--server irc.hackint.org \
|
|
--port 6697 \
|
|
--secure \
|
|
--target '#hsmr-moin' >/dev/null 2>&1
|
|
'';
|
|
serviceConfig.DynamicUser = true;
|
|
};
|
|
|
|
niveum.passport.services = [
|
|
{
|
|
title = "moinbot";
|
|
description = "greets #hsmr-moin:hackint.org daily.";
|
|
}
|
|
];
|
|
|
|
systemd.timers.moinbot.timerConfig.RandomizedDelaySec = "14h";
|
|
}
|