configuration
flake
hosts
_iso
aluminium
astatine
backup-4
beryllium
carbon
clerie-backup
dn42-il-gw1
dn42-il-gw5
dn42-il-gw6
dn42-ildix-clerie
dn42-ildix-service
gatekeeper
hydra-1
hydra-2
krypton
mail-2
monitoring-3
nonat
osmium
palladium
porter
storage-2
tungsten
web-2
blog.nix
bula22.nix
chaosevents.nix
clerie.nix
configuration.nix
drop.nix
etebase.nix
feeds.nix
fieldpoc.nix
gitea.nix
hardware-configuration.nix
ip.nix
legal.nix
meow.nix
milchinsel.nix
mitel-ommclient2.nix
nix-install.nix
nurausstieg.nix
ping.nix
public.nix
radicale.nix
reichartstrasse.nix
secrets.json
ssh.pub
uptimestatus.nix
wetter.nix
zinc
lib
modules
pkgs
users
.gitignore
README.md
flake.lock
flake.nix
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
users.users."feeds" = {
|
|
isSystemUser = true;
|
|
group = "feeds";
|
|
};
|
|
|
|
users.groups."feeds" = {};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"d /data/feeds 0775 root users - -"
|
|
"d /var/lib/feeds - feeds feeds - -"
|
|
];
|
|
|
|
services.nginx = {
|
|
virtualHosts."feeds.clerie.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = "/var/lib/feeds";
|
|
};
|
|
};
|
|
|
|
systemd.services."feeds" = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
requires = [ "network.target" ];
|
|
after = [ "network.target" ];
|
|
serviceConfig = {
|
|
Type = "oneshot";
|
|
WorkingDirectory = "/var/lib/feeds";
|
|
RuntimeDirectory = "feeds";
|
|
User = "feeds";
|
|
Group = "feeds";
|
|
ExecStart = ''
|
|
${pkgs.feeds-dir}/bin/feeds-dir /data/feeds
|
|
'';
|
|
};
|
|
};
|
|
|
|
systemd.timers."feeds" = {
|
|
wantedBy = [ "timers.target" ];
|
|
timerConfig = {
|
|
OnCalendar = "hourly";
|
|
RandomizedDelaySec = "1h";
|
|
};
|
|
requires = [ "network-online.target" ];
|
|
after = [ "network-online.target" ];
|
|
};
|
|
}
|