mirror of
				https://github.com/materusPL/nixos-config
				synced 2025-11-03 22:10:28 +01:00 
			
		
		
		
	materusPC: change audio settings
This commit is contained in:
		
							parent
							
								
									2cd1ceb0b9
								
							
						
					
					
						commit
						53ef892a5b
					
				
							
								
								
									
										60
									
								
								configurations/host/materusPC/audio.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								configurations/host/materusPC/audio.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,60 @@
 | 
			
		||||
{ pkgs, lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  sound.enable = true;
 | 
			
		||||
  security.rtkit.enable = true;
 | 
			
		||||
  services.pipewire = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    audio.enable = true;
 | 
			
		||||
    alsa.enable = true;
 | 
			
		||||
    alsa.support32Bit = true;
 | 
			
		||||
    pulse.enable = true;
 | 
			
		||||
    systemWide = false;
 | 
			
		||||
    jack.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
  hardware.pulseaudio.enable = false;
 | 
			
		||||
 | 
			
		||||
  environment.sessionVariables = let 
 | 
			
		||||
        makePluginPath = format:
 | 
			
		||||
        (lib.makeSearchPath format [
 | 
			
		||||
          "$HOME/.nix-profile/lib"
 | 
			
		||||
          "/run/current-system/sw/lib"
 | 
			
		||||
          "/etc/profiles/per-user/$USER/lib"
 | 
			
		||||
        ])
 | 
			
		||||
        + ":$HOME/.${format}";
 | 
			
		||||
  in
 | 
			
		||||
  {
 | 
			
		||||
    ALSOFT_DRIVERS = "pulse";
 | 
			
		||||
 | 
			
		||||
    DSSI_PATH   = makePluginPath "dssi";
 | 
			
		||||
    LADSPA_PATH = makePluginPath "ladspa";
 | 
			
		||||
    LV2_PATH    = makePluginPath "lv2";
 | 
			
		||||
    LXVST_PATH  = makePluginPath "lxvst";
 | 
			
		||||
    VST_PATH    = makePluginPath "vst";
 | 
			
		||||
    VST3_PATH   = makePluginPath "vst3";
 | 
			
		||||
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.udev = {
 | 
			
		||||
    extraRules = ''
 | 
			
		||||
        KERNEL=="rtc0", GROUP="audio"
 | 
			
		||||
        KERNEL=="hpet", GROUP="audio"
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
  environment.systemPackages = with pkgs; [ 
 | 
			
		||||
    openal
 | 
			
		||||
    pulseaudio
 | 
			
		||||
 | 
			
		||||
    reaper
 | 
			
		||||
 | 
			
		||||
    yabridge
 | 
			
		||||
    yabridgectl
 | 
			
		||||
 | 
			
		||||
    vital
 | 
			
		||||
    odin2
 | 
			
		||||
    surge
 | 
			
		||||
    fire
 | 
			
		||||
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@ -12,6 +12,8 @@
 | 
			
		||||
      ./network.nix
 | 
			
		||||
 | 
			
		||||
      ./kde.nix
 | 
			
		||||
 | 
			
		||||
      ./audio.nix
 | 
			
		||||
    ];
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -70,19 +70,7 @@
 | 
			
		||||
  services.printing.enable = true;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  sound.enable = true;
 | 
			
		||||
  security.rtkit.enable = true;
 | 
			
		||||
  services.pipewire = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    audio.enable = true;
 | 
			
		||||
    alsa.enable = true;
 | 
			
		||||
    alsa.support32Bit = true;
 | 
			
		||||
    pulse.enable = true;
 | 
			
		||||
    systemWide = false;
 | 
			
		||||
    # If you want to use JACK applications, uncomment this
 | 
			
		||||
    jack.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
  hardware.pulseaudio.enable = false;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  services.xserver.libinput.enable = true;
 | 
			
		||||
 | 
			
		||||
@ -108,9 +96,7 @@
 | 
			
		||||
    #     thunderbird
 | 
			
		||||
    #   ];
 | 
			
		||||
  };
 | 
			
		||||
  environment.variables = {
 | 
			
		||||
    ALSOFT_DRIVERS = "pulse";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  environment.sessionVariables = {
 | 
			
		||||
    XDG_CACHE_HOME = "\${HOME}/.cache";
 | 
			
		||||
    XDG_CONFIG_HOME = "\${HOME}/.config";
 | 
			
		||||
@ -266,7 +252,6 @@
 | 
			
		||||
    wineWowPackages.stagingFull
 | 
			
		||||
    winetricks
 | 
			
		||||
    protontricks
 | 
			
		||||
    openal
 | 
			
		||||
    gnupg
 | 
			
		||||
    pinentry
 | 
			
		||||
    pinentry-gnome
 | 
			
		||||
@ -275,7 +260,7 @@
 | 
			
		||||
    monkeysphere
 | 
			
		||||
    gparted
 | 
			
		||||
 | 
			
		||||
    reaper
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    virt-viewer
 | 
			
		||||
 | 
			
		||||
@ -289,7 +274,7 @@
 | 
			
		||||
    bubblewrap
 | 
			
		||||
    bindfs
 | 
			
		||||
 | 
			
		||||
    pulseaudio
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    binutils
 | 
			
		||||
    config.materus.profile.packages.firefox
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user