1
0

Move keyboard settings to home-manager

This commit is contained in:
dump_stack() 2019-07-18 21:24:55 +00:00
parent cb94868648
commit edde4a11d5
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 7 additions and 2 deletions

View File

@ -4,8 +4,8 @@ let
secrets = import ./secrets.nix;
in {
services.xserver.enable = true;
services.xserver.layout = "us,ru";
services.xserver.xkbOptions = "ctrl:nocaps,grp:rctrl_toggle";
#services.xserver.layout = "us,ru"; # see home-manager.nix
#services.xserver.xkbOptions = "ctrl:nocaps,grp:rctrl_toggle"; # see home-manager.nix
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.windowManager.xmonad.enable = true;
services.xserver.windowManager.xmonad.enableContribAndExtras = true;

View File

@ -67,6 +67,11 @@ in {
".oh-my-zsh-custom/plugins/tmux-my/tmux-my.plugin.zsh".source = ./etc/tmux-my/tmux-my.plugin.zsh;
};
home.keyboard = {
layout = "us,ru";
options = [ "ctrl:nocaps" "grp:rctrl_toggle" ];
};
xsession.enable = true;
xsession.windowManager.command = "exec xmonad";
};