1
0
Fork 0
forked from pub-solar/infra

matrix: init stickerpicker

This commit is contained in:
teutat3s 2024-04-30 00:52:07 +02:00
parent 9a3a00d25f
commit ff9703e542
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1
6 changed files with 73 additions and 0 deletions

View file

@ -71,6 +71,30 @@
"type": "github"
}
},
"element-stickers": {
"inputs": {
"maunium-stickerpicker": [
"maunium-stickerpicker"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1714430716,
"narHash": "sha256-+WmgGbONe5u2wpvkUC5wNhYnrE6eziIv3Liq4pv7jro=",
"ref": "main",
"rev": "85716a9e30fb6fae47336ed0cae3d1425c80f17c",
"revCount": 6,
"type": "git",
"url": "https://git.pub.solar/pub-solar/maunium-stickerpicker-nix"
},
"original": {
"ref": "main",
"type": "git",
"url": "https://git.pub.solar/pub-solar/maunium-stickerpicker-nix"
}
},
"element-themes": {
"flake": false,
"locked": {
@ -217,6 +241,25 @@
"url": "https://git.pub.solar/pub-solar/keycloak-theme"
}
},
"maunium-stickerpicker": {
"flake": false,
"locked": {
"dir": "web",
"lastModified": 1668509918,
"narHash": "sha256-5Kbok9vJIlOti+ikpJXv2skdADhQQTjX5mVmBTM0wGU=",
"owner": "maunium",
"repo": "stickerpicker",
"rev": "f59406a47a6778cd402e656ffb64f667335f665a",
"type": "github"
},
"original": {
"dir": "web",
"owner": "maunium",
"ref": "master",
"repo": "stickerpicker",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
@ -301,10 +344,12 @@
"inputs": {
"agenix": "agenix",
"deploy-rs": "deploy-rs",
"element-stickers": "element-stickers",
"element-themes": "element-themes",
"flake-parts": "flake-parts",
"home-manager": "home-manager",
"keycloak-theme-pub-solar": "keycloak-theme-pub-solar",
"maunium-stickerpicker": "maunium-stickerpicker",
"nix-darwin": "nix-darwin",
"nixos-flake": "nixos-flake",
"nixpkgs": "nixpkgs",

View file

@ -31,6 +31,13 @@
element-themes.url = "github:aaronraimist/element-themes/master";
element-themes.flake = false;
maunium-stickerpicker.url = "github:maunium/stickerpicker?ref=master&dir=web";
maunium-stickerpicker.flake = false;
element-stickers.url = "git+https://git.pub.solar/pub-solar/maunium-stickerpicker-nix?ref=main";
element-stickers.inputs.maunium-stickerpicker.follows = "maunium-stickerpicker";
element-stickers.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, ... }:

View file

@ -76,6 +76,12 @@ in
};
};
"stickers.chat.pub.solar" = {
forceSSL = true;
enableACME = true;
root = pkgs.element-stickerpicker;
};
"matrix.pub.solar" = {
root = "/dev/null";

View file

@ -15,6 +15,7 @@
{
forgejo-runner = unstable.forgejo-runner;
element-themes = prev.callPackage ./pkgs/element-themes { inherit (inputs) element-themes; };
element-stickerpicker = prev.callPackage ./pkgs/element-stickerpicker { inherit (inputs) element-stickers maunium-stickerpicker; };
})
];
});

View file

@ -0,0 +1,9 @@
{ stdenvNoCC, element-stickers, maunium-stickerpicker }:
stdenvNoCC.mkDerivation {
src = maunium-stickerpicker;
name = "element-stickers";
buildPhase = ''
mv web $out/
cp ${element-stickers}/uploaded-packs/*.json $out/packs/
'';
}

View file

@ -100,6 +100,11 @@ resource "namecheap_domain_records" "pub-solar" {
type = "CNAME"
address = "nachtigall.pub.solar."
}
record {
hostname = "stickers.chat"
type = "CNAME"
address = "nachtigall.pub.solar."
}
record {
hostname = "wiki"
type = "CNAME"