only include extra layouts on request

This commit is contained in:
twoneis 2024-08-05 18:53:10 +02:00
parent 714180b656
commit 9b4a4baff2
3 changed files with 7 additions and 3 deletions

View file

@ -4,6 +4,7 @@
niri.enable = true;
games.enable = true;
secureboot.enable = true;
extraLayout.enable = true;
stateVersion = "24.05";
hmStateVersion = "24.11";

View file

@ -1,4 +1,7 @@
{ ... }: {
{ lib, config, ... }: let
inherit (lib) mkIf;
inherit (config.conf) extraLayout;
in mkIf extraLayout.enable {
services.xserver.xkb = {
layout = "us,custom";
options = "compose:ralt";

View file

@ -1,10 +1,10 @@
{ config, ... }: let
inherit (config.conf) keys;
inherit (config.conf) keys extraLayout;
in {
input = {
keyboard = {
xkb = {
layout = "us,custom";
layout = if extraLayout.enable then "us,custom" else "us";
options = "compose:ralt";
};
};