Merge pull request #184027 from Shawn8901/installNoisetorchWithProgram

noisetorch: Add noisetorch to systemPackages with programs.noisetorch enable
This commit is contained in:
Jonas Heinrich 2022-08-03 23:06:07 +02:00 committed by GitHub
commit 41e41f1d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,8 @@
with lib;
let cfg = config.programs.noisetorch;
in {
in
{
options.programs.noisetorch = {
enable = mkEnableOption "noisetorch + setcap wrapper";
@ -24,5 +25,6 @@ in {
capabilities = "cap_sys_resource=+ep";
source = "${cfg.package}/bin/noisetorch";
};
environment.systemPackages = [ cfg.package ];
};
}