nixos/xserver: add option to configure the "Files" section

This commit is contained in:
rnhmjoj 2020-09-01 10:37:11 +02:00 committed by Emilio Perez
parent a5c0ba4004
commit 1fdd3921a2

View file

@ -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 = "";