diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2020-09-01 10:37:11 +0200 |
---|---|---|
committer | Emilio Perez <emilio.perez-juarez@diamond.ac.uk> | 2020-10-04 14:56:29 +0100 |
commit | 1fdd3921a2b08a28c850e9da88f1ed67dd07b5cb (patch) | |
tree | 4adaaa43ab03043f4dca8b39c69021dba62e91cf /nixos/modules/services/x11/xserver.nix | |
parent | a5c0ba40048734cd091d53454f30d853ed1fb3ca (diff) | |
download | nixpkgs-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.nix | 8 |
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 = ""; |