Skip to content

Commit

Permalink
nixos/picom: add experimentalBackends option
Browse files Browse the repository at this point in the history
This option is only available as a command-line flag and not from the
config file, that is `services.picom.settings`. Therefore it is more
important that it gets its own option.

One reason one might need this set is that blur methods other than
kernel do not work with the old backends, see yshui/picom#464.

For reference, the home-manager picom module exposes this option too.
  • Loading branch information
axelf4 authored and rapenne-s committed Oct 6, 2020
1 parent bae991c commit dc13ecc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions nixos/modules/services/x11/picom.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ in {
type = types.bool;
default = false;
description = ''
Whether of not to enable Picom as the X.org composite manager.
Whether or not to enable Picom as the X.org composite manager.
'';
};

experimentalBackends = mkOption {
type = types.bool;
default = false;
description = ''
Whether to use the unstable new reimplementation of the backends.
'';
};

Expand Down Expand Up @@ -302,7 +310,8 @@ in {
};

serviceConfig = {
ExecStart = "${pkgs.picom}/bin/picom --config ${configFile}";
ExecStart = "${pkgs.picom}/bin/picom --config ${configFile}"
+ (optionalString cfg.experimentalBackends " --experimental-backends");
RestartSec = 3;
Restart = "always";
};
Expand Down

0 comments on commit dc13ecc

Please sign in to comment.