misc changes

This commit is contained in:
stupidcomputer 2024-05-12 13:23:59 -05:00
parent c713065135
commit 1bd70f34ca
4 changed files with 35 additions and 2 deletions

View File

@ -17,7 +17,7 @@ set spoolfile = +INBOX
set record = "+Sent" set record = "+Sent"
set trash = "+Trash" set trash = "+Trash"
set postponed = "+Drafts" set postponed = "+Drafts"
mailboxes +SMS +INBOX "+College Messages" mailboxes +SMS +INBOX "+College Messages" +"Internship 24"
unset wait_key unset wait_key
macro index S "<shell-escape>mbsync --config=$HOME/.config/isync/config main; vdirsyncer sync<enter>" macro index S "<shell-escape>mbsync --config=$HOME/.config/isync/config main; vdirsyncer sync<enter>"

View File

@ -71,8 +71,19 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
networking = { networking = {
hostName = "mlg"; hostName = "mlg";
firewall.enable = true; firewall = {
enable = true;
allowedTCPPorts = [ 6000 ];
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
}; };
programs.kdeconnect.enable = true;
system.stateVersion = "23.11"; # don't change this, lol system.stateVersion = "23.11"; # don't change this, lol
} }

View File

@ -0,0 +1,21 @@
ssh phone "
termux-notification -c 'a computer connected via the termux bridge';
while true; do
termux-sms-list -d -t inbox | \
jq -r 'map(select(.read == false)).[] | if .sender == null then .number else .sender end, .body' | \
xargs -d '\n' -n2
done
" 2>&1 | awk '!seen[$0]++' | tee help_me_im_going_insane | xargs -L1 dunstify
ssh phone "
# ( while true; do
# echo "911
#testing message"
#done ) | {
#( while true; do
# ssh phone "termux-sms-list -d -t inbox" \
# | jq -r 'map(select(.read == false)) | if .[].sender == null then .[].number else .[].sender end, .[].body'
#done ) | {
# paste -d ' ' - -
#}

View File

@ -9,6 +9,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
xscreensaver xscreensaver
dunst
]; ];
services.xserver = { services.xserver = {