mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 22:51:49 +00:00
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib, inputs, outputs, ... }:
|
|
{
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
dataDir = "/home/sstent";
|
|
openDefaultPorts = true;
|
|
configDir = "/home/sstent/.config/syncthing";
|
|
user = "sstent";
|
|
group = "users";
|
|
guiAddress = "0.0.0.0:8385";
|
|
declarative = {
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
devices = {
|
|
"StuPC" = { id = "Z43MPGF-OKG6K34-WTTFUDO-UG6E3TE-YCLSOAT-5LN5KMW-QHL2VSK-EZCGCAP"; };
|
|
"Go3" = { id = "YDOL433-AHAL33M-NWLLDDQ-2D36ZIE-YNZVTKE-25TRBZ2-JXRSN7Y-Z5EOVQN"; };
|
|
};
|
|
folders = {
|
|
"default" = {
|
|
path = "/home/sstent/sync";
|
|
devices = [ "StuPC" "Go3" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
# { lib, pkgs, config, ... }:
|
|
# with lib;
|
|
|
|
# let cfg = config.services.ssh-proxy;
|
|
# in {
|
|
# options.services.ssh-proxy = {
|
|
# enable = mkOption {
|
|
# type = types.bool;
|
|
# default = false;
|
|
# description = ''
|
|
# Enable Mnt Public for WSL
|
|
# '';
|
|
# };
|
|
# };
|
|
|
|
# config = mkIf cfg.enable {
|
|
|
|
# } |