mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
pulseeffects: add option to specify package (#1825)
This commit is contained in:
parent
0933fb8765
commit
e7b1491fb8
1 changed files with 11 additions and 3 deletions
|
@ -14,6 +14,14 @@ in {
|
||||||
options.services.pulseeffects = {
|
options.services.pulseeffects = {
|
||||||
enable = mkEnableOption "Pulseeffects daemon";
|
enable = mkEnableOption "Pulseeffects daemon";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.pulseeffects;
|
||||||
|
defaultText = literalExample "pkgs.pulseeffects";
|
||||||
|
description = "Pulseeffects package to use.";
|
||||||
|
example = literalExample "pkgs.pulseeffects-pw";
|
||||||
|
};
|
||||||
|
|
||||||
preset = mkOption {
|
preset = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
|
@ -28,7 +36,7 @@ in {
|
||||||
# running pulseeffects will just attach itself to gapplication service
|
# running pulseeffects will just attach itself to gapplication service
|
||||||
# at-spi2-core is to minimize journalctl noise of:
|
# at-spi2-core is to minimize journalctl noise of:
|
||||||
# "AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files"
|
# "AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files"
|
||||||
home.packages = [ pkgs.pulseeffects pkgs.at-spi2-core ];
|
home.packages = [ cfg.package pkgs.at-spi2-core ];
|
||||||
|
|
||||||
# Will need to add `services.dbus.packages = with pkgs; [ gnome3.dconf ];`
|
# Will need to add `services.dbus.packages = with pkgs; [ gnome3.dconf ];`
|
||||||
# to /etc/nixos/configuration.nix for daemon to work correctly
|
# to /etc/nixos/configuration.nix for daemon to work correctly
|
||||||
|
@ -45,8 +53,8 @@ in {
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${pkgs.pulseeffects}/bin/pulseeffects --gapplication-service ${presetOpts}";
|
"${cfg.package}/bin/pulseeffects --gapplication-service ${presetOpts}";
|
||||||
ExecStop = "${pkgs.pulseeffects}/bin/pulseeffects --quit";
|
ExecStop = "${cfg.package}/bin/pulseeffects --quit";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue