feat: added derivations
This commit is contained in:
parent
8e23015029
commit
9c64f21bbc
4 changed files with 26 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue