2024-07-10 23:02:54 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-01-15 19:56:37 +01:00
|
|
|
|
2024-07-10 23:02:54 +02:00
|
|
|
let
|
|
|
|
cfg = config.jopejoe1.keyboard;
|
|
|
|
in
|
|
|
|
{
|
2024-01-15 19:56:37 +01:00
|
|
|
options.jopejoe1.keyboard = {
|
|
|
|
enable = lib.mkEnableOption "Enable Keyboard";
|
|
|
|
layout = lib.mkOption {
|
|
|
|
type = lib.types.str;
|
2024-01-19 13:42:27 +01:00
|
|
|
default = "us";
|
2024-01-15 19:56:37 +01:00
|
|
|
description = lib.mdDoc "Keyboard Layout.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services = {
|
|
|
|
xserver = {
|
2024-02-07 22:23:26 +01:00
|
|
|
xkb.layout = cfg.layout;
|
2024-01-15 19:56:37 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
console = {
|
|
|
|
enable = true;
|
2024-07-15 09:01:43 +02:00
|
|
|
keyMap = cfg.layout;
|
2024-01-15 19:56:37 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|