home: add X keyboard configuration
This commit is contained in:
parent
63791a98a4
commit
ff4745e1e6
|
@ -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