Lots of config
This commit is contained in:
parent
6fe5df4636
commit
f8cc052f3c
9 changed files with 98 additions and 48 deletions
|
@ -16,34 +16,37 @@
|
|||
];
|
||||
|
||||
networking.hostName = myhostname;
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 443 8384 22000];
|
||||
};
|
||||
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
user = "fw";
|
||||
dataDir = "/home/fw/syncthing";
|
||||
configDir = "/home/fw/.config/syncthing";
|
||||
overrideDevices = true; # overrides any devices added or deleted through the WebUI
|
||||
overrideFolders = true; # overrides any folders added or deleted through the WebUI
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = {
|
||||
"desktop" = { id = "BGEQVAA-JZM7DQB-7NFEDQ6-K7Q3HQL-P6OSNJ2-TMA3N7B-E6RP3HQ-OAMWJQL"; };
|
||||
"laptop" = { id = "2VEN7O3-PB3G2MK-XJI7R5Z-6MHTNN2-WMXERIX-6G7QWSK-VKSWOSH-Q5WFDAI"; };
|
||||
};
|
||||
folders = {
|
||||
"Documents" = { # Name of folder in Syncthing, also the folder ID
|
||||
path = "/home/fw/docs"; # Which folder to add to Syncthing
|
||||
devices = [ "desktop" ]; # Which devices to share the folder with
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.k3s = {
|
||||
enable = true;
|
||||
role = "server";
|
||||
token = "supersupersecretkey";
|
||||
clusterInit = true;
|
||||
};
|
||||
|
||||
# services = {
|
||||
# syncthing = {
|
||||
# enable = true;
|
||||
# user = "fw";
|
||||
# dataDir = "/home/fw/syncthing";
|
||||
# configDir = "/home/fw/.config/syncthing";
|
||||
# overrideDevices = true; # overrides any devices added or deleted through the WebUI
|
||||
# overrideFolders = true; # overrides any folders added or deleted through the WebUI
|
||||
# guiAddress = "0.0.0.0:8384";
|
||||
# settings = {
|
||||
# devices = {
|
||||
# "desktop" = { id = "BGEQVAA-JZM7DQB-7NFEDQ6-K7Q3HQL-P6OSNJ2-TMA3N7B-E6RP3HQ-OAMWJQL"; };
|
||||
# "laptop" = { id = "2VEN7O3-PB3G2MK-XJI7R5Z-6MHTNN2-WMXERIX-6G7QWSK-VKSWOSH-Q5WFDAI"; };
|
||||
# };
|
||||
# folders = {
|
||||
# "Documents" = { # Name of folder in Syncthing, also the folder ID
|
||||
# path = "/home/fw/docs"; # Which folder to add to Syncthing
|
||||
# devices = [ "desktop" ]; # Which devices to share the folder with
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
|
||||
services.xserver.dpi = 140;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue