Compare commits

..

No commits in common. "b679280feaef74c67229e8a9f1671ad3e27981cd" and "1faa8d9acff1857537d3fb35768de2ede64e6b36" have entirely different histories.

3 changed files with 2 additions and 47 deletions

View file

@ -28,13 +28,6 @@
nm-applet.enable = true;
# Terminal
terminal.program = "alacritty";
# WM configuration
wm = {
i3bar = {
# Show VPN blocks
vpn.enable = true;
};
};
# Zathura document viewer
zathura.enable = true;
};

View file

@ -36,31 +36,6 @@ in
i3bar = {
enable = mkRelatedOption "i3bar configuration" [ "i3" ];
vpn = {
enable = mkEnableOption "VPN configuration";
blockConfigs = mkOption {
type = with types; listOf (attrsOf str);
default = [
{
active_format = " VPN ";
service = "wg-quick-wg";
}
{
active_format = " VPN (LAN) ";
service = "wg-quick-lan";
}
];
example = [
{
active_format = " WORK ";
service = "some-service-name";
}
];
description = "list of block configurations, merged with the defauls";
};
};
};
rofi = {

View file

@ -17,7 +17,7 @@ in
top = {
icons = "awesome5";
blocks = builtins.filter (attr: attr != { }) (lib.flatten [
blocks = builtins.filter (attr: attr != { }) [
{
block = "music";
# This format seems to remove the block when not playing, somehow
@ -59,19 +59,6 @@ in
{
block = "disk_space";
}
(lib.optionals cfg.vpn.enable
(
let
defaults = {
block = "service_status";
active_state = "Good";
inactive_format = "";
inactive_state = "Idle";
};
in
builtins.map (block: defaults // block) cfg.vpn.blockConfigs
)
)
{
block = "net";
format = " $icon{| $ssid|} $ip{| $signal_strength|} ";
@ -105,7 +92,7 @@ in
format = " $icon $timestamp.datetime(f:'%F %T') ";
interval = 5;
}
]);
];
};
};
};