audio
This commit is contained in:
15
modules/package-collections/perf.nix
Normal file
15
modules/package-collections/perf.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ pkgs }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
perf
|
||||
hotspot
|
||||
(writeShellScriptBin "start-recording" ''
|
||||
PID=$(pgrep $1)
|
||||
if [ -z "$PID" ]; then
|
||||
echo "Process $1 not found."
|
||||
exit 1
|
||||
fi
|
||||
sudo perf record -F 999 -p $PID -g
|
||||
'')
|
||||
];
|
||||
}
|
||||
@@ -9,6 +9,7 @@ rec {
|
||||
kop-monitor = pkgs.callPackage ./kop-monitor/default.nix { };
|
||||
kop-newproject = pkgs.callPackage ./kop-newproject/default.nix { };
|
||||
kop-website = pkgs.callPackage ./website/default.nix { inherit kop-hub ente-frontend; };
|
||||
kop-audio = pkgs.callPackage ./kop-audio/default.nix { };
|
||||
scheibnkleister-presence = pkgs.callPackage ./scheibnkleister-presence/default.nix { };
|
||||
custom-sddm-astronaut = pkgs.callPackage ./sddm-astronaut/default.nix { };
|
||||
mangal-patched = pkgs.callPackage ./mangal/default.nix { };
|
||||
|
||||
34
pkgs/kop-audio/default.nix
Normal file
34
pkgs/kop-audio/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
libopus,
|
||||
libpulseaudio,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "kop-audio";
|
||||
version = "0.0.1";
|
||||
|
||||
src = fetchGit {
|
||||
url = "git@github.com:kropatz/kop-audio.git";
|
||||
ref = "master";
|
||||
rev = "431a8dd069eb8b5ae56d49ee20652ba2fc1c2969";
|
||||
};
|
||||
buildInputs = [
|
||||
libopus
|
||||
libpulseaudio
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
cargoHash = "sha256-NYzy58PR7SMY1nlAWiESraPod2Wam1KVtgr16q9jm60=";
|
||||
|
||||
meta = {
|
||||
description = "A voice chat application written in Rust";
|
||||
maintainers = [ ];
|
||||
};
|
||||
})
|
||||
@@ -162,17 +162,21 @@
|
||||
|
||||
virtualisation.vmware.guest.enable = true;
|
||||
services.xserver.videoDrivers = [ "vmware" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
kop-audio
|
||||
];
|
||||
|
||||
# 8888 = scheibenmeister skip button
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
25565
|
||||
25566
|
||||
8888
|
||||
30033 # teamspeak6 file transfer port
|
||||
#30033 # teamspeak6 file transfer port
|
||||
];
|
||||
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
9987 # teamspeak6 voice port
|
||||
1234 #kop-audio default port
|
||||
#9987 # teamspeak6 voice port
|
||||
];
|
||||
networking.nftables.tables.ip_drop = {
|
||||
family = "inet";
|
||||
|
||||
Reference in New Issue
Block a user