home: keyboard: extract from X module
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
13d85c30f9
commit
26950332c7
|
@ -23,6 +23,7 @@
|
||||||
./gtk
|
./gtk
|
||||||
./htop
|
./htop
|
||||||
./jq
|
./jq
|
||||||
|
./keyboard
|
||||||
./mail
|
./mail
|
||||||
./mpv
|
./mpv
|
||||||
./nix
|
./nix
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.home.x;
|
cfg = config.my.home.keyboard;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.my.home.keyboard = with lib; {
|
||||||
|
enable = my.mkDisableOption "keyboard configuration";
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.keyboard = {
|
home.keyboard = {
|
||||||
layout = "fr";
|
layout = "fr";
|
|
@ -3,10 +3,6 @@ let
|
||||||
cfg = config.my.home.x;
|
cfg = config.my.home.x;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./keyboard
|
|
||||||
];
|
|
||||||
|
|
||||||
options.my.home.x = with lib; {
|
options.my.home.x = with lib; {
|
||||||
enable = mkEnableOption "X server configuration";
|
enable = mkEnableOption "X server configuration";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue