-
Notifications
You must be signed in to change notification settings - Fork 108
-
I use NixOS on two systems with different resolutions and would like to set a font size or scaling factor inside my hosts files. Is there an easy way to export a variable globally and use it in my configuration? |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment · 8 replies
-
I've though about creating a "DPI" profile to specify settings affected by screensize. Hopefully I can get around to it soon. For the time being, you'll probably just want to set the relavant options directly in each hosts file. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Traditionally this would be kinda tricky, at least when using home-manager independently, but with DevOS, this should actually be as simple as you would normally pull values from elsewhere in your config, via the |
Beta Was this translation helpful? Give feedback.
All reactions
-
Sorry for taking so long to reply but I do not understand how to do that exactly. When using Trace
|
Beta Was this translation helpful? Give feedback.
All reactions
-
The way DevOS is archtitected, you can defne home-manager confgurations directly inside your NixOS configurations, thus giving you full access to your NixOS config options at the top level of the module. We have defined a convenient mechanism to then extract your home-manager specific configurations from the larger NixOS specific ones they are embedded in. This has the distinct advantage of allowing you to share configuration between the two while still using them separately. Unless something changed recently (and it may have, perhaps @Pacman99 can help clarify this), the UpdateI think I see what you mean now. So from a profile under Nothing is stopping you from declaring your user profiles as NixOS modules, rather than home-manager modules. If you do so, just be sure to import then at the NixOS level and you should be fine. |
Beta Was this translation helpful? Give feedback.
All reactions
-
You actually can access your nixos configuration within a home-manager module. The hm module passes system config as the |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
@Pacman99 Ah, I see. Thank you. It works now. :) |
Beta Was this translation helpful? Give feedback.
I've though about creating a "DPI" profile to specify settings affected by screensize. Hopefully I can get around to it soon. For the time being, you'll probably just want to set the relavant options directly in each hosts file.