about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-08-03 23:06:07 +0200
committerGitHub <noreply@github.com>2022-08-03 23:06:07 +0200
commit41e41f1d07ba7b695cbcbbfcbc8cabc4ba83a411 (patch)
treedf3d901603c2969105e5d0514e836e8f154220e6 /nixos/modules/programs
parent5234ee253455aad63a8d66dfda03271c9c950d7f (diff)
parente5888c24362e7685b04549c29ce7b63073328feb (diff)
Merge pull request #184027 from Shawn8901/installNoisetorchWithProgram
noisetorch: Add noisetorch to systemPackages with programs.noisetorch enable
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/noisetorch.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/programs/noisetorch.nix b/nixos/modules/programs/noisetorch.nix
index c69b2581296f0..d5e004da73eb6 100644
--- a/nixos/modules/programs/noisetorch.nix
+++ b/nixos/modules/programs/noisetorch.nix
@@ -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 ];
   };
 }