This commit is contained in:
2025-08-13 18:29:38 +00:00
parent 07891c5c3a
commit 032df2bc59
4 changed files with 34 additions and 28 deletions

View File

@@ -65,28 +65,6 @@
};
};
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 = {};
options.globalAnnounceEnabled = false;
};
folders = {
"Projects" = {
path = "/home/${user}/Projects";
devices = [];
};
};
};
services.postgresql = {
enable = true;

View File

@@ -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 = {

View File

@@ -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
];

View 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;
};
};
}