mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-10-03 20:21:48 +00:00
34 lines
641 B
Nix
34 lines
641 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
username,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.hardware.luci-keyboard;
|
|
in
|
|
{
|
|
options.hardware.luci-keyboard = {
|
|
enable = mkEnableOption "Enable Luci Keyboard Layout";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home-manager.users."${username}".xdg.configFile."xkb/symbols/luci-keyboard".source =
|
|
./luci-keyboard;
|
|
console.useXkbConfig = true;
|
|
services.xserver.xkb = {
|
|
layout = "luci-keyboard";
|
|
extraLayouts.luci-keyboard = {
|
|
description = "Luci's optimized layout";
|
|
languages = [
|
|
"ger"
|
|
];
|
|
symbolsFile = ./luci-keyboard;
|
|
};
|
|
};
|
|
};
|
|
}
|