Working on reshuffling

This commit is contained in:
2026-03-19 12:13:46 +00:00
parent 452f894248
commit 708eeb8475
2 changed files with 22 additions and 30 deletions
+4 -8
View File
@@ -976,24 +976,20 @@ Setting up GTK
** =generated/modules/desktop/fonts.nix= ** =generated/modules/desktop/fonts.nix=
This file installs and configures fonts This file installs and configures fonts
#+BEGIN_SRC nix :tangle generated/modules/desktop/fonts.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/modules/desktop/fonts.nix :noweb tangle :mkdirp yes :eval never-html
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ # The function defining the NixOS module {
flake.nixosModules.fonts = { config, lib, pkgs, ... }: # Define enable option
{
# Define an enable option
options.mySystem.desktop.fonts.enable = options.mySystem.desktop.fonts.enable =
lib.mkEnableOption "Enable nerd-fonts"; lib.mkEnableOption "Enable nerd-fonts";
# Only apply config if enabled # Apply only if enabled
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) { config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
nerd-fonts.iosevka nerd-fonts.iosevka
nerd-fonts.fira-code nerd-fonts.fira-code
]; ];
}; };
};
} }
#+END_SRC #+END_SRC
+4 -8
View File
@@ -1,19 +1,15 @@
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ # The function defining the NixOS module {
flake.nixosModules.fonts = { config, lib, pkgs, ... }: # Define enable option
{
# Define an enable option
options.mySystem.desktop.fonts.enable = options.mySystem.desktop.fonts.enable =
lib.mkEnableOption "Enable nerd-fonts"; lib.mkEnableOption "Enable nerd-fonts";
# Only apply config if enabled # Apply only if enabled
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) { config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
nerd-fonts.iosevka nerd-fonts.iosevka
nerd-fonts.fira-code nerd-fonts.fira-code
]; ];
}; };
};
} }