Clean up systms

This commit is contained in:
jopejoe1 2024-01-15 19:56:37 +01:00
parent a80a6a0b1d
commit ef6b1a72e4
17 changed files with 101 additions and 65 deletions

View file

@ -0,0 +1,26 @@
{ 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";
};
};
}