mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-03-10 02:58:17 +01:00
Merge branch 'console_font' into 'main'
Add variable for console keymap See merge request Zaney/zaneyos!58
This commit is contained in:
commit
51178083c6
@ -7,7 +7,7 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (import ./variables.nix) keyboardLayout;
|
||||
inherit (import ./variables.nix) keyboardLayout consoleKeyMap;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@ -466,7 +466,7 @@ in
|
||||
enable = true;
|
||||
};
|
||||
|
||||
console.keyMap = "${keyboardLayout}";
|
||||
console.keyMap = "${consoleKeyMap}";
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
|
@ -13,4 +13,5 @@
|
||||
browser = "brave"; # Set Default Browser (google-chrome-stable for google-chrome)
|
||||
terminal = "kitty"; # Set Default System Terminal
|
||||
keyboardLayout = "us";
|
||||
consoleKeyMap = "us";
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (import ./variables.nix) keyboardLayout;
|
||||
inherit (import ./variables.nix) keyboardLayout consoleKeyMap;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@ -463,7 +463,7 @@ in
|
||||
enable32Bit = false;
|
||||
};
|
||||
|
||||
console.keyMap = "${keyboardLayout}";
|
||||
console.keyMap = "${consoleKeyMap}";
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
|
@ -15,4 +15,5 @@ monitor=eDP-1,2560x1600@60,0x0,1.25
|
||||
browser = "brave"; # Set Default Browser (google-chrome-stable for google-chrome)
|
||||
terminal = "kitty"; # Set Default System Terminal
|
||||
keyboardLayout = "us";
|
||||
consoleKeyMap = "us";
|
||||
}
|
||||
|
@ -75,6 +75,15 @@ sed -i "/^\s*keyboardLayout[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$keyboardL
|
||||
|
||||
echo "-----"
|
||||
|
||||
read -rp "Enter your console keymap: [ us ] " consoleKeyMap
|
||||
if [ -z "$consoleKeyMap" ]; then
|
||||
consoleKeyMap="us"
|
||||
fi
|
||||
|
||||
sed -i "/^\s*consoleKeyMap[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$consoleKeyMap\"/" ./hosts/$hostName/variables.nix
|
||||
|
||||
echo "-----"
|
||||
|
||||
installusername=$(echo $USER)
|
||||
sed -i "/^\s*username[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$installusername\"/" ./flake.nix
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user