NixOS / calamares-nixos-extensions

NixOS calamares [maintainer=@vlinkz]
25 stars 20 forks source link

Prevent breaking when modules aren't used #1

Closed vlinkz closed 2 years ago

vlinkz commented 2 years ago

Currently when one of the locale, keyboard, or users module are not used, the customization module will crash as it will fill missing global storage values with None, which will mess up the configuration.nix file.

This can be fixed by breaking up the configuration file into sections which are inserted when certain conditions are met, such as maybe checking if certain values are in global storage to see if the other modules have been run. Doing this can allow for more flexibility.