mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 04:51:08 +01:00
syncthing: add Darwin support
This commit is contained in:
parent
2f8d24b7f5
commit
885a504f80
10 changed files with 85 additions and 27 deletions
21
tests/modules/services/syncthing/linux/tray.nix
Normal file
21
tests/modules/services/syncthing/linux/tray.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
config = {
|
||||
services.syncthing.tray.enable = true;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
syncthingtray-minimal =
|
||||
pkgs.runCommandLocal "syncthingtray" { pname = "syncthingtray"; }
|
||||
"mkdir $out";
|
||||
})
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/systemd/user/syncthingtray.service
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue