nix-conf/modules/keyboard/default.nix

27 lines
480 B
Nix
Raw Normal View History

2024-01-15 19:56:37 +01:00
{ config, lib, pkgs, ... }:
let cfg = config.jopejoe1.keyboard;
in {
options.jopejoe1.keyboard = {
enable = lib.mkEnableOption "Enable Keyboard";
layout = lib.mkOption {
type = lib.types.str;
2024-01-19 13:42:27 +01:00
default = "us";
2024-01-15 19:56:37 +01:00
description = lib.mdDoc "Keyboard Layout.";
};
};
config = lib.mkIf cfg.enable {
services = {
xserver = {
layout = cfg.layout;
};
};
console = {
enable = true;
keyMap = "de";
};
};
}