Wayland touchpad options + Pinea config

Change-Id: I74994cf455b7dbd79a08ba41fa6a0922bbfaf670

Author: PineaFan <pineafan@clicks.codes>
Change-Id: I8c893e504671c6894d095b12f522c59d34656307
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/845
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: PineaFan <pineafan@clicks.codes>
diff --git a/systems/x86_64-linux/saurosuchus/audio/default.nix b/systems/x86_64-linux/saurosuchus/audio/default.nix
new file mode 100644
index 0000000..eab8f48
--- /dev/null
+++ b/systems/x86_64-linux/saurosuchus/audio/default.nix
@@ -0,0 +1,51 @@
+{...}: {
+  services.pipewire.extraConfig.pipewire."monitors" = {
+    "context.modules" = [
+      {
+        name = "libpipewire-module-combine-stream";
+        args = {
+          "combine.mode" = "sink";
+          "node.name" = "monitors";
+          "node.description" = "Monitors Auto";
+          "combine.latency-compensate" = false;
+          "combine.props" = {
+            "audio.position" = [ "FL" "FR" ];
+          };
+          "stream.props" = {
+            "stream.dont-remix" = true;
+          };
+          "stream.rules" = [
+            {
+              matches = [
+                {
+                  "media.class" = "Audio/Sink";
+                  "node.name" = "alsa_output.pci-0000_0a_00.1.pro-output-7";
+                }
+              ];
+              actions = {
+                create-stream = {
+                  "audio.position" = [ "AUX0" "AUX1" ];
+                  "combine.audio.position" = [ "FL" ];
+                };
+              };
+            }
+            {
+              matches = [
+                {
+                  "media.class" = "Audio/Sink";
+                  "node.name" = "alsa_output.pci-0000_0a_00.1.pro-output-9";
+                }
+              ];
+              actions = {
+                create-stream = {
+                  "audio.position" = [ "AUX0" "AUX1" ];
+                  "combine.audio.position" = [ "FR" ];
+                };
+              };
+            }
+          ];
+        };
+      }
+    ];
+  };
+}
diff --git a/systems/x86_64-linux/saurosuchus/default.nix b/systems/x86_64-linux/saurosuchus/default.nix
index 6341e28..a4ce57c 100644
--- a/systems/x86_64-linux/saurosuchus/default.nix
+++ b/systems/x86_64-linux/saurosuchus/default.nix
@@ -1,6 +1,7 @@
-{ ... }:
+{ pkgs, ... }:
 {
   imports = [
+    ./audio
     ./console
     ./compositor
     ./games
@@ -13,4 +14,17 @@
     ./time
     ./yubikey
   ];
+
+  config.services.postgresql = {
+    enable = true;
+    ensureDatabases = [ "graphite" "development" ];
+    enableTCPIP = true;
+    authentication = pkgs.lib.mkOverride 10 ''
+      #type database DBuser auth-method
+      local all all trust
+
+      host all all 127.0.0.1/32 trust
+      host all all ::1/128 trust
+    '';
+  };
 }