1 { config, pkgs, lib, ... }:
5 let cfg = config.programs.noisetorch;
8 options.programs.noisetorch = {
9 enable = mkEnableOption (lib.mdDoc "noisetorch + setcap wrapper");
13 default = pkgs.noisetorch;
14 defaultText = literalExpression "pkgs.noisetorch";
15 description = lib.mdDoc ''
16 The noisetorch package to use.
21 config = mkIf cfg.enable {
22 security.wrappers.noisetorch = {
25 capabilities = "cap_sys_resource=+ep";
26 source = "${cfg.package}/bin/noisetorch";
28 environment.systemPackages = [ cfg.package ];