1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00

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:
Kritnich 2021-07-26 17:16:00 +02:00 committed by GitHub
parent addc78bea0
commit f6f6990fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ]);