misc changes, addition of getphone and lofi, and netbox now forwards radicale

This commit is contained in:
randomuser 2023-12-06 18:22:25 -06:00
parent f3f013d0da
commit bfea41df54
4 changed files with 32 additions and 1 deletions

View File

@ -20,9 +20,20 @@
PAPERLESS_URL = "https://paperless.beepboop.systems"; PAPERLESS_URL = "https://paperless.beepboop.systems";
}; };
}; };
programs.adb.enable = true; programs.adb.enable = true;
users.users.usr.extraGroups = ["adbusers"]; users.users.usr.extraGroups = ["adbusers"];
services.radicale = {
enable = true;
config = ''
[auth]
type = htpasswd
htpasswd_filename = radicale-passwd
htpasswd_encryption = plain
'';
};
environment.etc."nextcloud-admin-pass".text = "aslkfjaslkdfjsalkdfjlKJFLKJDLFKJLSKDJFLSKDJFLSKDJFLSKDFJ"; environment.etc."nextcloud-admin-pass".text = "aslkfjaslkdfjsalkdfjlKJFLKJDLFKJLSKDJFLSKDJFLSKDJFLSKDFJ";
services.nextcloud = { services.nextcloud = {
enable = true; enable = true;
@ -64,6 +75,8 @@
i3 i3
gcc gcc
gnumake gnumake
scrcpy
]; ];
systemd.services.paperless-activate = { systemd.services.paperless-activate = {
@ -75,15 +88,18 @@
ONE="$!" ONE="$!"
${pkgs.openssh}/bin/ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems & ${pkgs.openssh}/bin/ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems &
TWO="$!" TWO="$!"
${pkgs.openssh}/bin/ssh -v -NR 5232:localhost:5232 -p 55555 useracc@beepboop.systems &
THREE="$!"
echo "waiting" echo "waiting"
sleep $((60 * 5)) sleep $((60 * 5))
echo "killing and restarting" echo "killing and restarting"
kill $ONE || true kill $ONE || true
kill $TWO || true kill $TWO || true
kill $THREE || true
done done
''; '';
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ]; after = [ "network.target" "ankisyncd.service" ];
}; };
} }

View File

@ -156,6 +156,19 @@
}; };
}; };
services.nginx.virtualHosts."radicale.beepboop.systems" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:5232";
extraConfig = ''
proxy_set_header X-Script-Name /;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_header Authorization;
'';
};
};
services.nginx.virtualHosts."ntfy.beepboop.systems" = { services.nginx.virtualHosts."ntfy.beepboop.systems" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;

1
builds/utils/sh/getphone Executable file
View File

@ -0,0 +1 @@
scrcpy --raw-key-events -M

1
builds/utils/sh/lofi Executable file
View File

@ -0,0 +1 @@
ytfzf -am lofi hip hop radio - beats to relax/study to lofi girl