mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Clean up systms
This commit is contained in:
parent
a80a6a0b1d
commit
ef6b1a72e4
17 changed files with 101 additions and 65 deletions
26
modules/keyboard/default.nix
Normal file
26
modules/keyboard/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue