Make london QWERTY
This commit is contained in:
parent
4acc66e604
commit
d76a0bc50e
|
@ -58,6 +58,8 @@
|
||||||
/* Hardware acceleration */
|
/* Hardware acceleration */
|
||||||
hwAccelerationGPU = "nvidia";
|
hwAccelerationGPU = "nvidia";
|
||||||
|
|
||||||
|
keymap = "us";
|
||||||
|
|
||||||
/* System secrets */
|
/* System secrets */
|
||||||
sops = {
|
sops = {
|
||||||
gnupg.sshKeyPaths = [ ];
|
gnupg.sshKeyPaths = [ ];
|
||||||
|
|
|
@ -26,6 +26,7 @@ with lib;
|
||||||
./home-manager
|
./home-manager
|
||||||
sopsHmModule
|
sopsHmModule
|
||||||
];
|
];
|
||||||
|
home-manager.extraSpecialArgs.keymap = config.keymap;
|
||||||
home-manager.users = builtins.mapAttrs
|
home-manager.users = builtins.mapAttrs
|
||||||
(name: value:
|
(name: value:
|
||||||
mkIf value.enableHomeManagerProfile ({
|
mkIf value.enableHomeManagerProfile ({
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, keymap, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
isQwerty = keymap == "us";
|
||||||
gnomeSchema = "org.gnome.desktop.interface";
|
gnomeSchema = "org.gnome.desktop.interface";
|
||||||
monitorModule = types.submodule {
|
monitorModule = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
@ -48,8 +49,8 @@ in
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
"*" = {
|
"*" = {
|
||||||
xkb_layout = "fr";
|
xkb_layout = keymap;
|
||||||
# xkb_options = "compose:ralt";
|
xkb_options = mkIf isQwerty "compose:ralt";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue