Add variables to make theKBDLayout configure console.keyMap and Hyprland

This commit is contained in:
Jerry Starke 2024-02-04 19:07:07 +01:00
parent ae7b3dca65
commit 1de46fbabd
3 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, config, lib, browser,
cpuType, gpuType, wallpaperDir,
inputs, borderAnim, ... }:
inputs, borderAnim, theKBDLayout, ... }:
let
theme = config.colorScheme.colors;
@ -30,7 +30,7 @@ in with lib; {
resize_on_border = true
}
input {
kb_layout = us
kb_layout = ${theKBDLayout}
kb_options=caps:super
follow_mouse = 1
touchpad {

View File

@ -71,11 +71,12 @@
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit username;
inherit gitUsername; inherit gitEmail;
inherit inputs; inherit theme;
inherit browser; inherit wallpaperDir;
inherit wallpaperGit; inherit flakeDir;
inherit gpuType; inherit cpuType;
inherit waybarStyle; inherit borderAnim;
inherit theKBDLayout; inherit inputs;
inherit theme; inherit browser;
inherit wallpaperDir; inherit wallpaperGit;
inherit flakeDir; inherit gpuType;
inherit cpuType; inherit waybarStyle;
inherit borderAnim;
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
};
home-manager.useGlobalPkgs = true;

View File

@ -31,6 +31,8 @@
LC_TIME = "${theLCVariables}";
};
console.keyMap = "${theKBDLayout}";
# Define a user account.
users.users."${username}" = {
homeMode = "755";