mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:06:53 +01:00
26 lines
484 B
Nix
26 lines
484 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 = {
|
|
xkb.layout = cfg.layout;
|
|
};
|
|
};
|
|
console = {
|
|
enable = true;
|
|
keyMap = "de";
|
|
};
|
|
};
|
|
}
|
|
|