2019-09-04 23:37:45 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
home.stateVersion = "19.09";
|
|
|
|
|
|
|
|
home.homeDirectory = "/test-home";
|
|
|
|
|
2020-02-01 23:39:17 +00:00
|
|
|
home.keyboard = { options = [ "ctrl:nocaps" "altwin:no_win" ]; };
|
2019-09-04 23:37:45 +00:00
|
|
|
|
|
|
|
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-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
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|