1
0
Fork 0
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:
Even Brenden 2022-12-08 12:24:04 +01:00 committed by Robert Helgesson
parent e70550577f
commit d38dbec809
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -12,6 +12,15 @@ in {
options.services.parcellite = { options.services.parcellite = {
enable = mkEnableOption "Parcellite"; enable = mkEnableOption "Parcellite";
extraOptions = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "--no-icon" ];
description = ''
Command line arguments passed to Parcellite.
'';
};
package = mkOption { package = mkOption {
type = types.package; type = types.package;
default = pkgs.parcellite; default = pkgs.parcellite;
@ -40,7 +49,9 @@ in {
Install = { WantedBy = [ "graphical-session.target" ]; }; Install = { WantedBy = [ "graphical-session.target" ]; };
Service = { Service = {
ExecStart = "${cfg.package}/bin/${cfg.package.pname}"; ExecStart = "${cfg.package}/bin/${cfg.package.pname} ${
lib.concatStringsSep " " cfg.extraOptions
}";
Restart = "on-abort"; Restart = "on-abort";
}; };
}; };