23 lines
360 B
Nix
23 lines
360 B
Nix
|
{ config, pkgs, 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 = {
|
||
|
imports = [
|
||
|
./${cfg.layout}
|
||
|
];
|
||
|
};
|
||
|
}
|