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

View File

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

View File

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