Merge pull request #101796 from luc65r/pkg/tilp2

This commit is contained in:
Sandro
2021-01-25 01:11:50 +01:00
committed by GitHub
10 changed files with 349 additions and 54 deletions

View File

@@ -0,0 +1,28 @@
{ 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
];
};
}