dotfiles/nixos/modules/xkb-caps-us-sk.nix

13 lines
370 B
Nix

{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
{ config, ... }:
let
mkIf = nixpkgs.lib.mkIf;
xserver-enable = config.services.xserver.enable;
in {
services.xserver = {
layout = mkIf xserver-enable "us,sk";
xkbVariant = mkIf xserver-enable ",qwerty";
xkbOptions = mkIf xserver-enable "grp:lalt_lshift_toggle ctrl:nocaps";
};
}