feat: init deluge service
This commit is contained in:
parent
dc8a3d5dd1
commit
14ee0dd0c5
5 changed files with 33 additions and 6 deletions
|
|
@ -19,5 +19,5 @@
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,16 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./jellyfin
|
./jellyfin
|
||||||
|
./deluge
|
||||||
];
|
];
|
||||||
|
|
||||||
options.systemModules.services = {
|
options.systemModules.services = {
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
enable = lib.mkEnableOption "Enable jellyfin service module";
|
enable = lib.mkEnableOption "Enable jellyfin service module";
|
||||||
};
|
};
|
||||||
|
deluge = {
|
||||||
|
enable = lib.mkEnableOption "Enable deluge service module";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
22
system/modules/services/deluge/default.nix
Normal file
22
system/modules/services/deluge/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.systemModules.services.deluge;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.deluge = {
|
||||||
|
user = "deluge";
|
||||||
|
group = "deluge";
|
||||||
|
enable = true;
|
||||||
|
web.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# fileSystems."/media/Downloads" = {
|
||||||
|
# device = "/dev/disk/by-label/torrents";
|
||||||
|
# fsType = "ext4";
|
||||||
|
# options = [ "rw" "uid=1000" "gid=991" "umask=002" ];
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -23,10 +23,10 @@ in
|
||||||
};
|
};
|
||||||
users.groups.media = {};
|
users.groups.media = {};
|
||||||
|
|
||||||
fileSystems."/media" = {
|
# fileSystems."/media" = {
|
||||||
device = "/dev/disk/by-label/ooksmedia";
|
# device = "/dev/disk/by-label/ooksmedia";
|
||||||
fsType = "ntfs";
|
# fsType = "ntfs";
|
||||||
options = [ "rw" "uid=1000" "gid=991" "umask=002" ];
|
# options = [ "rw" "uid=1000" "gid=991" "umask=002" ];
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ in
|
||||||
systemModules = {
|
systemModules = {
|
||||||
services = {
|
services = {
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
|
deluge.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue