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

View file

@ -14,6 +14,7 @@
./ssh.nix ./ssh.nix
./tmux.nix ./tmux.nix
./vim ./vim
./x
./xdg.nix ./xdg.nix
./zsh ./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";
};
};
}