Compare commits

..

2 Commits

Author SHA1 Message Date
randomuser 20d7a2c02d add rss feeding 2023-12-03 20:48:49 -06:00
randomuser 2e07b8b018 improve paperless-activate 2023-12-03 20:15:14 -06:00
2 changed files with 17 additions and 4 deletions

View File

@ -66,20 +66,24 @@
gnumake gnumake
]; ];
systemd.user.services.paperless-activate = { systemd.services.paperless-activate = {
script = '' script = ''
while true; do while true; do
# restart every 5 minutes # restart every 5 minutes
echo "starting link" echo "starting link"
ssh -v -NR 3004:localhost:3004 -p 55555 useracc@beepboop.systems & disown ${pkgs.openssh}/bin/ssh -v -NR 3004:localhost:3004 -p 55555 useracc@beepboop.systems &
sudo ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems & disown ONE="$!"
${pkgs.openssh}/bin/ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems &
TWO="$!"
echo "waiting" echo "waiting"
sleep $((60 * 5)) sleep $((60 * 5))
echo "killing and restarting" echo "killing and restarting"
pkill ssh kill $ONE || true
kill $TWO || true
done done
''; '';
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
}; };
} }

View File

@ -12,6 +12,15 @@
networking.hostName = "netbox"; networking.hostName = "netbox";
services.rss2email = {
enable = true;
feeds = {
"eff" = {
url = "https://www.eff.org/rss/updates.xml";
};
};
};
users.users.useracc = { users.users.useracc = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "docker" ]; extraGroups = [ "wheel" "docker" ];