nixos-config/backup/modules/users/input/default.nix

23 lines
372 B
Nix
Raw Normal View History

2021-10-05 23:45:02 +02:00
{ 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 = [];
};
};
}