2019-09-05 01:31:44 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-06-23 14:06:29 +02: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 22:46:27 +02:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
xorg = super.xorg // {
|
2020-02-02 00:39:17 +01:00
|
|
|
setxkbmap = super.xorg.setxkbmap // { outPath = "@setxkbmap@"; };
|
2019-10-08 22:46:27 +02:00
|
|
|
};
|
2020-02-02 00:39:17 +01:00
|
|
|
})
|
2019-10-08 22:46:27 +02:00
|
|
|
];
|
|
|
|
|
2019-06-23 14:06:29 +02: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-05 01:31:44 +02:00
|
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
2019-10-08 22:46:27 +02:00
|
|
|
${./basic-setxkbmap-expected.service}
|
2019-06-23 14:06:29 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|