fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
625 B34 linesraw
1{ config, pkgs, ... }:
2
3{
4  config = {
5    programs.autorandr = {
6      enable = true;
7      profiles = {
8        default = {
9          fingerprint.DP1 = "XXX";
10          config.DP1 = {
11            scale = {
12              x = 2;
13              y = 4;
14            };
15          };
16        };
17      };
18    };
19
20    test.stubs.autorandr = { };
21
22    nmt.script = ''
23      config=home-files/.config/autorandr/default/config
24
25      assertFileExists $config
26      assertFileContent $config \
27          ${
28            pkgs.writeText "scale-expected.conf" ''
29              output DP1
30              scale 2x4''
31          }
32    '';
33  };
34}