nix-conf/modules/keyboard/default.nix
2024-01-24 20:47:59 +01:00

26 lines
480 B
Nix

{ config, lib, pkgs, ... }:
let cfg = config.jopejoe1.keyboard;
in {
options.jopejoe1.keyboard = {
enable = lib.mkEnableOption "Enable Keyboard";
layout = lib.mkOption {
type = lib.types.str;
default = "us";
description = lib.mdDoc "Keyboard Layout.";
};
};
config = lib.mkIf cfg.enable {
services = {
xserver = {
layout = cfg.layout;
};
};
console = {
enable = true;
keyMap = "de";
};
};
}