refactor(module): clean up some module inputs

feat(module): add use-lix option to nix module

feat(module): update fish config for catppuccin
This commit is contained in:
Jo 2024-09-10 10:46:16 +02:00
parent 3f767068d2
commit fde4abd59d
16 changed files with 173 additions and 115 deletions

View file

@ -7,16 +7,16 @@
...
}: with lib; with lib.${namespace};
let
cfg = config.${namespace}.system.fonts;
cfg = config.${namespace}.common.fonts;
in {
options.${namespace}.system.fonts = {
options.${namespace}.common.fonts = {
enable = mkEnableOption "Enable system font management";
fonts = mkOption {
type = types.package;
default = [ ];
example = [ noto-fonts noto-fonts-emoji ];
description = "Install additional font packages";
}
#fonts = mkOption {
# type = types.package;
# default = noto-fonts;
# example = [ noto-fonts noto-fonts-emoji ];
# description = "Install additional font packages";
#};
};
config = mkIf cfg.enable {
@ -31,7 +31,7 @@ in {
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-emoji
(nerdfonts.override { fonts = [ "Hack" ]; })
] ++ cfg.fonts;
nerdfonts
]; # ++ cfg.fonts;
};
}