2021-05-18 16:43:17 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
2023-10-09 08:31:44 +02:00
|
|
|
services.syncthing.tray = {
|
|
|
|
enable = true;
|
|
|
|
extraOptions = [ "--wait" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
test.stubs.syncthingtray = { };
|
2021-05-18 16:43:17 +02:00
|
|
|
|
2021-06-23 00:19:41 +02:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
syncthingtray-minimal =
|
|
|
|
pkgs.runCommandLocal "syncthingtray" { pname = "syncthingtray"; }
|
|
|
|
"mkdir $out";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-18 16:43:17 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/syncthingtray.service
|
2023-10-09 08:31:44 +02:00
|
|
|
assertFileContains home-files/.config/systemd/user/syncthingtray.service "ExecStart='@syncthingtray@/bin/syncthingtray' '--wait'"
|
2021-05-18 16:43:17 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|