nixos/modules/system/keymaps/default.nix

19 lines
335 B
Nix
Raw Normal View History

2024-05-25 23:51:37 +02:00
{ config, lib, ... }:
2024-05-25 01:32:48 +02:00
with lib;
let
cfg = config.modules.system.keymaps;
in
{
options.modules.system.keymaps = {
layout = mkOption {
default = "fr";
example = "fr";
description = ''
Set key layout (fr, us)
'';
type = types.string;
};
};
2024-05-25 23:51:37 +02:00
config = (import ./${cfg.layout}.nix {});
2024-05-25 01:32:48 +02:00
}