Way too massive refactoring

This commit is contained in:
Vili Sinervä 2025-05-29 15:39:42 +03:00
parent 113d68be68
commit 24aac9708b
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
49 changed files with 481 additions and 407 deletions

View file

@ -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"
])