summary refs log tree commit diff
path: root/nixos/modules/services/x11/xserver.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-09-01 10:37:11 +0200
committerEmilio Perez <emilio.perez-juarez@diamond.ac.uk>2020-10-04 14:56:29 +0100
commit1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb (patch)
tree4adaaa43ab03043f4dca8b39c69021dba62e91cf /nixos/modules/services/x11/xserver.nix
parenta5c0ba40048734cd091d53454f30d853ed1fb3ca (diff)
downloadnixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.tar
nixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.tar.gz
nixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.tar.bz2
nixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.tar.lz
nixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.tar.xz
nixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.tar.zst
nixpkgs-1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb.zip
nixos/xserver: add option to configure the "Files" section
Diffstat (limited to 'nixos/modules/services/x11/xserver.nix')
-rw-r--r--nixos/modules/services/x11/xserver.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 0552095ba95..c8335b69769 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -136,6 +136,7 @@ let
           fi
         done
 
+        echo '${cfg.filesSection}' >> $out
         echo 'EndSection' >> $out
 
         echo "$config" >> $out
@@ -366,6 +367,13 @@ in
         '';
       };
 
+      filesSection = mkOption {
+        type = types.lines;
+        default = "";
+        example = ''FontPath "/path/to/my/fonts"'';
+        description = "Contents of the first Files section of the X server configuration file.";
+      };
+
       deviceSection = mkOption {
         type = types.lines;
         default = "";