18 lines
392 B
Nix
18 lines
392 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.plusultra;
|
|
let
|
|
cfg = config.plusultra.cli-apps.wshowkeys;
|
|
in
|
|
{
|
|
options.plusultra.cli-apps.wshowkeys = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable wshowkeys.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
plusultra.user.extraGroups = [ "input" ];
|
|
environment.systemPackages = with pkgs; [ wshowkeys ];
|
|
};
|
|
}
|