nixos/xserver: add option to configure the "Files" section
This commit is contained in:
parent
a5c0ba4004
commit
1fdd3921a2
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in a new issue