home: keyboard: extract from X module
ci/woodpecker/push/check Pipeline was successful Details

This deserves to be its own standalone module, as I would want to use it
in both X and Wayland, etc...
This commit is contained in:
Bruno BELANYI 2023-12-19 22:00:32 +01:00
parent 13d85c30f9
commit 26950332c7
3 changed files with 6 additions and 5 deletions

View File

@ -23,6 +23,7 @@
./gtk
./htop
./jq
./keyboard
./mail
./mpv
./nix

View File

@ -1,8 +1,12 @@
{ config, lib, ... }:
let
cfg = config.my.home.x;
cfg = config.my.home.keyboard;
in
{
options.my.home.keyboard = with lib; {
enable = my.mkDisableOption "keyboard configuration";
};
config = lib.mkIf cfg.enable {
home.keyboard = {
layout = "fr";

View File

@ -3,10 +3,6 @@ let
cfg = config.my.home.x;
in
{
imports = [
./keyboard
];
options.my.home.x = with lib; {
enable = mkEnableOption "X server configuration";
};