diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2021-10-06 08:52:39 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2021-10-06 08:52:39 +0200 |
commit | a27dc95e72b5671df59e04853aa48a50d65f2031 (patch) | |
tree | 1954d4599bc3444f4d951c43b680db777addbcdf /nixos/modules/config/fonts | |
parent | ec2383ef4fc19ffba58c049e8ac1694d524ba031 (diff) |
nixos/fontdir: always link the font directory
This fixes the fonts directory availability when not running an xserver, such as headless machines.
Diffstat (limited to 'nixos/modules/config/fonts')
-rw-r--r-- | nixos/modules/config/fonts/fontdir.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/config/fonts/fontdir.nix b/nixos/modules/config/fonts/fontdir.nix index c4bd3a077d339..db4b6c638ab4d 100644 --- a/nixos/modules/config/fonts/fontdir.nix +++ b/nixos/modules/config/fonts/fontdir.nix @@ -50,9 +50,8 @@ in config = mkIf cfg.enable { - # This is enough to make a symlink because the xserver - # module already links all /share/X11 paths. environment.systemPackages = [ x11Fonts ]; + environment.pathsToLink = [ "/share/X11/fonts" ]; services.xserver.filesSection = '' FontPath "${x11Fonts}/share/X11/fonts" |