fork/home-manager
git clone https://git.julia.blue/fork/home-manager
885a504f
master
1{ lib , pkgs , ...} : 2 3lib . mkMerge [ 4{ 5services . syncthing = { 6enable = true ; 7extraOptions = [ "-foo" ''-bar "baz"'' ]; 8}; 9 10test . stubs . syncthing = { }; 11} 12( lib . mkIf pkgs . stdenv . isLinux { 13nmt . script = '' 14assertFileExists home-files/.config/systemd/user/syncthing.service 15assertFileContains home-files/.config/systemd/user/syncthing.service \ 16"ExecStart='@syncthing@/bin/syncthing' '-no-browser' '-no-restart' '-logflags=0' '-foo' '-bar \"baz\"'" 17'' ; 18}) 19( lib . mkIf pkgs . stdenv . isDarwin { 20nmt . script = '' 21serviceFile =LaunchAgents/org.nix-community.home.syncthing.plist 22assertFileExists " $ serviceFile " 23assertFileContent " $ serviceFile " ${ ./expected-agent.plist } 24'' ; 25}) 26]