diff options
| author | Kleidi Bujari <mail@4kb.net> | 2025-08-31 19:31:44 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2025-08-31 19:31:44 -0700 |
| commit | 346ed182f63f1c082b22d07dd4714ae82964e830 (patch) | |
| tree | 39b3800223ddce72b1cb788097113c0296792da6 /modules | |
| parent | 6d66b5c0fe54bac2f5f63eea78e82e57ff8190c0 (diff) | |
| download | depot-346ed182f63f1c082b22d07dd4714ae82964e830.tar.gz depot-346ed182f63f1c082b22d07dd4714ae82964e830.tar.bz2 depot-346ed182f63f1c082b22d07dd4714ae82964e830.zip | |
properly set system fonts rather than just installing
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/desktop.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix index 1355ef0..0e20ce7 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -111,14 +111,24 @@ in platformTheme = "gnome"; }; - fonts.packages = with pkgs; [ - departure-mono - iosevka - noto-fonts - noto-fonts-cjk-sans - noto-fonts-emoji - nerd-fonts.symbols-only - ]; + fonts = { + # Expose system fonts in case something non-standard needs them + fontDir.enable = true; + packages = with pkgs; [ + departure-mono + iosevka + noto-fonts + noto-fonts-cjk-sans + noto-fonts-emoji + nerd-fonts.symbols-only + ]; + + fontconfig.defaultFonts = { + serif = [ "Liberation Serif" ]; + sansSerif = [ "Liberation Sans" ]; + monospace = [ "Iosevka" ]; + }; + }; environment.etc."xdg/user-dirs.defaults".text = '' DOWNLOAD=/tmp/downloads |
