2024-05-25 23:51:37 +02:00
|
|
|
{ config, lib, ... }:
|
2024-05-25 01:32:48 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
2024-05-27 22:40:30 +02:00
|
|
|
cfg = config.modules.system.hardware.keymaps;
|
2024-05-25 01:32:48 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-27 22:40:30 +02:00
|
|
|
options.modules.system.hardware.keymaps = {
|
2024-05-25 01:32:48 +02:00
|
|
|
layout = mkOption {
|
|
|
|
default = "fr";
|
|
|
|
example = "fr";
|
|
|
|
description = ''
|
|
|
|
Set key layout (fr, us)
|
|
|
|
'';
|
2024-05-26 00:00:14 +02:00
|
|
|
type = types.str;
|
2024-05-25 01:32:48 +02:00
|
|
|
};
|
|
|
|
};
|
2024-05-26 00:00:14 +02:00
|
|
|
config = mkMerge [
|
|
|
|
(mkIf (cfg.layout == "fr") (import ./fr.nix {}))
|
|
|
|
(mkIf (cfg.layout == "us") (import ./us.nix {}))
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|