2019-09-05 01:37:45 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
home.stateVersion = "19.09";
|
|
|
|
|
|
|
|
home.homeDirectory = "/test-home";
|
|
|
|
|
2020-02-02 00:39:17 +01:00
|
|
|
home.keyboard = { options = [ "ctrl:nocaps" "altwin:no_win" ]; };
|
2019-09-05 01:37:45 +02:00
|
|
|
|
|
|
|
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-09-05 01:37:45 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
2019-10-08 22:46:27 +02:00
|
|
|
${./keyboard-without-layout-expected.service}
|
2019-09-05 01:37:45 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|