added aqore-nix & changed nginx settings ebat ego v rot

This commit is contained in:
emptyynes 2025-09-24 16:59:35 +07:00
parent 032a5f4b04
commit 7e2f7a341a
24 changed files with 573 additions and 90 deletions

View file

@ -0,0 +1,65 @@
{ config, pkgs, ... }:
{
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
audio.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
extraConfig.pipewire = {
"00-rnnoise.conf" = {
"context.modules" = [
{
"name" = "libpipewire-module-filter-chain";
"args" = {
"node.description" = "Noise Cancelling source";
"media.name" = "Noise Cancelling source";
"filter.graph" = {
"nodes" = [
{
"type" = "ladspa";
"name" = "rnnoise";
"plugin" = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
"label" = "noise_suppressor_stereo";
"control" = {
"VAD Threshold (%)" = 50.0;
"VAD Grace Period (ms)" = 200;
"Retroactive VAD Grace (ms)" = 0;
};
}
];
};
"audio.position" = [
"FR"
"FL"
];
"capture.props" = {
"node.name" = "capture.rnnoise_source";
"node.passive" = true;
"audio.rate" = 96000;
};
"playback.props" = {
"node.name" = "rnnoise_source";
"media.class" = "Audio/Source";
"media.role" = "Communication";
"audio.rate" = 96000;
};
};
}
];
};
"10-clock-rate" = {
"context.properties" = {
"default.clock.rate" = 96000;
"default.clock.allowed-rates" = [ 44100 48000 96000 ];
"audio.format" = "FLOAT32LE";
};
};
};
};
}

View file

@ -0,0 +1,81 @@
{
lib,
stdenv,
fetchzip,
libusb1,
glibc,
libGL,
xorg,
makeWrapper,
qtx11extras,
wrapQtAppsHook,
autoPatchelfHook,
libX11,
libXtst,
libXi,
libXrandr,
libXinerama
}:
let
dataDir = "var/lib/xppend1v3";
in
stdenv.mkDerivation rec {
pname = "xp-pen-deco-01-v3-driver";
version = "4.0.7-250117";
src = fetchzip {
url = "https://download01.xp-pen.com/file/2025/02/XPPenLinux4.0.7-250117.tar.gz";
name = "xp-pen-deco-01-v3-driver-${version}.tar.gz";
sha256 = "sha256-sH05Qquo2u0npSlv8Par/mn1w/ESO9g42CCGwBauHhU=";
};
nativeBuildInputs = [
wrapQtAppsHook
autoPatchelfHook
makeWrapper
];
dontBuild = true;
dontWrapQtApps = true;
buildInputs = [
libusb1
libX11
libXtst
libXi
libXrandr
libXinerama
glibc
libGL
(lib.getLib stdenv.cc.cc)
qtx11extras
];
installPhase = ''
runHook preInstall
mkdir -p $out/{opt,bin}
cp -r App/usr/lib/pentablet/* $out/opt
chmod +x $out/opt/PenTablet
cp -r App/lib $out/lib
sed -i 's#usr/lib/pentablet#${dataDir}#g' $out/opt/PenTablet
runHook postInstall
'';
postFixup = ''
makeWrapper $out/opt/PenTablet $out/bin/xp-pen-deco-01-v3-driver \
"''${qtWrapperArgs[@]}" \
--run 'if [ "$EUID" -ne 0 ]; then echo "Please run as root."; exit 1; fi' \
--run 'if [ ! -d /${dataDir} ]; then mkdir -p /${dataDir}; cp -r '$out'/opt/conf /${dataDir}; chmod u+w -R /${dataDir}; fi'
'';
meta = with lib; {
homepage = "https://www.xp-pen.com/product/deco-01-v3.html";
description = "Drivers for the XP-PEN Deco 01 v3 drawing tablet";
platforms = [ "x86_64-linux" ];
license = licenses.unfree;
};
}

View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.amdgpu.opencl.enable = true;
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
hardware.graphics.extraPackages = with pkgs; [
rocmPackages.clr.icd
];
hardware.amdgpu.overdrive.enable = true;
hardware.amdgpu.overdrive.ppfeaturemask = "0xffffffff";
environment.systemPackages = with pkgs; [ lact ];
systemd.packages = with pkgs; [ lact ];
systemd.services.lact.wantedBy = [ "multi-user.target" ];
systemd.services.lact.enable = true;
}

View file

@ -0,0 +1,38 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a0aed18c-fc58-4285-96eb-7f169f79fd32";
fsType = "btrfs";
options = [ "subvol=@" "compress=zstd" ];
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/D950-5ABC";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/d2a83fff-f8db-4b53-ab01-40ccfaf0dc3e";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
networking = {
networkmanager.enable = false;
useDHCP = false;
firewall.enable = false;
interfaces = {
eno1 = {
ipv4.addresses = [{
address = "192.168.0.2";
prefixLength = 24;
}];
};
};
defaultGateway = "192.168.0.1";
nameservers = [
"9.9.9.9"
"1.1.1.1"
"8.8.8.8"
];
interfaces.eno1.wakeOnLan.enable = true;
};
services.yggdrasil = {
enable = true;
persistentKeys = true;
settings = {
Peers = [
"tls://arti.project-a.space:666"
"tls://reine.project-a.space:666"
];
IfName = "ygg0";
};
};
}