chore: initial commit

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2023-11-05 04:53:31 -03:00
commit d3948c7910
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
56 changed files with 8996 additions and 0 deletions

18
services/caddy.nix Normal file
View file

@ -0,0 +1,18 @@
{ ... }:
{
services.caddy = {
enable = true;
virtualHosts."thewizard.link".extraConfig = ''
redir https://github.com/wizardlink/
header Strict-Transport-Security "max-age=63072000; includeSubDomains"
'';
virtualHosts."jellyfin.thewizard.link".extraConfig = ''
encode gzip
reverse_proxy 127.0.0.1:8096 {
flush_interval -1
}
'';
};
}

18
services/jellyfin.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, ... }:
{
services.jellyfin = {
enable = true;
openFirewall = true;
package = pkgs.jellyfin.override {
jellyfin-web = pkgs.jellyfin-web.overrideAttrs (oldAttrs: {
patches = [
(pkgs.fetchpatch {
url = "https://github.com/jellyfin/jellyfin-web/compare/v${oldAttrs.version}...ConfusedPolarBear:jellyfin-web:intros.diff";
hash = "sha256-qm4N4wMUFc4I53oQJUK1Six0cahVYz3J+FgO2vvSvXM=";
})
];
});
};
};
}