This deserves to be its own standalone module, as I would want to use it in both X and Wayland, etc...
This commit is contained in:
parent
13d85c30f9
commit
e4dd57c997
3 changed files with 7 additions and 5 deletions
17
modules/home/keyboard/default.nix
Normal file
17
modules/home/keyboard/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.keyboard;
|
||||
in
|
||||
{
|
||||
|
||||
options.my.home.keyboard = with lib; {
|
||||
enable = my.mkDisableOption "keyboard configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.keyboard = {
|
||||
layout = "fr";
|
||||
variant = "us";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue