fork/home-manager

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

Robert Helgessontests: improve test purity95b95b14

master
837 B34 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    home.stateVersion = "19.09";
8
9    home.keyboard = { options = [ "ctrl:nocaps" "altwin:no_win" ]; };
10
11    xsession = {
12      enable = true;
13      windowManager.command = "window manager command";
14      importedVariables = [ "EXTRA_IMPORTED_VARIABLE" ];
15      initExtra = "init extra commands";
16      profileExtra = "profile extra commands";
17    };
18
19    nixpkgs.overlays = [
20      (self: super: {
21        xorg = super.xorg // {
22          setxkbmap = super.xorg.setxkbmap // { outPath = "@setxkbmap@"; };
23        };
24      })
25    ];
26
27    nmt.script = ''
28      assertFileExists home-files/.config/systemd/user/setxkbmap.service
29      assertFileContent \
30        home-files/.config/systemd/user/setxkbmap.service \
31        ${./keyboard-without-layout-expected.service}
32    '';
33  };
34}