2019-09-04 23:31:44 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-06-23 12:06:29 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.command = "window manager command";
|
|
|
|
importedVariables = [ "EXTRA_IMPORTED_VARIABLE" ];
|
|
|
|
initExtra = "init extra commands";
|
|
|
|
profileExtra = "profile extra commands";
|
|
|
|
};
|
|
|
|
|
2019-10-08 20:46:27 +00:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
xorg = super.xorg // {
|
2020-02-01 23:39:17 +00:00
|
|
|
setxkbmap = super.xorg.setxkbmap // { outPath = "@setxkbmap@"; };
|
2019-10-08 20:46:27 +00:00
|
|
|
};
|
2020-02-01 23:39:17 +00:00
|
|
|
})
|
2019-10-08 20:46:27 +00:00
|
|
|
];
|
|
|
|
|
2019-06-23 12:06:29 +00:00
|
|
|
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-04 23:31:44 +00:00
|
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
2019-10-08 20:46:27 +00:00
|
|
|
${./basic-setxkbmap-expected.service}
|
2019-06-23 12:06:29 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|