mirror of
https://github.com/nix-community/home-manager
synced 2024-11-17 00:29:45 +01:00
824d31a21c
Also default these options to `null` for state version ≥ 19.09. Fixes #811 Suggested-by: Sean Marshallsay <srm.1708@gmail.com>
33 lines
794 B
Nix
33 lines
794 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";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/systemd/user/setxkbmap.service
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/setxkbmap.service \
|
|
${pkgs.substituteAll {
|
|
src = ./keyboard-without-layout-expected.service;
|
|
inherit (pkgs.xorg) setxkbmap;
|
|
}}
|
|
'';
|
|
};
|
|
}
|