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 = { services.postgresql = {
enable = true; enable = true;

View File

@@ -1,17 +1,20 @@
{ {
config, config,
pkgs,
nixvim,
user,
constants, constants,
nixvim,
pkgs,
user,
sops-nix,
... ...
}: { }: {
imports = [ imports = [
../../core ../../core
../../networking/tailscale.nix ../../networking/tailscale.nix
./system.nix ../../services/syncthing.nix
./homebrew.nix
./dock ./dock
./homebrew.nix
./system.nix
sops-nix.darwinModules.sops
]; ];
system = { system = {

View File

@@ -10,8 +10,9 @@
../../core ../../core
../../networking/firewall.nix ../../networking/firewall.nix
../../networking/ssh.nix ../../networking/ssh.nix
./tailscale.nix
../../services/adguard.nix ../../services/adguard.nix
../../services/syncthing.nix
./tailscale.nix
sops-nix.nixosModules.sops 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;
};
};
}