cluster/containers/camptules.nix

36 lines
928 B
Nix
Raw Normal View History

{ 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-dlc = pkgs.writeShellScriptBin "youtube-dlc"
''
${pkgs.youtube-dl}/bin/youtube-dl "$@"
'';
in
pkgs.writeShellScriptBin "camptules"
''
export PATH=$PATH:${youtube-dlc}/bin:${pkgs.ffmpeg}/bin
${lib.trace camptules.defaultPackage."x86_64-linux".outPath camptules.defaultPackage."x86_64-linux"}/bin/camptules
'';
};
};
});
}