a75c64d04a
This puts a hard dependency on 20.09, but that's to be expected.
20 lines
549 B
Nix
20 lines
549 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.my;
|
|
let cfg = config.modules.hardware.ergodox;
|
|
in {
|
|
options.modules.hardware.ergodox = {
|
|
enable = mkBoolOpt false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
user.packages = [ pkgs.teensy-loader-cli ];
|
|
# 'teensyload FILE' to load a new config into the ergodox
|
|
environment.shellAliases.teensyload =
|
|
"sudo teensy-loader-cli -w -v --mcu=atmega32u4";
|
|
# Make right-alt the compose key, so ralt+a+a = å or ralt+o+/ = ø
|
|
services.xserver.xkbOptions = "compose:ralt";
|
|
};
|
|
}
|