1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00: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 ];
imports = [
(mkRemovedOptionModule [ "services" "barrier" "client" "tray" ] ''
The tray option is non-functional and has been removed.
'')
];
options.services.barrier = {
client = {
@ -29,8 +35,6 @@ in {
'';
};
tray = mkEnableOption "the system tray icon" // { default = true; };
enableCrypto = mkEnableOption "crypto (SSL) plugin" // {
default = true;
};
@ -66,7 +70,6 @@ in {
Service.ExecStart = with cfg.client;
toString ([ "${pkgs.barrier}/bin/barrierc" ]
++ optional (name != null) "--name ${name}"
++ optional (!tray) "--no-tray"
++ optional enableCrypto "--enable-crypto"
++ optional enableDragDrop "--enable-drag-drop" ++ extraFlags
++ [ server ]);