up
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
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