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
9b156d2ed1
commit
6c69c0b9db
2 changed files with 7 additions and 1 deletions
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
let
|
||||
cfg = config.services.c2cscrape;
|
||||
# Import the package relative to this file
|
||||
c2cscrapePkg = pkgs.python3Packages.callPackage ../pkgs/c2cscrape/default.nix {
|
||||
qbittorrentApi = pkgs.python3Packages.qbittorrent-api;
|
||||
pythonDotenv = pkgs.python3Packages.python-dotenv;
|
||||
|
|
@ -28,6 +27,11 @@ in
|
|||
default = "c2cscrape";
|
||||
description = "user to run as";
|
||||
};
|
||||
|
||||
environmentFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = "Path to an .env file ";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
@ -42,6 +46,7 @@ in
|
|||
User = cfg.user;
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
Environment = "PYTHONUNBUFFERED=1";
|
||||
EnvironmentFile = cfg.environmentFile;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
enable = true;
|
||||
dataDir = "/media/storage/media/books/audio/podcasts/C2C";
|
||||
user = "death916";
|
||||
environmentFile = "/etc/nixos/secrets/c2c.env";
|
||||
};
|
||||
# virtualisation.incus.enable = true;
|
||||
services.qbittorrent = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue