home: add X keyboard configuration
This commit is contained in:
parent
6acf9f4a19
commit
5427f15a17
|
@ -14,6 +14,7 @@
|
|||
./ssh.nix
|
||||
./tmux.nix
|
||||
./vim
|
||||
./x
|
||||
./xdg.nix
|
||||
./zsh
|
||||
];
|
||||
|
|
17
home/x/default.nix
Normal file
17
home/x/default.nix
Normal 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
12
home/x/keyboard.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue