summary refs log tree commit diff
path: root/host/Rory-nginx/services/containers/draupnir-linux-mint/container.nix
blob: 57a14bf02f6bf99cbacadaae54b67a44ce31bbf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  pkgs,
  lib,
  nixpkgs-Draupnir,
  ...
}:

{
  privateNetwork = true;
  autoStart = true;
  specialArgs = {
    inherit nixpkgs-Draupnir;
  };
  config =
    {
      lib,
      pkgs,
      ...
    }:
    {
      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.18";
  localAddress = "192.168.100.19";
  #hostAddress6 = "fc00::3";
  #localAddress6 = "fc00::4";

  bindMounts."draupnir-access-token" = {
    hostPath = "/etc/draupnir-linux-mint-access-token";
    mountPoint = "/etc/draupnir-access-token";
    isReadOnly = true;
  };
}