2019-09-04 23:37:45 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
home.stateVersion = "19.09";
|
|
|
|
|
|
|
|
home.homeDirectory = "/test-home";
|
|
|
|
|
|
|
|
home.keyboard = {
|
|
|
|
options = [ "ctrl:nocaps" "altwin:no_win" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
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 // {
|
|
|
|
setxkbmap = super.xorg.setxkbmap // {
|
|
|
|
outPath = "@setxkbmap@";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-09-04 23:37:45 +00:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
2019-10-08 20:46:27 +00:00
|
|
|
${./keyboard-without-layout-expected.service}
|
2019-09-04 23:37:45 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|