feat: init deluge service
This commit is contained in:
parent
dc8a3d5dd1
commit
14ee0dd0c5
5 changed files with 33 additions and 6 deletions
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" ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue