1 { config, lib, pkgs, ... }:
7 configFile = ./xfs.conf;
22 description = "Whether to enable the X Font Server.";
32 config = mkIf config.services.xfs.enable {
33 assertions = singleton
34 { assertion = config.fonts.enableFontDir;
35 message = "Please enable fonts.enableFontDir to use the X Font Server.";
38 systemd.services.xfs = {
39 description = "X Font Server";
40 after = [ "network.target" ];
41 wantedBy = [ "multi-user.target" ];
42 path = [ pkgs.xorg.xfs ];
43 script = "xfs -config ${configFile}";