Compare commits
2 commits
21fa41876a
...
390a60f598
Author | SHA1 | Date | |
---|---|---|---|
|
390a60f598 | ||
|
0ef661aae7 |
|
@ -34,6 +34,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
qenya.services.audiobookshelf = {
|
||||||
|
enable = true;
|
||||||
|
domain = "audiobookshelf.qenya.tel";
|
||||||
|
};
|
||||||
qenya.services.jellyfin = {
|
qenya.services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "jellyfin.qenya.tel";
|
domain = "jellyfin.qenya.tel";
|
||||||
|
|
|
@ -76,9 +76,11 @@
|
||||||
"rpool_albion/data" = { mountpoint = "none"; };
|
"rpool_albion/data" = { mountpoint = "none"; };
|
||||||
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
|
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
|
||||||
"rpool_albion/state" = { mountpoint = "none"; };
|
"rpool_albion/state" = { mountpoint = "none"; };
|
||||||
|
"rpool_albion/state/audiobookshelf" = { mountpoint = "/var/lib/audiobookshelf"; };
|
||||||
"rpool_albion/state/jellyfin" = { mountpoint = "/var/lib/jellyfin"; };
|
"rpool_albion/state/jellyfin" = { mountpoint = "/var/lib/jellyfin"; };
|
||||||
"rpool_albion/state/navidrome" = { mountpoint = "/var/lib/navidrome"; };
|
"rpool_albion/state/navidrome" = { mountpoint = "/var/lib/navidrome"; };
|
||||||
"rpool_albion/srv" = { mountpoint = "none"; };
|
"rpool_albion/srv" = { mountpoint = "none"; };
|
||||||
|
"rpool_albion/srv/audiobookshelf" = { mountpoint = "/srv/audiobookshelf"; };
|
||||||
"rpool_albion/srv/ftp" = { mountpoint = "/srv/ftp"; };
|
"rpool_albion/srv/ftp" = { mountpoint = "/srv/ftp"; };
|
||||||
"rpool_albion/srv/jellyfin" = { mountpoint = "/srv/jellyfin"; };
|
"rpool_albion/srv/jellyfin" = { mountpoint = "/srv/jellyfin"; };
|
||||||
"rpool_albion/srv/music" = { mountpoint = "/srv/music"; };
|
"rpool_albion/srv/music" = { mountpoint = "/srv/music"; };
|
||||||
|
|
|
@ -7,5 +7,23 @@
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
hardware.nvidia.modesetting.enable = true; # this defaults to true from 24.11
|
hardware.nvidia.modesetting.enable = true; # this defaults to true from 24.11
|
||||||
|
|
||||||
|
# # Downgrade to driver version 535 as 550 has problems with Wayland
|
||||||
|
# hardware.nvidia.package =
|
||||||
|
# let
|
||||||
|
# rcu_patch = pkgs.fetchpatch {
|
||||||
|
# url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
||||||
|
# hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
||||||
|
# };
|
||||||
|
# in
|
||||||
|
# config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
|
# version = "535.154.05";
|
||||||
|
# sha256_64bit = "sha256-fpUGXKprgt6SYRDxSCemGXLrEsIA6GOinp+0eGbqqJg=";
|
||||||
|
# sha256_aarch64 = "sha256-G0/GiObf/BZMkzzET8HQjdIcvCSqB1uhsinro2HLK9k=";
|
||||||
|
# openSha256 = "sha256-wvRdHguGLxS0mR06P5Qi++pDJBCF8pJ8hr4T8O6TJIo=";
|
||||||
|
# settingsSha256 = "sha256-9wqoDEWY4I7weWW05F4igj1Gj9wjHsREFMztfEmqm10=";
|
||||||
|
# persistencedSha256 = "sha256-d0Q3Lk80JqkS1B54Mahu2yY/WocOqFFbZVBh+ToGhaE=";
|
||||||
|
# patches = [ rcu_patch ];
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
32
services/audiobookshelf.nix
Normal file
32
services/audiobookshelf.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.qenya.services.audiobookshelf;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.qenya.services.audiobookshelf = {
|
||||||
|
enable = mkEnableOption "Audiobookshelf";
|
||||||
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
${cfg.domain} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:8234/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
services.audiobookshelf.enable = true;
|
||||||
|
services.audiobookshelf.port = 8234;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./actual.nix
|
./actual.nix
|
||||||
|
./audiobookshelf.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./navidrome.nix
|
./navidrome.nix
|
||||||
|
|
Loading…
Reference in a new issue