random-background: add bgSupport
documentation
On NixOS it is necessary to set `bgSupport = true` when creating a
Home Manager desktop manager session. Otherwise NixOS will add code
that sets the background, overriding the effort made by the
`random-background` module.
Fixes #955
Pull request #956
(cherry picked from commit a12a8f7977
)
This commit is contained in:
parent
94c0367dd8
commit
11f8b1c1ce
|
@ -22,7 +22,17 @@ in
|
|||
|
||||
options = {
|
||||
services.random-background = {
|
||||
enable = mkEnableOption "random desktop background";
|
||||
enable = mkEnableOption "" // {
|
||||
description = ''
|
||||
Whether to enable random desktop background.
|
||||
</para><para>
|
||||
Note, if you are using NixOS and have set up a custom
|
||||
desktop manager session for Home Manager, then the session
|
||||
configuration must have the <option>bgSupport</option>
|
||||
option set to <literal>true</literal> or the background
|
||||
image set by this module may be overwritten.
|
||||
'';
|
||||
};
|
||||
|
||||
imageDirectory = mkOption {
|
||||
type = types.str;
|
||||
|
|
Loading…
Reference in a new issue