fork/home-manager

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

Robert Helgessontests: improve test purity95b95b14

master
1010 B40 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    xsession = {
8      enable = true;
9      windowManager.command = "window manager command";
10      importedVariables = [ "EXTRA_IMPORTED_VARIABLE" ];
11      initExtra = "init extra commands";
12      profileExtra = "profile extra commands";
13    };
14
15    nixpkgs.overlays = [
16      (self: super: {
17        xorg = super.xorg // {
18          setxkbmap = super.xorg.setxkbmap // { outPath = "@setxkbmap@"; };
19        };
20      })
21    ];
22
23    nmt.script = ''
24      assertFileExists home-files/.xprofile
25      assertFileContent \
26        home-files/.xprofile \
27        ${./basic-xprofile-expected.txt}
28
29      assertFileExists home-files/.xsession
30      assertFileContent \
31        home-files/.xsession \
32        ${./basic-xsession-expected.txt}
33
34      assertFileExists home-files/.config/systemd/user/setxkbmap.service
35      assertFileContent \
36        home-files/.config/systemd/user/setxkbmap.service \
37        ${./basic-setxkbmap-expected.service}
38    '';
39  };
40}