modularize
This commit is contained in:
parent
d3fa1821fa
commit
f1a1dd5d53
27 changed files with 422 additions and 325 deletions
25
mod/desktop/fonts.nix
Normal file
25
mod/desktop/fonts.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue