jellyfin fix

This commit is contained in:
Simon Gardling 2024-10-04 10:20:27 -04:00
parent 0d94348de3
commit 7e4b0fe70d
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
5 changed files with 32 additions and 4 deletions

1
.gitattributes vendored
View File

@ -2,3 +2,4 @@ secrets/murmur_password filter=git-crypt diff=git-crypt
secrets/hashedPass filter=git-crypt diff=git-crypt
secrets/mullvad.nix filter=git-crypt diff=git-crypt
secrets/minecraft-whitelist.nix filter=git-crypt diff=git-crypt
secrets/Jellyfin.Plugin.ListenBrainz.xml filter=git-crypt diff=git-crypt

View File

@ -62,6 +62,11 @@
compressor = "zstd";
compressorArgs = [ "-19" ];
};
kernelModules = [
# kernel module for case fan control
"nct6775"
];
};
environment.etc = {
@ -123,7 +128,7 @@
(pkgs.writeScriptBin "mc-attach" ''
#!/bin/sh
tmux -S /run/minecraft/${service_configs.minecraft.server_name}.sock attach
${pkgs.tmux}/bin/tmux -S /run/minecraft/${service_configs.minecraft.server_name}.sock attach
'')
(pkgs.writeScriptBin "disk-smart-test" ''
@ -178,6 +183,21 @@
services.udev.packages = [ pkgs.openrgb-with-all-plugins ];
hardware.i2c.enable = true;
hardware.fancontrol = {
enable = true;
config = ''
INTERVAL=10
DEVPATH=hwmon0=devices/pci0000:00/0000:00:18.3 hwmon1=devices/platform/nct6775.656
DEVNAME=hwmon0=zenpower hwmon1=nct6798
FCTEMPS=hwmon1/pwm4=hwmon0/temp1_input hwmon1/pwm2=hwmon0/temp1_input
FCFANS=hwmon1/pwm4=hwmon1/fan4_input hwmon1/pwm2=hwmon1/fan2_input
MINTEMP=hwmon1/pwm4=20 hwmon1/pwm2=20
MAXTEMP=hwmon1/pwm4=70 hwmon1/pwm2=70
MINSTART=hwmon1/pwm4=150 hwmon1/pwm2=150
MINSTOP=hwmon1/pwm4=100 hwmon1/pwm2=100
'';
};
networking = {
nameservers = [
"1.1.1.1"

6
flake.lock generated
View File

@ -43,11 +43,11 @@
]
},
"locked": {
"lastModified": 1727747697,
"narHash": "sha256-bNZ4ykMpxyTLrPsctiDwe5d69vafvIbNTbzbWfd2CH4=",
"lastModified": 1728006367,
"narHash": "sha256-Bdf5twzinaacnn1JBogvxq0S8Ytm+25mWD2cfJ7fvpo=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
"rev": "30af58cedcc444da772a73286e16287f94a9fef1",
"rev": "a3a7888df1b87bdababfd9f0b00b574ee4c2e204",
"type": "github"
},
"original": {

Binary file not shown.

View File

@ -2,6 +2,7 @@
pkgs,
config,
service_configs,
lib,
...
}:
{
@ -26,4 +27,10 @@
"video"
"render"
];
# https://github.com/lyarenei/jellyfin-plugin-listenbrainz/issues/107
system.activationScripts.jellyfinListenBrain.text = ''
cp -v /etc/nixos/secrets/Jellyfin.Plugin.ListenBrainz.xml ${service_configs.jellyfin.data_dir}/plugins/configurations/
chown ${config.services.jellyfin.user}:${config.services.jellyfin.group} ${service_configs.jellyfin.data_dir}/plugins/configurations/Jellyfin.Plugin.ListenBrainz.xml
'';
}