only include extra layouts on request
This commit is contained in:
parent
714180b656
commit
9b4a4baff2
3 changed files with 7 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
|||
niri.enable = true;
|
||||
games.enable = true;
|
||||
secureboot.enable = true;
|
||||
extraLayout.enable = true;
|
||||
|
||||
stateVersion = "24.05";
|
||||
hmStateVersion = "24.11";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue