diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-24 13:58:00 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-24 13:58:00 +0200 |
commit | 74897880c560409e0ed4b9d1ff891770c1432ab6 (patch) | |
tree | 10a67452dd0eaaa084b023c53335db798859e4a2 /modules/system/fonts | |
parent | fix(hosts/tiamat): Also use new services modules (diff) | |
download | nixos-config-74897880c560409e0ed4b9d1ff891770c1432ab6.zip |
fix(modules/system/{hardware,fonts}): Fix typesystem stuff
Diffstat (limited to 'modules/system/fonts')
-rw-r--r-- | modules/system/fonts/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/fonts/default.nix b/modules/system/fonts/default.nix index fa99c1f3..abd5664b 100644 --- a/modules/system/fonts/default.nix +++ b/modules/system/fonts/default.nix @@ -10,7 +10,7 @@ in { enable = lib.mkEnableOption "fonts"; fonts = lib.mkOption { - type = lib.types.listOf lib.types.path; + type = lib.types.listOf lib.types.str; example = lib.literalExpression ''["SourceCodePro" "Overpass" "FiraCode"]''; default = [ "SourceCodePro" @@ -19,7 +19,7 @@ in { description = "The nerd-fonts to install"; }; - enableEmoji = lib.mkEnableOpiton "emoji font support"; + enableEmoji = lib.mkEnableOption "emoji font support"; }; config = lib.mkIf cfg.enable { @@ -42,9 +42,9 @@ in { localConf = lib.mkIf cfg.enableEmoji (builtins.readFile ./emoji_font.xml); defaultFonts = { - serif = lib.mkForce ["Liberation Serif"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji"; - sansSerif = lib.mkForce ["Overpass Nerd Font Propo"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji"; - monospace = lib.mkForce ["SauceCodePro Nerd Font Mono"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji"; + serif = lib.mkForce (["Liberation Serif"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji"); + sansSerif = lib.mkForce (["Overpass Nerd Font Propo"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji"); + monospace = lib.mkForce (["SauceCodePro Nerd Font Mono"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji"); emoji = lib.mkIf cfg.enableEmoji (lib.mkForce ["Noto Color Emoji"]); }; allowType1 = false; |