Summary Files Commits Branches @commit @diff @stats
path: root / modules / general-settings.nix
blob: 652c55cc89cfc3bb0cb4f8194c03710840fa57e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, ... }: {
  nixpkgs.config.allowUnfree = true;

  services.xserver = {
    # xkbmap
    layout = "us,bg-custom";
    xkbVariant = ",phonetic-nonstandard";
    xkbOptions = "grp:rwin_toggle,grp:alt_shift_toggle,lv3:switch,caps:escape";
    xkb.extraLayouts.bg-custom = {
      description = "Non-standard variant of the traditional Bulgarian phonetic keyboard, which replaces some characters with their English counterparts";
      languages   = [ "bg" ];
      symbolsFile = ../packages/bg-custom;
    };

    # touchpad support
    libinput = {
      enable = true;
      touchpad.naturalScrolling = true;
    };
  };
}