Introduce more options to configure individual modules

This commit is contained in:
DashieTM 2024-08-25 23:47:33 +02:00
parent 351584ecb4
commit e3619d6c94
13 changed files with 668 additions and 531 deletions

View file

@ -85,8 +85,8 @@
description = "font config";
};
};
config = (
lib.optionalAttrs (options ? stylix) {
config =
(lib.optionalAttrs (options ? stylix) {
stylix = {
enable = true;
image = ../../base/black.jpg;
@ -104,7 +104,7 @@
"${pkgs.base16-schemes}/share/themes/${config.mods.stylix.colorscheme}.yaml"
);
};
}
})
// lib.optionalAttrs (options ? environment.systemPackages) {
environment.systemPackages = [
config.mods.stylix.fonts.serif.package
@ -112,6 +112,5 @@
config.mods.stylix.fonts.monospace.package
config.mods.stylix.fonts.emoji.package
];
}
);
};
}