mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
syncthing: allow enabling tray independently
This commit is contained in:
parent
9de2549dfb
commit
6fc0fd315c
1 changed files with 5 additions and 4 deletions
|
@ -23,8 +23,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
config = mkIf config.services.syncthing.enable (mkMerge [
|
||||
{
|
||||
config = mkMerge [
|
||||
(mkIf config.services.syncthing.enable {
|
||||
systemd.user.services = {
|
||||
syncthing = {
|
||||
Unit = {
|
||||
|
@ -45,7 +45,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
(mkIf config.services.syncthing.tray {
|
||||
systemd.user.services = {
|
||||
qsyncthingtray = {
|
||||
|
@ -65,5 +66,5 @@ with lib;
|
|||
};
|
||||
};
|
||||
})
|
||||
]);
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue