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 */ /* Hardware acceleration */
hwAccelerationGPU = "nvidia"; hwAccelerationGPU = "nvidia";
keymap = "us";
/* System secrets */ /* System secrets */
sops = { sops = {
gnupg.sshKeyPaths = [ ]; gnupg.sshKeyPaths = [ ];

View file

@ -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 ({

View file

@ -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";
}; };
}; };