Refactor modules style
This commit is contained in:
parent
ed2a7f94cf
commit
cc95386f1a
44 changed files with 455 additions and 297 deletions
25
nixosModules/apps/syncthing/default.nix
Normal file
25
nixosModules/apps/syncthing/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
syncthing.enable = lib.mkEnableOption "Enables syncthing";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.syncthing.enable {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = config.user.name;
|
||||
dataDir = "/home/" + config.user.name + "/dox/Sync";
|
||||
configDir = "/home/" + config.user.name + "/.config/syncthing";
|
||||
overrideFolders = true;
|
||||
overrideDevices = true;
|
||||
|
||||
settings = {
|
||||
gui = {
|
||||
user = config.user.name;
|
||||
password = "password";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue