Working on reshuffling
This commit is contained in:
+11
-15
@@ -976,23 +976,19 @@ 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
|
||||||
|
options.mySystem.desktop.fonts.enable =
|
||||||
|
lib.mkEnableOption "Enable nerd-fonts";
|
||||||
|
|
||||||
{
|
# Apply only if enabled
|
||||||
# Define an enable option
|
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
||||||
options.mySystem.desktop.fonts.enable =
|
fonts.packages = with pkgs; [
|
||||||
lib.mkEnableOption "Enable nerd-fonts";
|
nerd-fonts.iosevka
|
||||||
|
nerd-fonts.fira-code
|
||||||
# Only apply config if enabled
|
];
|
||||||
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
|
||||||
fonts.packages = with pkgs; [
|
|
||||||
nerd-fonts.iosevka
|
|
||||||
nerd-fonts.fira-code
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{ # The function defining the NixOS module
|
{
|
||||||
flake.nixosModules.fonts = { config, lib, pkgs, ... }:
|
# Define enable option
|
||||||
|
options.mySystem.desktop.fonts.enable =
|
||||||
|
lib.mkEnableOption "Enable nerd-fonts";
|
||||||
|
|
||||||
{
|
# Apply only if enabled
|
||||||
# Define an enable option
|
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
||||||
options.mySystem.desktop.fonts.enable =
|
fonts.packages = with pkgs; [
|
||||||
lib.mkEnableOption "Enable nerd-fonts";
|
nerd-fonts.iosevka
|
||||||
|
nerd-fonts.fira-code
|
||||||
# Only apply config if enabled
|
];
|
||||||
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
|
||||||
fonts.packages = with pkgs; [
|
|
||||||
nerd-fonts.iosevka
|
|
||||||
nerd-fonts.fira-code
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user