21 lines
401 B
Nix
21 lines
401 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.unstable.wally-cli ];
|
|
|
|
hardware.keyboard.zsa.enable = true;
|
|
|
|
user.extraGroups = [ "plugdev" ];
|
|
|
|
services.xserver.xkbOptions = "compose:ralt";
|
|
};
|
|
}
|