nixos/tilp2: init

wip/yesman
luc65r 4 years ago committed by Lucas Ransan
parent 3c5f402e6e
commit 1900b6e2d7
No known key found for this signature in database
GPG Key ID: 37E8293E1B8B2307
  1. 1
      nixos/modules/module-list.nix
  2. 28
      nixos/modules/programs/tilp2.nix

@ -169,6 +169,7 @@
./programs/sway.nix
./programs/system-config-printer.nix
./programs/thefuck.nix
./programs/tilp2.nix
./programs/tmux.nix
./programs/traceroute.nix
./programs/tsm-client.nix

@ -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
];
};
}
Loading…
Cancel
Save