mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
set default fluffy homeserver to psychal
This commit is contained in:
parent
6152cf2575
commit
05a3e49c48
1 changed files with 15 additions and 2 deletions
|
|
@ -6,6 +6,19 @@
|
|||
}:
|
||||
let
|
||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
||||
fluffyconfig = pkgs.writeText "fluffychat-config.json" (
|
||||
builtins.toJSON {
|
||||
defaultHomeserver = "psychal.link";
|
||||
}
|
||||
);
|
||||
customFluffy = pkgs.unstable.fluffychat-web.overrideAttrs (
|
||||
final: prev: {
|
||||
|
||||
postInstall = ''
|
||||
cp ${fluffyconfig} $out/config.json
|
||||
'';
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -13,7 +26,7 @@ in
|
|||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.unstable.fluffychat-web
|
||||
customFluffy
|
||||
pkgs.unstable.element-web
|
||||
];
|
||||
|
||||
|
|
@ -53,7 +66,7 @@ in
|
|||
reverse_proxy unix//run/tuwunel/tuwunel.sock
|
||||
'';
|
||||
"fl.psychal.link".extraConfig = ''
|
||||
root * ${pkgs.unstable.fluffychat-web}
|
||||
root * ${customFluffy}
|
||||
file_server
|
||||
'';
|
||||
"em.psychal.link".extraConfig = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue