summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-06-22 04:46:02 +0200
committerRory& <root@rory.gay>2024-07-04 14:45:02 +0200
commit2c106e7b604c388ddc7578c42998c17403f37620 (patch)
tree8c3486f7bfff4c6f0937919d96cca77d0d1cfeee /host
parentBunch of changes (diff)
downloadRory-Open-Architecture-2c106e7b604c388ddc7578c42998c17403f37620.tar.xz
Desktop updates
Diffstat (limited to 'host')
-rw-r--r--host/Rory-desktop/configuration.nix3
-rw-r--r--host/Rory-desktop/optional/gui/wayland.nix14
-rwxr-xr-xhost/Rory-nginx/configuration.nix10
-rwxr-xr-xhost/Rory-nginx/services/matrix/conduit.nix17
4 files changed, 17 insertions, 27 deletions
diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix
index fddff11..28a3b7f 100644
--- a/host/Rory-desktop/configuration.nix
+++ b/host/Rory-desktop/configuration.nix
@@ -1,10 +1,11 @@
-{ config, pkgs, lib, nhekoSrc, mtxclientSrc, ... }:
+args@{ config, pkgs, lib, nhekoSrc, mtxclientSrc, ... }:
 
 {
   imports =
     [
       # base imports
       ../../modules/base-client.nix
+      # (import ../../modules/base-secrets.nix {  path = "/home/rory/.config/sops/config.yaml"; })
       ../../modules/packages/vim.nix
 #      ../../modules/environments/home.nix
       ../../modules/software-templates/profilers.nix
diff --git a/host/Rory-desktop/optional/gui/wayland.nix b/host/Rory-desktop/optional/gui/wayland.nix
index e0394d3..c923007 100644
--- a/host/Rory-desktop/optional/gui/wayland.nix
+++ b/host/Rory-desktop/optional/gui/wayland.nix
@@ -15,14 +15,16 @@
       # Fix for some Java AWT applications (e.g. Android Studio),
       # use this if they aren't displayed properly:
       export _JAVA_AWT_WM_NONREPARENTING=1
-      (
-        sleep 5
-        ${pkgs.swaybg}/bin/swaybg -i ${../../../../modules/users/Rory/wallpaper.webp}
+      cp ${../../../../modules/users/Rory/wallpaper.webp} ~/.cache/wallpaper.webp
+      
+    '';
+    #(
+        #sleep 5
+        #${pkgs.swaybg}/bin/swaybg -i ${../../../../modules/users/Rory/wallpaper.webp}
         #$ {pkgs.swayidle}/bin/swayidle -w timeout 300 'swaylock -f -i ${../../../../modules/users/Rory/wallpaper.webp}' 'swaymsg "output * dpms off"'
         #$ {pkgs.swaylock}/bin/swaylock -f -i ${../../../../modules/users/Rory/wallpaper.webp}
-        ${pkgs.waybar}/bin/waybar
-      ) &
-    '';
+        #${pkgs.waybar}/bin/waybar
+      #) &
 
     extraPackages = with pkgs; [
       swaybg
diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix
index 995e5f2..df9936b 100755
--- a/host/Rory-nginx/configuration.nix
+++ b/host/Rory-nginx/configuration.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, lib, conduit, conduit-vanilla, ... }:
+{ config, pkgs, lib, grapevine, conduit, ... }:
 
 {
   imports =
@@ -38,16 +38,18 @@
   };
 
   containers."pluralcontactbotpoc" = import ./services/containers/pluralcontactbotpoc/container.nix {
-    inherit pkgs lib conduit;
+    inherit pkgs lib;
+    conduit = grapevine;
   };
 
   containers."matrixunittests" = import ./services/containers/matrixunittests/container.nix {
-    inherit pkgs lib conduit;
+    inherit pkgs lib;
+    conduit = grapevine;
   };
 
   containers."matrixunittests-conduit" = import ./services/containers/matrixunittests-conduit/container.nix {
     inherit pkgs lib;
-    conduit = conduit-vanilla;
+    conduit = conduit;
   };
 
   system.stateVersion = "22.11"; # DO NOT EDIT!
diff --git a/host/Rory-nginx/services/matrix/conduit.nix b/host/Rory-nginx/services/matrix/conduit.nix
index e425cc4..eb830ab 100755
--- a/host/Rory-nginx/services/matrix/conduit.nix
+++ b/host/Rory-nginx/services/matrix/conduit.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, lib, conduit, ... }:
+{ config, pkgs, lib, ... }:
 
 {
   services.grapevine = {
@@ -60,20 +60,5 @@
       #log = "debug";
     };
   };
-#  systemd.services.matrix-conduit-reg-token = {
-#      description = "Random registration token for Conduit.";
-#      before = ["grapevine.service"]; # So the registration can be used by Conduit.
-#      after = ["matrix-synapse-reg-token.service"];
-#
-#      script = ''
-#        mkdir -p /run/systemd/system/conduit.service.d
-#        echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$(cat /var/lib/matrix-synapse/registration_shared_secret.txt)\" > /run/systemd/system/grapevine.service.d/override.conf
-#        systemctl daemon-reload'';
-#      serviceConfig = {
-#        User = "root";
-#        Group = "root";
-#      };
-#    };
-
 }