File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 425
425
./services/network-filesystems/yandex-disk.nix
426
426
./services/network-filesystems/xtreemfs.nix
427
427
./services/networking/amuled.nix
428
+ ./services/networking/aria2.nix
428
429
./services/networking/asterisk.nix
429
430
./services/networking/atftpd.nix
430
431
./services/networking/avahi-daemon.nix
Original file line number Diff line number Diff line change 10
10
settingsDir = "${ homeDir } " ;
11
11
sessionFile = "${ homeDir } /aria2.session" ;
12
12
downloadDir = "${ homeDir } /Downloads" ;
13
-
13
+
14
14
rangesToStringList = map ( x : builtins . toString x . from + "-" + builtins . toString x . to ) ;
15
-
15
+
16
16
settingsFile = pkgs . writeText "aria2.conf"
17
17
''
18
18
dir=${ cfg . downloadDir }
110
110
mkdir -m 0770 -p "${ homeDir } "
111
111
chown aria2:aria2 "${ homeDir } "
112
112
if [[ ! -d "${ config . services . aria2 . downloadDir } " ]]
113
- then
113
+ then
114
114
mkdir -m 0770 -p "${ config . services . aria2 . downloadDir } "
115
115
chown aria2:aria2 "${ config . services . aria2 . downloadDir } "
116
116
fi
117
117
if [[ ! -e "${ sessionFile } " ]]
118
- then
118
+ then
119
119
touch "${ sessionFile } "
120
120
chown aria2:aria2 "${ sessionFile } "
121
121
fi
132
132
} ;
133
133
} ;
134
134
} ;
135
- }
135
+ }
You can’t perform that action at this time.
0 commit comments