summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-23 12:22:01 +0200
committerRory& <root@rory.gay>2024-07-23 12:22:01 +0200
commitad9ef6349be40503729e3f7a4a00f22588d1b967 (patch)
treef1905f9f4a2b4fe4862348275218057de6945d0b /host
parentFix draupnir-cme, set correct mgmt room (diff)
downloadRory-Open-Architecture-ad9ef6349be40503729e3f7a4a00f22588d1b967.tar.xz
Pass through nixpkgs-Draupnir to container
Diffstat (limited to 'host')
-rwxr-xr-xhost/Rory-nginx/configuration.nix3
-rwxr-xr-xhost/Rory-nginx/services/containers/draupnir-cme/container.nix12
2 files changed, 13 insertions, 2 deletions
diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix
index fedf330..d7c9bcb 100755
--- a/host/Rory-nginx/configuration.nix
+++ b/host/Rory-nginx/configuration.nix
@@ -5,6 +5,7 @@
   grapevine,
   conduit,
   conduwuit,
+  nixpkgs-Draupnir,
   ...
 }:
 
@@ -75,7 +76,7 @@
   };
 
   containers."draupnir-cme" = import ./services/containers/draupnir-cme/container.nix {
-    inherit pkgs lib;
+    inherit pkgs lib nixpkgs-Draupnir;
   };
 
   system.stateVersion = "22.11"; # DO NOT EDIT!
diff --git a/host/Rory-nginx/services/containers/draupnir-cme/container.nix b/host/Rory-nginx/services/containers/draupnir-cme/container.nix
index 84bacc0..1f72a05 100755
--- a/host/Rory-nginx/services/containers/draupnir-cme/container.nix
+++ b/host/Rory-nginx/services/containers/draupnir-cme/container.nix
@@ -1,6 +1,7 @@
 {
   pkgs,
   lib,
+  nixpkgs-Draupnir,
   ...
 }:
 
@@ -8,6 +9,7 @@
   privateNetwork = true;
   autoStart = true;
   specialArgs = {
+    inherit nixpkgs-Draupnir;
   };
   config =
     {
@@ -16,7 +18,15 @@
       ...
     }:
     {
-      imports = [ ./root.nix ];
+      imports = [ 
+        ./root.nix
+        "${nixpkgs-Draupnir}/nixos/modules/services/matrix/draupnir.nix"
+      ];
+      nixpkgs.overlays = [
+        (final: prev: {
+          draupnir = nixpkgs-Draupnir.legacyPackages.${pkgs.stdenv.hostPlatform.system}.draupnir;
+        })
+      ];
     };
   hostAddress = "192.168.100.16";
   localAddress = "192.168.100.17";