This is an automated archive made by the Lemmit Bot.

The original was posted on /r/nixos by /u/Moist_Soup_231 on 2025-06-10 17:17:15+00:00.


Specifically, I would want to have some set of variables like screen size, (or amount of screens) that varies with computer, defined in my configuration.nix, and passed to each user profile (i think that’s the right way to do it?). Those would then be looked at by things like my home manager config, and used to decide which files to include / exclude, what configs to generate etc, based on waht user config is enabled / what machine the config is on etc.

I have the vague idea that this is quite a common thing to do, but it’s been a minute since I delved into the nix docs and the prospect of doing so without any direction is daunting. Simply some direction about what concepts I should be looking at would be extremely helpful.