Make london QWERTY

This commit is contained in:
Victor Mignot 2023-12-22 23:18:58 +01:00
parent 4acc66e604
commit d76a0bc50e
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
3 changed files with 7 additions and 3 deletions

View file

@ -58,6 +58,8 @@
/* Hardware acceleration */
hwAccelerationGPU = "nvidia";
keymap = "us";
/* System secrets */
sops = {
gnupg.sshKeyPaths = [ ];

View file

@ -26,6 +26,7 @@ with lib;
./home-manager
sopsHmModule
];
home-manager.extraSpecialArgs.keymap = config.keymap;
home-manager.users = builtins.mapAttrs
(name: value:
mkIf value.enableHomeManagerProfile ({

View file

@ -1,6 +1,7 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, keymap, ... }:
with lib;
let
isQwerty = keymap == "us";
gnomeSchema = "org.gnome.desktop.interface";
monitorModule = types.submodule {
options = {
@ -48,8 +49,8 @@ in
input = {
"*" = {
xkb_layout = "fr";
# xkb_options = "compose:ralt";
xkb_layout = keymap;
xkb_options = mkIf isQwerty "compose:ralt";
};
};