nix-config/modules/home/keyboard/default.nix

17 lines
281 B
Nix
Raw Normal View History

2021-04-02 20:46:45 +02:00
{ config, lib, ... }:
let
cfg = config.my.home.keyboard;
2021-04-02 20:46:45 +02:00
in
{
options.my.home.keyboard = with lib; {
enable = my.mkDisableOption "keyboard configuration";
};
2021-04-02 20:46:45 +02:00
config = lib.mkIf cfg.enable {
home.keyboard = {
layout = "fr";
variant = "us";
};
};
}