mirror of
https://github.com/nix-community/home-manager
synced 2024-12-02 16:09:46 +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 = {
|
systemd.user.services = {
|
||||||
syncthing = {
|
syncthing = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
@ -45,7 +45,8 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
||||||
(mkIf config.services.syncthing.tray {
|
(mkIf config.services.syncthing.tray {
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
qsyncthingtray = {
|
qsyncthingtray = {
|
||||||
|
@ -65,5 +66,5 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
]);
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue