home: add X keyboard configuration

This commit is contained in:
Bruno BELANYI 2021-04-02 18:46:45 +00:00
parent 6acf9f4a19
commit 5427f15a17
3 changed files with 30 additions and 0 deletions

17
home/x/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
let
cfg = config.my.home.x;
in
{
imports = [
./keyboard.nix
];
options.my.home.x = with lib; {
enable = mkEnableOption "X server configuration";
};
config = lib.mkIf cfg.enable {
xsession.enable = true;
};
}