mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 09:50:33 +01:00
nginx shenanigans
This commit is contained in:
parent
905652dd4a
commit
1b1893b267
|
@ -6,6 +6,9 @@
|
|||
...
|
||||
}: {
|
||||
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
|
||||
networking.hosts = {
|
||||
"192.168.178.35" = [ "jellyfin.fritz.box" "grafana.fritz.box" ];
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
../../../common
|
||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||
../../gc.nix
|
||||
./jellyfin.nix
|
||||
|
||||
./monitoring.nix
|
||||
];
|
||||
|
@ -124,8 +125,8 @@
|
|||
|
||||
networking.wireguard.enable = true;
|
||||
|
||||
services.jellyfin.enable = true;
|
||||
services.jellyfin.user = "xqtc";
|
||||
# services.jellyfin.enable = true;
|
||||
# services.jellyfin.user = "xqtc";
|
||||
|
||||
#services.slskd = {
|
||||
# enable = true;
|
||||
|
@ -146,6 +147,7 @@
|
|||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
services.nginx.enable = true;
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
|
|
14
hosts/x86_64-linux/seraphim/jellyfin.nix
Normal file
14
hosts/x86_64-linux/seraphim/jellyfin.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{config, pkgs, lib, ...}:
|
||||
{
|
||||
services.jellyfin.enable = true;
|
||||
services.jellyfin.user = "xqtc";
|
||||
services.nginx.virtualHosts."jellyfin.fritz.box" = {
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
'';
|
||||
proxyPass = "http://127.0.0.1:8096";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
services.grafana = {
|
||||
enable = true;
|
||||
settings.server = {
|
||||
domain = "grafana.fritz.box";
|
||||
port = 2342;
|
||||
addr = "127.0.0.1";
|
||||
};
|
||||
|
@ -34,7 +35,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue