modules!!!
This commit is contained in:
parent
eb1a4786f4
commit
6f1ebdcc9a
24 changed files with 877 additions and 574 deletions
16
modules/desktop/syncthing.nix
Normal file
16
modules/desktop/syncthing.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.jade.desktop.syncthing;
|
||||
in with lib; {
|
||||
options.jade.desktop.syncthing = {
|
||||
enable = mkEnableOption "Enable syncing via syncthing";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.syncthing = rec {
|
||||
enable = true;
|
||||
user = "jade";
|
||||
dataDir = "/home/${user}/Documents";
|
||||
configDir = "/home/${user}/Documents/.config/syncthing";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue