feat: added derivations

This commit is contained in:
Artur Manuel 2024-10-18 17:59:58 +01:00
commit 9c64f21bbc
4 changed files with 26 additions and 2 deletions

View file

@ -27,6 +27,7 @@
};
in {
options.alqueva.fonts = {
enable = mkEnableOption "" // {description = "Whether you want to use this fonts module.";};
sansSerif = mkFontOption "sans-serif" [pkgs.roboto] ["Roboto"];
monospace = mkFontOption "monospace" [pkgs.roboto-mono] ["Roboto Mono"];
serif = mkFontOption "serif" [pkgs.roboto-serif] ["Roboto Serif"];
@ -37,7 +38,7 @@ in {
description = "Extra font packages to be installed.";
};
};
config = {
config = lib.mkIf cfg.enable {
fonts = {
packages = builtins.concatLists [
cfg.extraPackages