37 lines
596 B
Nix
37 lines
596 B
Nix
|
{ ... } @ args:
|
||
|
|
||
|
let
|
||
|
|
||
|
in args // {
|
||
|
config = { config, pkgs, ... }: {
|
||
|
imports = [
|
||
|
../profiles/containers/configuration.nix
|
||
|
];
|
||
|
|
||
|
networking.firewall.enable = true;
|
||
|
|
||
|
services.syncthing = {
|
||
|
enable = true;
|
||
|
openDefaultPorts = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
autoStart = true;
|
||
|
|
||
|
bindMounts = {
|
||
|
"/var/lib/syncthing/" = {
|
||
|
hostPath = "/var/lib/container-volumes/syncthing/var-lib-syncthing";
|
||
|
isReadOnly = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
privateNetwork = true;
|
||
|
forwardPorts = [
|
||
|
{
|
||
|
containerPort = 22000;
|
||
|
hostPort = 22000;
|
||
|
protocol = "tcp";
|
||
|
}
|
||
|
];
|
||
|
}
|