first commit

This commit is contained in:
2025-11-27 07:33:05 +04:00
commit 3fc947a884
5 changed files with 68 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
result
result-*

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1763966396,
"narHash": "sha256-6eeL1YPcY1MV3DDStIDIdy/zZCDKgHdkCmsrLJFiZf0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5ae3b07d8d6527c42f17c876e404993199144b6a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

18
flake.nix Normal file
View File

@@ -0,0 +1,18 @@
{
description = "Мой flake с пакетами";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
packages.${system} = {
jellyfin-chromium = import ./pkgs/jellyfin-chromium {
inherit (pkgs) stdenv makeWrapper bash chromium lib;
};
};
};
}

View File

@@ -0,0 +1,17 @@
{ stdenv, makeWrapper, bash, chromium, lib }:
stdenv.mkDerivation {
pname = "jellyfin-chromium";
version = "1.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${./run.sh} $out/bin/$pname \
--set PATH ${lib.makeBinPath [ bash chromium ]}
'';
}

3
pkgs/jellyfin-chromium/run.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
chromium --app="$JELLYFIN_HOST_URL" --password-store=basic --disable-features=UseChromeOSDirectPrint --no-first-run --disable-translate --disable-infobars