home-manager/tests/modules/misc/xsession/keyboard-without-layout.nix

35 lines
837 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
home.stateVersion = "19.09";
2020-02-01 23:39:17 +00:00
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";
};
nixpkgs.overlays = [
(self: super: {
xorg = super.xorg // {
2020-02-01 23:39:17 +00:00
setxkbmap = super.xorg.setxkbmap // { outPath = "@setxkbmap@"; };
};
2020-02-01 23:39:17 +00:00
})
];
nmt.script = ''
assertFileExists home-files/.config/systemd/user/setxkbmap.service
assertFileContent \
home-files/.config/systemd/user/setxkbmap.service \
${./keyboard-without-layout-expected.service}
'';
};
}