modularize

This commit is contained in:
Henri Dohmen 2025-06-30 22:39:38 +02:00
parent d3fa1821fa
commit f1a1dd5d53
27 changed files with 422 additions and 325 deletions

25
mod/desktop/fonts.nix Normal file
View file

@ -0,0 +1,25 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.desktop.fonts;
inherit (lib) mkEnableOption mkIf;
in
{
options.desktop.fonts.enable = mkEnableOption "Fonts";
config = mkIf cfg.enable {
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
nerd-fonts.noto
];
fontDir.enable = true;
fontconfig.defaultFonts.monospace = [ "Noto Nerd Font Mono" ];
};
};
}