mirror of
https://github.com/nix-community/home-manager
synced 2024-12-02 16:09:46 +01:00
76fe6d9465
The test currently fails, because the nix path in the generated unit does not get rewritten to `@syncthingtray@`. Pointers would be appreciated.
27 lines
632 B
Nix
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'"
|
|
'';
|
|
};
|
|
}
|