add syncthing
This commit is contained in:
parent
95930bc83e
commit
d26ff604e6
|
@ -16,5 +16,6 @@
|
||||||
./gpg.nix
|
./gpg.nix
|
||||||
./defaultDesktopPack.nix
|
./defaultDesktopPack.nix
|
||||||
./accounts.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;
|
enable = true;
|
||||||
defaultKey = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
|
defaultKey = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
|
||||||
};
|
};
|
||||||
|
syncthing.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
apps = {
|
apps = {
|
||||||
|
|
Loading…
Reference in a new issue