fork/home-manager

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

Robert Helgessontests: various minor cleanupseec22729

master
664 B25 linesraw
1{ ... }:
2
3{
4  imports = [ ./i3-stubs.nix ];
5
6  xsession.windowManager.i3 = {
7    enable = true;
8
9    config = {
10      bars = [{ fonts = [ "FontAwesome" "Iosevka 11.500000" ]; }];
11      fonts = [ "DejaVuSansMono" "Terminus Bold Semi-Condensed 13.500000" ];
12    };
13  };
14
15  nmt.script = ''
16    assertFileExists home-files/.config/i3/config
17    assertFileContent home-files/.config/i3/config \
18      ${./i3-fonts-expected.conf}
19  '';
20
21  test.asserts.warnings.expected = [
22    "Specifying i3.config.fonts as a list is deprecated. Use the attrset version instead."
23    "Specifying i3.config.bars[].fonts as a list is deprecated. Use the attrset version instead."
24  ];
25}