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;
|
niri.enable = true;
|
||||||
games.enable = true;
|
games.enable = true;
|
||||||
secureboot.enable = true;
|
secureboot.enable = true;
|
||||||
|
extraLayout.enable = true;
|
||||||
|
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
hmStateVersion = "24.11";
|
hmStateVersion = "24.11";
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{ ... }: {
|
{ lib, config, ... }: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
inherit (config.conf) extraLayout;
|
||||||
|
in mkIf extraLayout.enable {
|
||||||
services.xserver.xkb = {
|
services.xserver.xkb = {
|
||||||
layout = "us,custom";
|
layout = "us,custom";
|
||||||
options = "compose:ralt";
|
options = "compose:ralt";
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, ... }: let
|
{ config, ... }: let
|
||||||
inherit (config.conf) keys;
|
inherit (config.conf) keys extraLayout;
|
||||||
in {
|
in {
|
||||||
input = {
|
input = {
|
||||||
keyboard = {
|
keyboard = {
|
||||||
xkb = {
|
xkb = {
|
||||||
layout = "us,custom";
|
layout = if extraLayout.enable then "us,custom" else "us";
|
||||||
options = "compose:ralt";
|
options = "compose:ralt";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue