Compare commits

...

2 Commits

Author SHA1 Message Date
henrov f9e3f9ebd6 Working on reshuffling 2026-03-19 12:19:13 +00:00
henrov 8d46ffa826 deleted generated files 2026-03-19 12:19:12 +00:00
3 changed files with 38 additions and 26 deletions
+19 -13
View File
@@ -137,9 +137,10 @@ This sets the networking.
{ lib, ... }: { lib, ... }:
{ {
options.mySystem = lib.mkSubmodule { options.mySystem = lib.mkOption {
description = "Root for custom mySystem options"; type = lib.types.attrsOf lib.types.attrsOf lib.types.any;
options = {}; default = {};
description = "Root container for custom mySystem options (desktop, apps, etc.)";
}; };
} }
#+END_SRC #+END_SRC
@@ -976,19 +977,24 @@ 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
{ config, lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
# Define enable option flake.nixosModules.fonts = { config, lib, pkgs, ... }:
options.mySystem.desktop.fonts.enable =
lib.mkEnableOption "Enable nerd-fonts";
# Apply only if enabled let
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) { enableProgram = true; # toggle default
fonts.packages = with pkgs; [ in
nerd-fonts.iosevka {
nerd-fonts.fira-code options.mySystem.desktop.fonts.enable =
]; lib.mkEnableOption "Enable system fonts";
config = lib.mkIf (enableProgram) {
fonts.packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.fira-code
];
};
}; };
} }
#+END_SRC #+END_SRC
+15 -10
View File
@@ -1,15 +1,20 @@
{ config, lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
# Define enable option flake.nixosModules.fonts = { config, lib, pkgs, ... }:
options.mySystem.desktop.fonts.enable =
lib.mkEnableOption "Enable nerd-fonts";
# Apply only if enabled let
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) { enableProgram = true; # toggle default
fonts.packages = with pkgs; [ in
nerd-fonts.iosevka {
nerd-fonts.fira-code options.mySystem.desktop.fonts.enable =
]; lib.mkEnableOption "Enable system fonts";
config = lib.mkIf (enableProgram) {
fonts.packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.fira-code
];
};
}; };
} }
+4 -3
View File
@@ -1,8 +1,9 @@
{ lib, ... }: { lib, ... }:
{ {
options.mySystem = lib.mkSubmodule { options.mySystem = lib.mkOption {
description = "Root for custom mySystem options"; type = lib.types.attrsOf lib.types.attrsOf lib.types.any;
options = {}; default = {};
description = "Root container for custom mySystem options (desktop, apps, etc.)";
}; };
} }