This commit is contained in:
Kopatz
2025-12-02 16:49:16 +01:00
parent 8aef660e0e
commit 46f59836cb
4 changed files with 56 additions and 2 deletions

View 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
'')
];
}

View File

@@ -9,6 +9,7 @@ rec {
kop-monitor = pkgs.callPackage ./kop-monitor/default.nix { }; kop-monitor = pkgs.callPackage ./kop-monitor/default.nix { };
kop-newproject = pkgs.callPackage ./kop-newproject/default.nix { }; kop-newproject = pkgs.callPackage ./kop-newproject/default.nix { };
kop-website = pkgs.callPackage ./website/default.nix { inherit kop-hub ente-frontend; }; 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 { }; scheibnkleister-presence = pkgs.callPackage ./scheibnkleister-presence/default.nix { };
custom-sddm-astronaut = pkgs.callPackage ./sddm-astronaut/default.nix { }; custom-sddm-astronaut = pkgs.callPackage ./sddm-astronaut/default.nix { };
mangal-patched = pkgs.callPackage ./mangal/default.nix { }; mangal-patched = pkgs.callPackage ./mangal/default.nix { };

View 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 = [ ];
};
})

View File

@@ -162,17 +162,21 @@
virtualisation.vmware.guest.enable = true; virtualisation.vmware.guest.enable = true;
services.xserver.videoDrivers = [ "vmware" ]; services.xserver.videoDrivers = [ "vmware" ];
environment.systemPackages = with pkgs; [
kop-audio
];
# 8888 = scheibenmeister skip button # 8888 = scheibenmeister skip button
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
25565 25565
25566 25566
8888 8888
30033 # teamspeak6 file transfer port #30033 # teamspeak6 file transfer port
]; ];
networking.firewall.allowedUDPPorts = [ networking.firewall.allowedUDPPorts = [
9987 # teamspeak6 voice port 1234 #kop-audio default port
#9987 # teamspeak6 voice port
]; ];
networking.nftables.tables.ip_drop = { networking.nftables.tables.ip_drop = {
family = "inet"; family = "inet";