barrier: remove tray
option (#2215)
barrier's --no-tray CLI parameter is non-functional and so the option has been removed.
This commit is contained in:
parent
addc78bea0
commit
f6f6990fc8
|
@ -6,6 +6,12 @@ in {
|
||||||
|
|
||||||
meta.maintainers = with maintainers; [ kritnich ];
|
meta.maintainers = with maintainers; [ kritnich ];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(mkRemovedOptionModule [ "services" "barrier" "client" "tray" ] ''
|
||||||
|
The tray option is non-functional and has been removed.
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
options.services.barrier = {
|
options.services.barrier = {
|
||||||
|
|
||||||
client = {
|
client = {
|
||||||
|
@ -29,8 +35,6 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
tray = mkEnableOption "the system tray icon" // { default = true; };
|
|
||||||
|
|
||||||
enableCrypto = mkEnableOption "crypto (SSL) plugin" // {
|
enableCrypto = mkEnableOption "crypto (SSL) plugin" // {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
@ -66,7 +70,6 @@ in {
|
||||||
Service.ExecStart = with cfg.client;
|
Service.ExecStart = with cfg.client;
|
||||||
toString ([ "${pkgs.barrier}/bin/barrierc" ]
|
toString ([ "${pkgs.barrier}/bin/barrierc" ]
|
||||||
++ optional (name != null) "--name ${name}"
|
++ optional (name != null) "--name ${name}"
|
||||||
++ optional (!tray) "--no-tray"
|
|
||||||
++ optional enableCrypto "--enable-crypto"
|
++ optional enableCrypto "--enable-crypto"
|
||||||
++ optional enableDragDrop "--enable-drag-drop" ++ extraFlags
|
++ optional enableDragDrop "--enable-drag-drop" ++ extraFlags
|
||||||
++ [ server ]);
|
++ [ server ]);
|
||||||
|
|
Loading…
Reference in a new issue