Run nixfmt-rfc-style on repository and add it to Zed config

This commit is contained in:
Jo 2025-05-26 18:06:37 +02:00
parent f5e5adb2fd
commit 45494079c5
41 changed files with 441 additions and 240 deletions

View file

@ -4,12 +4,14 @@
self,
config,
...
}: let
}:
let
inherit (lib) mkEnableOption mkIf mkOption;
inherit (self) namespace;
cfg = config.${namespace}.system.fonts;
in {
in
{
options.${namespace}.system.fonts = with lib.types; {
enable = mkEnableOption "system font management";
fonts = mkOption {
@ -30,13 +32,16 @@ in {
material-icons
material-design-icons
];
example = [noto-fonts noto-fonts-emoji];
example = [
noto-fonts
noto-fonts-emoji
];
description = "Install additional font packages";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [font-manager];
environment.systemPackages = with pkgs; [ font-manager ];
fonts.packages = cfg.fonts;
};