diff --git a/boxes/mainsail.nix b/boxes/mainsail.nix index c6adc4c..4eba506 100644 --- a/boxes/mainsail.nix +++ b/boxes/mainsail.nix @@ -20,9 +20,20 @@ PAPERLESS_URL = "https://paperless.beepboop.systems"; }; }; + programs.adb.enable = true; 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"; services.nextcloud = { enable = true; @@ -64,6 +75,8 @@ i3 gcc gnumake + + scrcpy ]; systemd.services.paperless-activate = { @@ -75,15 +88,18 @@ ONE="$!" ${pkgs.openssh}/bin/ssh -v -NR 4000:localhost:80 -p 55555 useracc@beepboop.systems & TWO="$!" + ${pkgs.openssh}/bin/ssh -v -NR 5232:localhost:5232 -p 55555 useracc@beepboop.systems & + THREE="$!" echo "waiting" sleep $((60 * 5)) echo "killing and restarting" kill $ONE || true kill $TWO || true + kill $THREE || true done ''; wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; + after = [ "network.target" "ankisyncd.service" ]; }; } diff --git a/boxes/netbox.nix b/boxes/netbox.nix index 1b1d66e..0606ccd 100644 --- a/boxes/netbox.nix +++ b/boxes/netbox.nix @@ -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" = { forceSSL = true; enableACME = true; diff --git a/builds/utils/sh/getphone b/builds/utils/sh/getphone new file mode 100755 index 0000000..00b1e66 --- /dev/null +++ b/builds/utils/sh/getphone @@ -0,0 +1 @@ +scrcpy --raw-key-events -M diff --git a/builds/utils/sh/lofi b/builds/utils/sh/lofi new file mode 100755 index 0000000..fb96d27 --- /dev/null +++ b/builds/utils/sh/lofi @@ -0,0 +1 @@ +ytfzf -am lofi hip hop radio - beats to relax/study to lofi girl