aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/xresources.nix
blob: f73e326f31e41d4362974c65670d88d0abd8a995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, lib, ... }:

with lib;

{
  config = {
    xresources = {
      properties = {
        "Test*string" = "test-string";
        "Test*boolean1" = true;
        "Test*boolean2" = false;
        "Test*int" = 10;
        "Test*list" = [ "list-str" true false 10 ];
      };
    };

    nmt.script = ''
      assertFileExists home-files/.Xresources
      assertFileContent home-files/.Xresources ${./xresources-expected.conf}
    '';
  };
}