ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
28 lines
449 B
Nix
28 lines
449 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.tilp2;
|
|
|
|
in {
|
|
options.programs.tilp2 = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Enable tilp2 and udev rules for supported calculators.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.udev.packages = [
|
|
pkgs.libticables2
|
|
];
|
|
|
|
environment.systemPackages = [
|
|
pkgs.tilp2
|
|
];
|
|
};
|
|
}
|