mirror of
https://github.com/nix-community/home-manager
synced 2024-12-18 15:59:48 +01:00
797c77a00a
This replaces some derivation outputs by simple strings rather than full Nix store paths. This removes the need to download the whole derivation when all we need is a static string.
40 lines
908 B
Nix
40 lines
908 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "19.09";
|
|
|
|
home.homeDirectory = "/test-home";
|
|
|
|
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}
|
|
'';
|
|
};
|
|
}
|