mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 01:39:47 +01:00
parcellite: add extraOptions option
Even though `--no-icon` is currently the only viable option for both parcellite and clipit, other options may be added to later releases.
This commit is contained in:
parent
e70550577f
commit
d38dbec809
1 changed files with 12 additions and 1 deletions
|
@ -12,6 +12,15 @@ in {
|
|||
options.services.parcellite = {
|
||||
enable = mkEnableOption "Parcellite";
|
||||
|
||||
extraOptions = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "--no-icon" ];
|
||||
description = ''
|
||||
Command line arguments passed to Parcellite.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.parcellite;
|
||||
|
@ -40,7 +49,9 @@ in {
|
|||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
|
||||
Service = {
|
||||
ExecStart = "${cfg.package}/bin/${cfg.package.pname}";
|
||||
ExecStart = "${cfg.package}/bin/${cfg.package.pname} ${
|
||||
lib.concatStringsSep " " cfg.extraOptions
|
||||
}";
|
||||
Restart = "on-abort";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue