mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +01:00
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.homeDirectory = "/test-home";
|
|
|
|
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/.xprofile
|
|
assertFileContent \
|
|
home-files/.xprofile \
|
|
${./basic-xprofile-expected.txt}
|
|
|
|
assertFileExists home-files/.xsession
|
|
assertFileContent \
|
|
home-files/.xsession \
|
|
${./basic-xsession-expected.txt}
|
|
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
|
${./basic-setxkbmap-expected.service}
|
|
'';
|
|
};
|
|
}
|