mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-10-03 20:21:48 +00:00
feat: luci stuff
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user