Added LCVariables and KDBLayout as options for user

This commit is contained in:
Tyler Kelley 2024-01-22 20:02:48 -06:00
parent b1a06d69bf
commit 39077578da
3 changed files with 17 additions and 13 deletions

View File

@ -1,9 +1,9 @@
{ pkgs, config, ... }:
{ pkgs, config, theKBDLayout, ... }:
{
services.xserver = {
enable = true;
layout = "us";
layout = "${theKBDLayout}";
xkbVariant = "";
libinput.enable = true;
displayManager.sddm = {

View File

@ -18,6 +18,8 @@
gitUsername = "Tyler Kelley";
gitEmail = "tylerzanekelley@gmail.com";
theLocale = "en_US.UTF-8";
theKBDLayout = "us";
theLCVariables = "en_US.UTF-8";
theTimezone = "America/Chicago";
theme = "tokyo-night-storm";
browser = "firefox";
@ -43,7 +45,8 @@
inherit gitUsername; inherit theTimezone;
inherit gitEmail; inherit theLocale;
inherit wallpaperDir; inherit wallpaperGit;
inherit deviceProfile;
inherit deviceProfile; inherit theKBDLayout;
inherit theLCVariables;
};
modules = [ ./system.nix
home-manager.nixosModules.home-manager {

View File

@ -1,6 +1,7 @@
{ inputs, config, pkgs, username,
hostname, gitUsername, theLocale,
theTimezone, wallpaperDir, wallpaperGit, ... }:
theTimezone, wallpaperDir, wallpaperGit,
theLCVariables, theKBDLayout, ... }:
{
imports =
@ -19,15 +20,15 @@
# Select internationalisation properties
i18n.defaultLocale = "${theLocale}";
i18n.extraLocaleSettings = {
LC_ADDRESS = "${theLocale}";
LC_IDENTIFICATION = "${theLocale}";
LC_MEASUREMENT = "${theLocale}";
LC_MONETARY = "${theLocale}";
LC_NAME = "${theLocale}";
LC_NUMERIC = "${theLocale}";
LC_PAPER = "${theLocale}";
LC_TELEPHONE = "${theLocale}";
LC_TIME = "${theLocale}";
LC_ADDRESS = "${theLCVariables}";
LC_IDENTIFICATION = "${theLCVariables}";
LC_MEASUREMENT = "${theLCVariables}";
LC_MONETARY = "${theLCVariables}";
LC_NAME = "${theLCVariables}";
LC_NUMERIC = "${theLCVariables}";
LC_PAPER = "${theLCVariables}";
LC_TELEPHONE = "${theLCVariables}";
LC_TIME = "${theLCVariables}";
};
# Define a user account.