cluster/containers/camptules.nix
main baa431aea4
Update flake.lock and remove yt-dlp override
Signed-off-by: main <magic_rb@redalder.org>
2022-07-30 23:40:51 +02:00

37 lines
957 B
Nix

{ nglib, camptules, nixpkgs }:
nglib.makeSystem {
system = "x86_64-linux";
name = "nixng-camptules";
inherit nixpkgs;
config = ({ pkgs, config, nglib, lib, ... }:
{
imports = [
camptules.nixngModule
];
config = {
dumb-init = {
enable = true;
type.services = {};
};
services.camptules = {
enable = true;
package =
let
youtube-dl = pkgs.writeShellScriptBin "youtube-dl"
''
${pkgs.yt-dlp}/bin/yt-dlp "$@"
'';
in
pkgs.writeShellScriptBin "camptules"
''
export PATH=$PATH:${youtube-dl}/bin:${pkgs.ffmpeg}/bin
cd /secrets
${lib.trace camptules.defaultPackage."x86_64-linux".outPath camptules.defaultPackage."x86_64-linux"}/bin/camptules
'';
};
};
});
}