mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -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
|
let
|
||||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
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
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -13,7 +26,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.unstable.fluffychat-web
|
customFluffy
|
||||||
pkgs.unstable.element-web
|
pkgs.unstable.element-web
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -53,7 +66,7 @@ in
|
||||||
reverse_proxy unix//run/tuwunel/tuwunel.sock
|
reverse_proxy unix//run/tuwunel/tuwunel.sock
|
||||||
'';
|
'';
|
||||||
"fl.psychal.link".extraConfig = ''
|
"fl.psychal.link".extraConfig = ''
|
||||||
root * ${pkgs.unstable.fluffychat-web}
|
root * ${customFluffy}
|
||||||
file_server
|
file_server
|
||||||
'';
|
'';
|
||||||
"em.psychal.link".extraConfig = ''
|
"em.psychal.link".extraConfig = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue