2021-12-12 22:31:33 +01:00
|
|
|
{ nglib, camptules, nixpkgs }:
|
|
|
|
nglib.makeSystem {
|
2021-10-17 22:21:32 +02:00
|
|
|
system = "x86_64-linux";
|
|
|
|
name = "nixng-camptules";
|
2021-12-12 22:31:33 +01:00
|
|
|
inherit nixpkgs;
|
2021-10-17 22:21:32 +02:00
|
|
|
config = ({ pkgs, config, nglib, lib, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
camptules.nixngModule
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
dumb-init = {
|
|
|
|
enable = true;
|
|
|
|
type.services = {};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.camptules = {
|
|
|
|
enable = true;
|
2021-12-12 22:31:33 +01:00
|
|
|
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
|
|
|
|
'';
|
2021-10-17 22:21:32 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|