add syncthing
This commit is contained in:
parent
95930bc83e
commit
d26ff604e6
|
@ -16,5 +16,6 @@
|
|||
./gpg.nix
|
||||
./defaultDesktopPack.nix
|
||||
./accounts.nix
|
||||
./syncthing.nix
|
||||
];
|
||||
}
|
||||
|
|
20
home/modules/syncthing.nix
Normal file
20
home/modules/syncthing.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.services.syncthing;
|
||||
in {
|
||||
options.local.services.syncthing = {
|
||||
enable = mkEnableOption "syncthing settings";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -33,6 +33,7 @@
|
|||
enable = true;
|
||||
defaultKey = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
|
||||
};
|
||||
syncthing.enable = true;
|
||||
};
|
||||
|
||||
apps = {
|
||||
|
|
Loading…
Reference in a new issue