mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-24 15:43:17 +01:00
Added keyboard layout support during install
This commit is contained in:
parent
a2efb8a089
commit
39ba31d669
@ -14,6 +14,7 @@ let
|
|||||||
browser
|
browser
|
||||||
terminal
|
terminal
|
||||||
extraMonitorSettings
|
extraMonitorSettings
|
||||||
|
keyboardLayout
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
with lib;
|
with lib;
|
||||||
@ -63,7 +64,7 @@ with lib;
|
|||||||
col.inactive_border = rgb(${config.stylix.base16Scheme.base01})
|
col.inactive_border = rgb(${config.stylix.base16Scheme.base01})
|
||||||
}
|
}
|
||||||
input {
|
input {
|
||||||
kb_layout = us
|
kb_layout = ${keyboardLayout}
|
||||||
kb_options = grp:alt_shift_toggle
|
kb_options = grp:alt_shift_toggle
|
||||||
kb_options = caps:super
|
kb_options = caps:super
|
||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
options,
|
options,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
inherit (import ../hosts/${host}/variables.nix) keyboardLayout;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
@ -329,7 +331,7 @@
|
|||||||
xserver = {
|
xserver = {
|
||||||
enable = false;
|
enable = false;
|
||||||
xkb = {
|
xkb = {
|
||||||
layout = "us";
|
layout = "${keyboardLayout}";
|
||||||
variant = "";
|
variant = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -467,6 +469,8 @@
|
|||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.keyMap = "${keyboardLayout}";
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
@ -12,4 +12,5 @@
|
|||||||
# Program Options
|
# Program Options
|
||||||
browser = "brave"; # Set Default Browser (google-chrome-stable for google-chrome)
|
browser = "brave"; # Set Default Browser (google-chrome-stable for google-chrome)
|
||||||
terminal = "kitty"; # Set Default System Terminal
|
terminal = "kitty"; # Set Default System Terminal
|
||||||
|
keyboardLayout = "us";
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,14 @@ git config --global user.email "installer@gmail.com"
|
|||||||
git add .
|
git add .
|
||||||
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
||||||
|
|
||||||
|
|
||||||
|
read -rp "Enter your keyboard layout: [ us ] " keyboardLayout
|
||||||
|
if [ -z "$keyboardLayout" ]; then
|
||||||
|
keyboardLayout="us"
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -i "/^\s*keyboardLayout[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$keyboardLayout\"/" ./hosts/$hostName/variables.nix
|
||||||
|
|
||||||
echo "-----"
|
echo "-----"
|
||||||
|
|
||||||
installusername=$(echo $USER)
|
installusername=$(echo $USER)
|
||||||
|
Loading…
Reference in New Issue
Block a user