summary refs log tree commit diff stats
path: root/keyboard.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2022-12-17 16:29:41 +0100
committersils <sils@sils.li>2022-12-17 16:29:41 +0100
commitfb50c670b45393c80192c05072eaeadaa637215d (patch)
tree328df5be182669676790a11e193c1915e5354839 /keyboard.nix
parentnew restic cache dir (diff)
downloadnix-config-fb50c670b45393c80192c05072eaeadaa637215d.tar.gz
nix-config-fb50c670b45393c80192c05072eaeadaa637215d.zip
keyboard layout
Diffstat (limited to '')
-rw-r--r--keyboard.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboard.nix b/keyboard.nix
new file mode 100644
index 0000000..be64815
--- /dev/null
+++ b/keyboard.nix
@@ -0,0 +1,26 @@
+{ config, pkgs, ... }:
+	
+	let
+	  compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
+	    ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./files/neoqwertz.xkb} $out
+	  '';
+	in
+{
+	#services.xserver = {
+  	#	layout = "de, de";
+  	#	xkbVariant = ",neo";
+  	#	xkbOptions = "grp:win_space_toggle";
+	#};
+
+	  environment.systemPackages = [ pkgs.xorg.xkbcomp ];
+	  services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
+
+	i18n.defaultLocale = "en_US.UTF-8";
+
+   	console = {
+     		font = "Lat2-Terminus16";
+     		#keyMap = "de";
+     		useXkbConfig = true; # use xkbOptions in tty.
+   	};
+}
+