Compare commits
No commits in common. "20d7a2c02d9faf2af112a04378a7ad2cb8306c34" and "32bba7ff9a658e10b1f62871403b68e1dc8d5eb5" have entirely different histories.
20d7a2c02d
...
32bba7ff9a
@ -66,24 +66,20 @@
|
||||
gnumake
|
||||
];
|
||||
|
||||
systemd.services.paperless-activate = {
|
||||
systemd.user.services.paperless-activate = {
|
||||
script = ''
|
||||
while true; do
|
||||
# restart every 5 minutes
|
||||
echo "starting link"
|
||||
${pkgs.openssh}/bin/ssh -v -NR 3004:localhost:3004 -p 55555 useracc@beepboop.systems &
|
||||
ONE="$!"
|
||||
${pkgs.openssh}/bin/ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems &
|
||||
TWO="$!"
|
||||
ssh -v -NR 3004:localhost:3004 -p 55555 useracc@beepboop.systems & disown
|
||||
sudo ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems & disown
|
||||
echo "waiting"
|
||||
sleep $((60 * 5))
|
||||
echo "killing and restarting"
|
||||
kill $ONE || true
|
||||
kill $TWO || true
|
||||
pkill ssh
|
||||
done
|
||||
'';
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
};
|
||||
}
|
||||
|
@ -12,15 +12,6 @@
|
||||
|
||||
networking.hostName = "netbox";
|
||||
|
||||
services.rss2email = {
|
||||
enable = true;
|
||||
feeds = {
|
||||
"eff" = {
|
||||
url = "https://www.eff.org/rss/updates.xml";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.users.useracc = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker" ];
|
||||
|
Loading…
Reference in New Issue
Block a user