nixos-config/modules/users/input/default.nix
2021-10-05 23:45:02 +02:00

22 lines
372 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.erwin.input;
in {
options.erwin.input = {
enable = mkOption {
description = "Enable input configuration";
type = types.bool;
default = false;
};
};
config = mkIf (cfg.enable) {
home.keyboard = {
layout = "us";
variant = "colemak";
options = [];
};
};
}