fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessontests: add option `test.stubs`cb09a968

master
777 B40 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.aria2 = {
8      enable = true;
9
10      settings = {
11        listen-port = 60000;
12        dht-listen-port = 60000;
13        seed-ratio = 1.0;
14        max-upload-limit = "50K";
15        ftp-pasv = true;
16      };
17
18      extraConfig = ''
19        # Extra aria2 configuration.
20      '';
21    };
22
23    test.stubs.aria2 = { };
24
25    nmt.script = ''
26      assertFileContent \
27        home-files/.config/aria2/aria2.conf \
28        ${
29          pkgs.writeText "aria2-expected-config.conf" ''
30            dht-listen-port=60000
31            ftp-pasv=true
32            listen-port=60000
33            max-upload-limit=50K
34            seed-ratio=1.000000
35            # Extra aria2 configuration.
36          ''
37        }
38    '';
39  };
40}