diff --git a/SwarselSystems.org b/SwarselSystems.org index 07d1687..4b515b7 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -2383,6 +2383,7 @@ This is my main server that I run at home. It handles most tasks that require bi swarselsystems = { info = "ASRock J4105-ITX, 32GB RAM"; + flakePath = "/root/.dotfiles"; isImpermanence = false; isSecureBoot = true; isCrypted = true; @@ -4971,6 +4972,9 @@ Here I only enable =networkmanager= and a few default networks. The rest of the networking = { inherit (config.swarselsystems) hostName; + hosts = { + "192.168.178.24" = [ "store.swarsel.win" ]; + }; wireless.iwd = { enable = true; settings = { @@ -6786,6 +6790,13 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t services.pipewire.systemWide = true; + # https://github.com/Spotifyd/spotifyd/issues/1366 + networking.hosts."0.0.0.0" = [ "apresolve.spotify.com" ]; + + # hacky way to enable multi-session + # when another user connects, the service will crash and the new user will login + systemd.services.spotifyd.serviceConfig.RestartSec = lib.mkForce 1; + services.spotifyd = { enable = true; settings = { @@ -6793,8 +6804,11 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t dbus_type = "session"; use_mpris = false; device = "sysdefault:CARD=PCH"; + # device = "default"; device_name = "SwarselSpot"; - mixer = "alsa"; + # backend = "pulseaudio"; + backend = "alsa"; + # mixer = "alsa"; zeroconf_port = servicePort; }; }; @@ -7154,14 +7168,14 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t address = "http://localhost:${builtins.toString servicePort}"; domain = serviceDomain; }; + database = { + type = "postgres"; + uri = "postgresql:///mautrix-whatsapp?host=/run/postgresql"; + }; appservice = { address = "http://localhost:${builtins.toString whatsappPort}"; hostname = "0.0.0.0"; port = whatsappPort; - database = { - type = "postgres"; - uri = "postgresql:///mautrix-whatsapp?host=/run/postgresql"; - }; }; bridge = { displayname_template = "{{or .FullName .PushName .JID}} (WA)"; @@ -7201,14 +7215,14 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t address = "http://localhost:${builtins.toString servicePort}"; domain = serviceDomain; }; + database = { + type = "postgres"; + uri = "postgresql:///mautrix-signal?host=/run/postgresql"; + }; appservice = { address = "http://localhost:${builtins.toString signalPort}"; hostname = "0.0.0.0"; port = signalPort; - database = { - type = "postgres"; - uri = "postgresql:///mautrix-signal?host=/run/postgresql"; - }; }; bridge = { displayname_template = "{{or .ContactName .ProfileName .PhoneNumber}} (Signal)"; @@ -7332,7 +7346,7 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t configureRedis = true; maxUploadSize = "4G"; extraApps = { - inherit (pkgs.nextcloud30Packages.apps) mail calendar contacts cospend phonetrack polls tasks sociallogin; + inherit (pkgs.nextcloud31Packages.apps) mail calendar contacts cospend phonetrack polls tasks sociallogin; }; extraAppsEnable = true; config = { @@ -7359,6 +7373,9 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t locations = { "/" = { proxyPass = "http://${serviceName}"; + extraConfig = '' + client_max_body_size 0; + ''; }; }; }; diff --git a/hosts/nixos/winters/default.nix b/hosts/nixos/winters/default.nix index 0c60f22..38207d8 100644 --- a/hosts/nixos/winters/default.nix +++ b/hosts/nixos/winters/default.nix @@ -22,6 +22,7 @@ swarselsystems = { info = "ASRock J4105-ITX, 32GB RAM"; + flakePath = "/root/.dotfiles"; isImpermanence = false; isSecureBoot = true; isCrypted = true; diff --git a/modules/nixos/client/network.nix b/modules/nixos/client/network.nix index 7c23b32..763b3da 100644 --- a/modules/nixos/client/network.nix +++ b/modules/nixos/client/network.nix @@ -49,6 +49,9 @@ in networking = { inherit (config.swarselsystems) hostName; + hosts = { + "192.168.178.24" = [ "store.swarsel.win" ]; + }; wireless.iwd = { enable = true; settings = { diff --git a/modules/nixos/server/matrix.nix b/modules/nixos/server/matrix.nix index 1544331..24f4530 100644 --- a/modules/nixos/server/matrix.nix +++ b/modules/nixos/server/matrix.nix @@ -215,14 +215,14 @@ in address = "http://localhost:${builtins.toString servicePort}"; domain = serviceDomain; }; + database = { + type = "postgres"; + uri = "postgresql:///mautrix-whatsapp?host=/run/postgresql"; + }; appservice = { address = "http://localhost:${builtins.toString whatsappPort}"; hostname = "0.0.0.0"; port = whatsappPort; - database = { - type = "postgres"; - uri = "postgresql:///mautrix-whatsapp?host=/run/postgresql"; - }; }; bridge = { displayname_template = "{{or .FullName .PushName .JID}} (WA)"; @@ -262,14 +262,14 @@ in address = "http://localhost:${builtins.toString servicePort}"; domain = serviceDomain; }; + database = { + type = "postgres"; + uri = "postgresql:///mautrix-signal?host=/run/postgresql"; + }; appservice = { address = "http://localhost:${builtins.toString signalPort}"; hostname = "0.0.0.0"; port = signalPort; - database = { - type = "postgres"; - uri = "postgresql:///mautrix-signal?host=/run/postgresql"; - }; }; bridge = { displayname_template = "{{or .ContactName .ProfileName .PhoneNumber}} (Signal)"; diff --git a/modules/nixos/server/nextcloud.nix b/modules/nixos/server/nextcloud.nix index 13d671d..36765d2 100644 --- a/modules/nixos/server/nextcloud.nix +++ b/modules/nixos/server/nextcloud.nix @@ -37,7 +37,7 @@ in configureRedis = true; maxUploadSize = "4G"; extraApps = { - inherit (pkgs.nextcloud30Packages.apps) mail calendar contacts cospend phonetrack polls tasks sociallogin; + inherit (pkgs.nextcloud31Packages.apps) mail calendar contacts cospend phonetrack polls tasks sociallogin; }; extraAppsEnable = true; config = { @@ -64,6 +64,9 @@ in locations = { "/" = { proxyPass = "http://${serviceName}"; + extraConfig = '' + client_max_body_size 0; + ''; }; }; }; diff --git a/modules/nixos/server/spotifyd.nix b/modules/nixos/server/spotifyd.nix index ef4babd..fd12435 100644 --- a/modules/nixos/server/spotifyd.nix +++ b/modules/nixos/server/spotifyd.nix @@ -23,6 +23,13 @@ in services.pipewire.systemWide = true; + # https://github.com/Spotifyd/spotifyd/issues/1366 + networking.hosts."0.0.0.0" = [ "apresolve.spotify.com" ]; + + # hacky way to enable multi-session + # when another user connects, the service will crash and the new user will login + systemd.services.spotifyd.serviceConfig.RestartSec = lib.mkForce 1; + services.spotifyd = { enable = true; settings = { @@ -30,8 +37,11 @@ in dbus_type = "session"; use_mpris = false; device = "sysdefault:CARD=PCH"; + # device = "default"; device_name = "SwarselSpot"; - mixer = "alsa"; + # backend = "pulseaudio"; + backend = "alsa"; + # mixer = "alsa"; zeroconf_port = servicePort; }; };