mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
c2c update
This commit is contained in:
parent
bd67fceb37
commit
9b156d2ed1
2 changed files with 9 additions and 3 deletions
|
|
@ -8,7 +8,10 @@
|
|||
let
|
||||
cfg = config.services.c2cscrape;
|
||||
# Import the package relative to this file
|
||||
c2cscrapePkg = pkgs.python3Packages.callPackage ../pkgs/c2cscrape/default.nix { };
|
||||
c2cscrapePkg = pkgs.python3Packages.callPackage ../pkgs/c2cscrape/default.nix {
|
||||
qbittorrentApi = pkgs.python3Packages.qbittorrent-api;
|
||||
pythonDotenv = pkgs.python3Packages.python-dotenv;
|
||||
};
|
||||
in
|
||||
{
|
||||
options.services.c2cscrape = {
|
||||
|
|
@ -38,6 +41,7 @@ in
|
|||
ExecStart = "${c2cscrapePkg}/bin/c2cscrape";
|
||||
User = cfg.user;
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
Environment = "PYTHONUNBUFFERED=1";
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
lxml,
|
||||
feedgen,
|
||||
pytz,
|
||||
qbittorrent-api,
|
||||
qbittorrentApi,
|
||||
pythonDotenv,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
|
@ -29,7 +30,8 @@ buildPythonPackage rec {
|
|||
lxml
|
||||
feedgen
|
||||
pytz
|
||||
qbittorrent-api
|
||||
qbittorrentApi
|
||||
pythonDotenv
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue