2019-09-05 01:31:44 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-06-23 14:06:29 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
home.homeDirectory = "/test-home";
|
|
|
|
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.command = "window manager command";
|
|
|
|
importedVariables = [ "EXTRA_IMPORTED_VARIABLE" ];
|
|
|
|
initExtra = "init extra commands";
|
|
|
|
profileExtra = "profile extra commands";
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.xprofile
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.xprofile \
|
|
|
|
${./basic-xprofile-expected.txt}
|
|
|
|
|
|
|
|
assertFileExists home-files/.xsession
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.xsession \
|
|
|
|
${./basic-xsession-expected.txt}
|
|
|
|
|
2019-09-05 01:31:44 +02:00
|
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
|
|
|
${pkgs.substituteAll {
|
|
|
|
src = ./basic-setxkbmap-expected.service;
|
|
|
|
inherit (pkgs.xorg) setxkbmap;
|
|
|
|
}}
|
2019-06-23 14:06:29 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|