Move fonts configuration
All checks were successful
/ check (push) Successful in 1m36s

This commit is contained in:
Oliver Davies 2025-07-25 00:29:49 +01:00
parent 6a12ea4b0e
commit 9eca4f3e7b
4 changed files with 16 additions and 32 deletions

View file

@ -37,7 +37,6 @@
desktop = {
dconf.enable = true;
dwm.enable = true;
fonts.enable = true;
media.makemkv.enable = true;
st.enable = true;
thunar.enable = true;

View file

@ -3,7 +3,6 @@
./avahi.nix
./dconf.nix
./dwm
./fonts.nix
./gitea-actions-runner.nix
./gnupg.nix
./kanata.nix

View file

@ -1,30 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.features.desktop.fonts;
in
{
options.features.desktop.fonts.enable = mkEnableOption "Enable fonts";
config = mkIf cfg.enable {
fonts = {
fontconfig = {
enable = true;
};
packages = with pkgs; [
nerd-fonts.jetbrains-mono
nerd-fonts.meslo-lg
terminus_font
terminus_font_ttf
];
};
};
}

16
modules2/fonts.nix Normal file
View file

@ -0,0 +1,16 @@
{
flake.modules.nixos.pc =
{ pkgs, ... }:
{
fonts = {
fontconfig.enable = true;
packages = with pkgs; [
nerd-fonts.jetbrains-mono
nerd-fonts.meslo-lg
terminus_font
terminus_font_ttf
];
};
};
}