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