You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I've got some simple code on my NixOS machine that populates some polybar modules based upon the network interfaces that I can pull in from config.networking.interfaces. It works well since home manager can just rely on the data from the host data.
Assuming that I'd like to use the home-manager specific features on a non-NixOS host, what's the best option to dynamically populate that data? I imagine that I could hack together something in the polybar start script, but it would probably be nicer if I were able to provide the network interface data as some sort of input at build time on those non-NixOS hosts where I can't rely on the NixOS data to be there. I'm asking specifically about the ability to pull in network interface data, but there are some other use cases where it could come in handy as well (I'm thinking about the DPI information I have recorded in lib that I pull back out in home-manager) but I imagine a general solution might solve that issue as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, I've got some simple code on my NixOS machine that populates some polybar modules based upon the network interfaces that I can pull in from
config.networking.interfaces
. It works well since home manager can just rely on the data from the host data.Assuming that I'd like to use the home-manager specific features on a non-NixOS host, what's the best option to dynamically populate that data? I imagine that I could hack together something in the polybar start script, but it would probably be nicer if I were able to provide the network interface data as some sort of input at build time on those non-NixOS hosts where I can't rely on the NixOS data to be there. I'm asking specifically about the ability to pull in network interface data, but there are some other use cases where it could come in handy as well (I'm thinking about the DPI information I have recorded in
lib
that I pull back out in home-manager) but I imagine a general solution might solve that issue as well.Beta Was this translation helpful? Give feedback.
All reactions