mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 20:19:45 +01:00
95b95b1407
Before the XDG variables would be set from the user's environment, if available. This would break some tests. With this change the tests should be fully deterministic. Fixes #1190
34 lines
837 B
Nix
34 lines
837 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "19.09";
|
|
|
|
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 // {
|
|
setxkbmap = super.xorg.setxkbmap // { outPath = "@setxkbmap@"; };
|
|
};
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
|
${./keyboard-without-layout-expected.service}
|
|
'';
|
|
};
|
|
}
|