mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 12:03:25 +00:00
86248a2d5c
Fixes #2598
16 lines
421 B
Nix
16 lines
421 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
extraOptions = [ "-foo" ''-bar "baz"'' ];
|
|
};
|
|
|
|
test.stubs.syncthing = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/systemd/user/syncthing.service
|
|
assertFileContains home-files/.config/systemd/user/syncthing.service \
|
|
"ExecStart=@syncthing@/bin/syncthing -no-browser -no-restart -logflags=0 '-foo' '-bar \"baz\"'"
|
|
'';
|
|
}
|