refactor(modules): make sure nothing is added without setting enable

This commit is contained in:
matt1432 2025-01-04 19:02:30 -05:00
parent 4a2ad39114
commit 49dc072b81
56 changed files with 684 additions and 506 deletions
modules/base/locale

View file

@ -7,8 +7,8 @@
inherit (lib) mkIf;
cfg = config.roles.base;
in
mkIf cfg.enable {
in {
config = mkIf cfg.enable {
fonts = {
fontconfig = {
enable = true;
@ -45,4 +45,8 @@ in
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
console.useXkbConfig = true;
}
};
# For accurate stack trace
_file = ./default.nix;
}