home: add X keyboard configuration

This commit is contained in:
Bruno BELANYI 2021-04-02 18:46:45 +00:00
parent 63791a98a4
commit ff4745e1e6
3 changed files with 30 additions and 0 deletions

View file

@ -14,6 +14,7 @@
./ssh.nix
./tmux.nix
./vim
./x
./xdg.nix
./zsh
];

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;
};
}

12
home/x/keyboard.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, lib, ... }:
let
cfg = config.my.home.x;
in
{
config = lib.mkIf cfg.enable {
home.keyboard = {
layout = "fr";
variant = "us";
};
};
}