begin to modularise
This commit is contained in:
parent
bbd26675f8
commit
a1175ba492
10 changed files with 311 additions and 93 deletions
24
lib/modules/keyboard.nix
Normal file
24
lib/modules/keyboard.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ user }: { lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.keyboard = {
|
||||
dvorak = {
|
||||
enable = mkEnableOption "use a good keyboard layout on a qwerty keyboard";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.keyboard.dvorak.enable {
|
||||
home-manager.users.${user}.imports = [
|
||||
{
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
# === KEYBOARD MODULE ===
|
||||
input {
|
||||
kb_variant = dvorak
|
||||
}
|
||||
'';
|
||||
}
|
||||
];
|
||||
services.xserver.xkbVariant = "dvorak";
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue