summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 14:57:39 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commitcf85d19331d519f99ffd8652b6a279acfaa3f9be (patch)
tree7fa06fd9b749b49af036bc8bf499ba64b7d731f8
parent2a7fdeb9dfa214e1eef0b7cdabc970b69e65c25d (diff)
downloadnixfiles-cf85d19331d519f99ffd8652b6a279acfaa3f9be.tar.lz
nixfiles-cf85d19331d519f99ffd8652b6a279acfaa3f9be.tar.zst
nixfiles-cf85d19331d519f99ffd8652b6a279acfaa3f9be.zip
Add colemak module
-rw-r--r--modules/colemak.nix17
-rw-r--r--satoshipad.nix1
2 files changed, 18 insertions, 0 deletions
diff --git a/modules/colemak.nix b/modules/colemak.nix
new file mode 100644
index 00000000..53a4901e
--- /dev/null
+++ b/modules/colemak.nix
@@ -0,0 +1,17 @@
+{ config, pkgs, ... }:
+
+{ i18n.consoleKeyMap = "colemak/en-latin9";
+  kmscon = {
+    extraConfig = ''
+      xkb-model=pc104
+      xkb-layout=us
+      xkb-variant=colemak
+      xkb-options="altwin:prtsc_rwin"
+    '';
+  };
+  xserver = {
+    layout = "us,us";
+    xkbVariant = "colemak,";
+    xkbOptions = "grp:shifts_toggle,altwin:prtsc_rwin";
+  };
+}
diff --git a/satoshipad.nix b/satoshipad.nix
index ed688e21..923a3b26 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -14,6 +14,7 @@
     ./modules/shell.nix
     ./modules/dotfiles.nix
     ./modules/berlin.nix
+    ./modules/colemak.nix
   ];
 
   networking.hostName = "satoshipad";