Skip to content

Commit dc52fc6

Browse files
committedJan 31, 2018
aria2 (nixos): actually load the module
Fixes #33991
1 parent 5097e84 commit dc52fc6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎nixos/modules/module-list.nix

+1
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@
425425
./services/network-filesystems/yandex-disk.nix
426426
./services/network-filesystems/xtreemfs.nix
427427
./services/networking/amuled.nix
428+
./services/networking/aria2.nix
428429
./services/networking/asterisk.nix
429430
./services/networking/atftpd.nix
430431
./services/networking/avahi-daemon.nix

‎nixos/modules/services/networking/aria2.nix

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ let
1010
settingsDir = "${homeDir}";
1111
sessionFile = "${homeDir}/aria2.session";
1212
downloadDir = "${homeDir}/Downloads";
13-
13+
1414
rangesToStringList = map (x: builtins.toString x.from +"-"+ builtins.toString x.to);
15-
15+
1616
settingsFile = pkgs.writeText "aria2.conf"
1717
''
1818
dir=${cfg.downloadDir}
@@ -110,12 +110,12 @@ in
110110
mkdir -m 0770 -p "${homeDir}"
111111
chown aria2:aria2 "${homeDir}"
112112
if [[ ! -d "${config.services.aria2.downloadDir}" ]]
113-
then
113+
then
114114
mkdir -m 0770 -p "${config.services.aria2.downloadDir}"
115115
chown aria2:aria2 "${config.services.aria2.downloadDir}"
116116
fi
117117
if [[ ! -e "${sessionFile}" ]]
118-
then
118+
then
119119
touch "${sessionFile}"
120120
chown aria2:aria2 "${sessionFile}"
121121
fi
@@ -132,4 +132,4 @@ in
132132
};
133133
};
134134
};
135-
}
135+
}

0 commit comments

Comments
 (0)
Please sign in to comment.