From 7e4b0fe70d4589c0f55c27afcb16c0ac241ba2d1 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Fri, 4 Oct 2024 10:20:27 -0400 Subject: [PATCH] jellyfin fix --- .gitattributes | 1 + configuration.nix | 22 +++++++++++++++++++++- flake.lock | 6 +++--- secrets/Jellyfin.Plugin.ListenBrainz.xml | Bin 0 -> 1410 bytes services/jellyfin.nix | 7 +++++++ 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 secrets/Jellyfin.Plugin.ListenBrainz.xml diff --git a/.gitattributes b/.gitattributes index 4c9ff84..021d814 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/configuration.nix b/configuration.nix index 2dc3981..9ea7519 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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" diff --git a/flake.lock b/flake.lock index 5bdf9ae..673af12 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/secrets/Jellyfin.Plugin.ListenBrainz.xml b/secrets/Jellyfin.Plugin.ListenBrainz.xml new file mode 100644 index 0000000000000000000000000000000000000000..f5a3780e9f55ea9b95f3623d1fea60cac62d427d GIT binary patch literal 1410 zcmZQ@_Y83kiVO&0NXUpfQ=WURgM(`=`{o@Fx5nuFJG?!CIXHmnbdkb~tJQATIK2&* z2BcJ)u{w;eyY<~Gt{83=2dN#>+n=bb5m72IZXMER8NTHH5xelo{f8ozV_gw z#8szc@1MD9uh_hoYOh-+w{a%dx^~8;hRpXIBqzj_Y43HY&1syuyo>Yn)fclrahhap zxbSY*fAg&@8{K_dH1=&U=uz3m@Mt4L!o-iSd$LQOSIz#lV}Zr1qyJyc*idkfS(J6x zLBGg@IdQ!lWuH4=nQXKv40^cql;juIr8gez{dL@WU)kEDYd0zEVLlgn=6JBvni*{; zH{aN@=jxN1tqL5!HY7-&Wc>MA^kJpKmEz~w&Y^mV^A}uC6A7%!%s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