From 0646bbab027dff393ac0bdb89fc290d73fb492a0 Mon Sep 17 00:00:00 2001 From: tootbrute Date: Wed, 14 May 2025 17:35:29 +0800 Subject: [PATCH] added distrobox --- greynix/configuration.nix | 12 ++++++++++++ greynix/hardware-configuration.nix | 15 ++++++++++++++- mods/base.nix | 2 ++ test.mp3 | Bin 0 -> 92488 bytes 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 test.mp3 diff --git a/greynix/configuration.nix b/greynix/configuration.nix index 65a4a0c..23f80b7 100644 --- a/greynix/configuration.nix +++ b/greynix/configuration.nix @@ -29,6 +29,18 @@ ]; }; + # Audio + security.rtkit.enable = true; + services.pipewire = { + enable = true; # if not already enabled + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + wireplumber.enable = true; + # If you want to use JACK applications, uncomment this + #jack.enable = true; + }; + # Services: # ===================================== diff --git a/greynix/hardware-configuration.nix b/greynix/hardware-configuration.nix index 24418e6..0bf9ba3 100644 --- a/greynix/hardware-configuration.nix +++ b/greynix/hardware-configuration.nix @@ -10,8 +10,18 @@ boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + # added snd_hda_intel for microphone + boot.kernelModules = [ "kvm-intel" "snd_hda_intel"]; boot.extraModulePackages = [ ]; + #microphone start + boot.extraModprobeConfig = '' + options snd-hda-intel model=auto + ''; + boot.kernelParams = [ "snd-intel-dspcfg.dsp_driver=1" ]; + boot.blacklistedKernelModules = [ + "snd_soc_avs" + ]; + # microphone stuff end fileSystems."/" = { device = "/dev/disk/by-uuid/7f9595fb-2076-4f33-8834-ce8485bfc56f"; @@ -44,4 +54,7 @@ hardware.bluetooth.enable = true; # enables support for Bluetooth hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + # for sound drivers + hardware.enableAllFirmware = true; + } diff --git a/mods/base.nix b/mods/base.nix index 9b39bc5..4d3c10e 100644 --- a/mods/base.nix +++ b/mods/base.nix @@ -137,6 +137,8 @@ # emulation quickemu + #emulation + distrobox # terminal editors neovim diff --git a/test.mp3 b/test.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..7225dd775303b9a3fb038fda19276c7bd830163f GIT binary patch literal 92488 zcmeIuu?d7w07Svn3M@d-O2i8kE;Z2jg9rv@7I3AXMHtS$bfa0m^E{qaw$C~p*WEWs zs;99_enV2H$zJZ#J|81MfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZ zfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&U zAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C7 z2oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N z0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+ z009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBly zK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF z5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk HZwveZRw)O~ literal 0 HcmV?d00001