Initial commit

This commit is contained in:
2025-08-20 18:24:02 +03:00
commit 2dec42d487
116 changed files with 6591 additions and 0 deletions

29
modules/desktop/cinny.nix Executable file
View File

@@ -0,0 +1,29 @@
{ lib, pkgs, ... }: {
services.caddy = {
enable = lib.mkDefault true;
virtualHosts."http://localhost:1989".extraConfig = ''
encode zstd gzip
root * ${pkgs.cinny}
file_server
@index {
not path /index.html
not path /public/*
not path /assets/*
not path /config.json
not path /manifest.json
not path /pdf.worker.min.js
not path /olm.wasm
not path /sw.js
path /*
}
rewrite /*/olm.wasm /olm.wasm
rewrite @index /index.html
'';
};
}