Disable polybar modules per machine by setting them to null
This commit is contained in:
parent
5b2313b8bf
commit
cbd5ca59ee
|
@ -97,22 +97,19 @@ in
|
||||||
ramp-signal-4 = "";
|
ramp-signal-4 = "";
|
||||||
ramp-signal-foreground = "\${colors.foreground-alt}";
|
ramp-signal-foreground = "\${colors.foreground-alt}";
|
||||||
};
|
};
|
||||||
"module/eth" = if (config.machine.eth != null)
|
"module/eth" = lib.mkIf (config.machine.eth != null)
|
||||||
then
|
{
|
||||||
{
|
type = "internal/network";
|
||||||
type = "internal/network";
|
interface = "${config.machine.eth}";
|
||||||
interface = "${config.machine.eth}";
|
interval = "3.0";
|
||||||
interval = "3.0";
|
|
||||||
|
|
||||||
format-connected-underline = "#55aa55";
|
format-connected-underline = "#55aa55";
|
||||||
format-connected-prefix = " ";
|
format-connected-prefix = " ";
|
||||||
format-connected-prefix-foreground = "\${colors.foreground-alt}";
|
format-connected-prefix-foreground = "\${colors.foreground-alt}";
|
||||||
label-connected = "%local_ip%";
|
label-connected = "%local_ip%";
|
||||||
|
|
||||||
format-disconnected = "";
|
format-disconnected = "";
|
||||||
}
|
};
|
||||||
else
|
|
||||||
null;
|
|
||||||
"module/filesystem" = {
|
"module/filesystem" = {
|
||||||
type = "internal/fs";
|
type = "internal/fs";
|
||||||
interval = 25;
|
interval = 25;
|
||||||
|
|
Loading…
Reference in New Issue