The next step in the refactoring is to add different profiles, so that
we may toggle them easily in our hosts. Here's the profiles I went for:
- desktop: enables everything a desktop computer needs (graphics,
productivity apps, base apps such as browsers...)
- gaming: enables gaming configurations (steam, gamescope...)
- server: enables server configurations (website hosting, git forge...)
I made sure the server profile can not be enabled if desktop/gaming are
enabled, as it would not make sense to have desktop applications and
configurations on a server.
The idea of this refactor is, as the configuration is getting bigger and
more complex, to move everything into a local modules system. The idea
is to simplify hosts declaration and add a new layer of abstraction to
avoid the long and redundant imports in hosts/default.nix, that I am
currently using.
First, we're going to move everything to the modules directory, and
split options from the proper configuration. That allows us to have an
easier time understanding how the options are structured, as they will
follow the directory structure and won't be mixed with the module
configuration.
2025-01-14 10:56:34 +01:00
Renamed from shared/nixosModules/default.nix (Browse further)