up
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
nixvim,
|
||||
user,
|
||||
constants,
|
||||
nixvim,
|
||||
pkgs,
|
||||
user,
|
||||
sops-nix,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../core
|
||||
../../networking/tailscale.nix
|
||||
./system.nix
|
||||
./homebrew.nix
|
||||
../../services/syncthing.nix
|
||||
./dock
|
||||
./homebrew.nix
|
||||
./system.nix
|
||||
sops-nix.darwinModules.sops
|
||||
];
|
||||
|
||||
system = {
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
../../core
|
||||
../../networking/firewall.nix
|
||||
../../networking/ssh.nix
|
||||
./tailscale.nix
|
||||
../../services/adguard.nix
|
||||
../../services/syncthing.nix
|
||||
./tailscale.nix
|
||||
sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
|
||||
24
modules/services/syncthing.nix
Normal file
24
modules/services/syncthing.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{user, ...}: {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
dataDir = "/home/${user}/.local/share/syncthing";
|
||||
configDir = "/home/${user}/.config/syncthing";
|
||||
user = "${user}";
|
||||
group = "users";
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
overrideFolders = true;
|
||||
overrideDevices = true;
|
||||
|
||||
settings = {
|
||||
devices = {};
|
||||
folders = {
|
||||
"Projects" = {
|
||||
path = "/home/${user}/Projects";
|
||||
devices = [];
|
||||
};
|
||||
};
|
||||
options.globalAnnounceEnabled = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user