1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 04:11:07 +01:00

3 Commits

3 changed files with 18 additions and 1 deletions

View File

@@ -45,6 +45,7 @@
"Light Hope".psk = "FriendsofMara63069!";
"WG-Jung".psk = "BerlinMadridParisTokyo";
"FRITZ!Box 7590 NT".psk = "90699935547611192380";
"AA".psk = "Hallo1234";
};
};

View File

@@ -102,6 +102,22 @@ in {
echo "$mail_count"
'';
}
(let service = "openvpn-hu-berlin"; in {
block = "custom";
interval = 5;
command = pkgs.writers.writeDash "net-device" ''
PATH=${lib.makeBinPath [ pkgs.systemd ]}
systemctl is-active --quiet ${service}.service && echo "🎓👍" || echo "🎓👎"
'';
on_click = pkgs.writers.writeDash "toggle" ''
PATH=${lib.makeBinPath [ pkgs.systemd pkgs.libnotify ]}
systemctl is-active --quiet ${service}.service && {
systemctl stop ${service}.service && notify-send -a "${service}" stopped
} || {
systemctl start ${service}.service && notify-send -a "${service}" started
}
'';
})
{
block = "net";
device = wirelessInterface;

View File

@@ -106,5 +106,5 @@ in
email = kieran.email;
};
environment.systemPackages = [ pkgs.vim pkgs.git pkgs.tmux ];
environment.systemPackages = [ pkgs.vim pkgs.git pkgs.tmux pkgs.python3Packages.python ];
}