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:
parent
8659b0fba3
commit
6e1e8c1b8f
10 changed files with 53 additions and 387 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue