update system

This commit is contained in:
2024-12-19 12:28:04 +01:00
parent 4e6c0f1603
commit dbd50e4a65
15 changed files with 85 additions and 199 deletions

View File

@@ -8,7 +8,7 @@
./fonts/fira-code.nix
./fonts/noto-sans.nix
./fonts/nerdfonts.nix
./fonts/nerd-fonts.nix
./hardware/hid-fanatecff.nix
./hardware/audio.nix

View File

@@ -36,11 +36,15 @@ in
config = mkIf cfg.enable {
fonts = {
packages = with pkgs; [ fira-code ];
nerdfonts.additionalFonts = [ "FiraCode" ];
packages =
with pkgs;
[
fira-code
]
++ (if (config.fonts.nerd-fonts.enable) then [ nerd-fonts.fira-code ] else [ ]);
fontconfig = {
defaultFonts.monospace = mkIf cfg.default [
(if (config.fonts.nerdfonts.enable) then "Fira Code Nerd Font" else "FiraCode")
(if (config.fonts.nerd-fonts.enable) then "Fira Code Nerd Font" else "FiraCode")
];
localConf = ''
<match target="font">

View File

@@ -0,0 +1,24 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.fonts.nerd-fonts;
in
{
options.fonts.nerd-fonts = {
enable = mkEnableOption "Enable nerdfonts";
};
config = mkIf cfg.enable {
fonts = {
packages = with pkgs; [
nerd-fonts.symbols-only
];
};
};
}

View File

@@ -1,29 +0,0 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.fonts.nerdfonts;
in
{
options.fonts.nerdfonts = {
enable = mkEnableOption "Enable nerdfonts";
additionalFonts = mkOption {
type = types.listOf types.str;
default = [ ];
description = "Additional fonts to include in the nerdfonts package";
};
};
config = mkIf cfg.enable {
fonts = {
packages = with pkgs; [
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ] ++ cfg.additionalFonts; })
];
};
};
}

View File

@@ -21,15 +21,17 @@ in
config = mkIf cfg.enable {
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
];
nerdfonts.additionalFonts = [ "Noto" ];
packages =
with pkgs;
[
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
]
++ (if (config.fonts.nerd-fonts.enable) then [ nerd-fonts.noto ] else [ ]);
fontconfig = {
defaultFonts.sansSerif = mkIf cfg.default [
(if (config.fonts.nerdfonts.enable) then "Noto Sans Nerd Font" else "Noto Sans")
(if (config.fonts.nerd-fonts.enable) then "Noto Sans Nerd Font" else "Noto Sans")
];
};
};

View File

@@ -19,7 +19,6 @@ in
environment.systemPackages = with pkgs; [
lpc21isp
dfu-util
cura
openscad
bambu-studio
(orca-slicer.overrideAttrs (

View File

@@ -35,7 +35,7 @@ in
pkgs: with pkgs; [
libgudev
libvdpau
libsoup
libsoup_2_4
];
})
rpcs3