1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-03 16:39:46 +01:00
home-manager/tests/modules/services/syncthing/linux/tray.nix

28 lines
632 B
Nix
Raw Normal View History

{ 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'"
'';
};
}