1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-02 16:09:46 +01:00
home-manager/tests/modules/services/syncthing/linux/tray.nix
Motiejus Jakštys 76fe6d9465 syncthingtray: add extraOptions
The test currently fails, because the nix path in the generated unit
does not get rewritten to `@syncthingtray@`. Pointers would be
appreciated.
2023-10-11 22:49:48 +03:00

27 lines
632 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
services.syncthing.tray = {
enable = true;
extraOptions = [ "--wait" ];
};
test.stubs.syncthingtray = { };
nixpkgs.overlays = [
(self: super: {
syncthingtray-minimal =
pkgs.runCommandLocal "syncthingtray" { pname = "syncthingtray"; }
"mkdir $out";
})
];
nmt.script = ''
assertFileExists home-files/.config/systemd/user/syncthingtray.service
assertFileContains home-files/.config/systemd/user/syncthingtray.service "ExecStart='@syncthingtray@/bin/syncthingtray' '--wait'"
'';
};
}