1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-10 02:30:29 +01:00

add flex, remove calorie-tracker, minor changes

This commit is contained in:
TheGeneralist 2026-03-09 18:24:47 +01:00
parent 8659b0fba3
commit 6e1e8c1b8f
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
10 changed files with 53 additions and 387 deletions

View file

@ -8,14 +8,38 @@ let
quic = true;
useACMEHost = domain;
};
plexDebUrl = "http://thegeneralist01.com/plexmediaserver_1.43.0.10492-121068a07_arm64.deb";
plexDebSha256 = "1fkh09b46q70kicjprxf0v507idhg2jh3pk97nhbxj1jagkhgck2";
plex = pkgs.stdenv.mkDerivation {
pname = "plexmediaserver";
version = "1.43.0.10492-121068a07";
src = pkgs.fetchurl {
url = plexDebUrl;
sha256 = plexDebSha256;
};
nativeBuildInputs = [ pkgs.dpkg ];
unpackPhase = ''
runHook preUnpack
dpkg-deb -x $src .
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r usr/* $out/
runHook postInstall
'';
};
in
{
environment.systemPackages = with pkgs; [
plex
];
services.plex = {
enable = true;
package = plex;
# openFirewall = true;
};