19 lines
No EOL
335 B
Nix
19 lines
No EOL
335 B
Nix
{ config, lib, ... }:
|
|
|
|
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;
|
|
};
|
|
};
|
|
config = (import ./${cfg.layout}.nix {});
|
|
} |