dotfiles/nix/nixos/modules/xkb-caps-us-sk.nix
2021-02-28 18:14:01 +01:00

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";
};
}