Way too massive refactoring
This commit is contained in:
parent
113d68be68
commit
24aac9708b
49 changed files with 481 additions and 407 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
boot.kernel.sysctl."fs.inotify.max_user_watches" = 204800;
|
||||
|
||||
|
@ -20,14 +20,14 @@
|
|||
relaysEnabled = false;
|
||||
};
|
||||
|
||||
devices = pkgs.lib.mkMerge [
|
||||
devices = lib.mkMerge [
|
||||
{
|
||||
"syncthing" = {
|
||||
id = "J6GNM4Z-2TWASPT-3P3EW4V-KZEQYFF-TXL22QX-4YTZ3WO-WLM7GQ7-NUP66A4";
|
||||
addresses = [ "tcp://syncthing.vsinerva.fi:22000" ];
|
||||
};
|
||||
}
|
||||
(pkgs.lib.mkIf (config.networking.hostName == "syncthing") {
|
||||
(lib.mkIf (config.networking.hostName == "syncthing") {
|
||||
"helium" = {
|
||||
id = "2MRUBSY-NHXYMAW-SY22RHP-CNNMHKR-DPDKMM4-2XV5F6M-6KSNLQI-DD4EOAM";
|
||||
addresses = [ "tcp://helium.vsinerva.fi:22000" ];
|
||||
|
@ -42,9 +42,9 @@
|
|||
folders =
|
||||
let
|
||||
default = {
|
||||
devices = pkgs.lib.mkMerge [
|
||||
devices = lib.mkMerge [
|
||||
[ "syncthing" ]
|
||||
(pkgs.lib.mkIf (config.networking.hostName == "syncthing") [
|
||||
(lib.mkIf (config.networking.hostName == "syncthing") [
|
||||
"helium"
|
||||
"lithium"
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue