feat: Added pipewir(currently broken)

This commit is contained in:
Patrick Großmann 2023-01-22 14:17:51 +01:00
parent 5d396a92e1
commit a9ac04717b
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
5 changed files with 47 additions and 4 deletions

View file

@ -11,6 +11,8 @@
./hardware-configuration.nix
#user home configuration
./users
#
./modules/pipewire.nix
];
# Use the systemd-boot EFI boot loader.
@ -96,7 +98,7 @@
initialPassword = "ctie";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDZixkix0KfKuq7Q19whS5FQQg51/AJGB5BiNF/7h/LM"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSXqbGLOeTVFRgeafkCJ1IRMyxl3/VcpLRdAJ7Br3CW"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxD4GOrwrBTG4/qQhm5hoSB2CP7W9g1LPWP11oLGOjQ"
];
shell = pkgs.zsh;
};

38
modules/pipewire.nix Normal file
View file

@ -0,0 +1,38 @@
{
lib,
pkgs,
...
}: {
environment.systemPackages = with pkgs; [pulseaudio pulsemixer];
hardware.pulseaudio.enable = lib.mkForce false;
hardware.bluetooth.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
#jack.enable = true;
pulse.enable = true;
config = {
pipewire."context.properties"."default.clock.allowed-rates" = [
44100
48000
88200
96000
176400
192000
358000
384000
716000
768000
];
pipewire-pulse."stream.properties"."resample.quality" = 15;
client."stream.properties"."resample.quality" = 15;
client-rt."stream.properties"."resample.quality" = 15;
};
};
sound.enable = true;
}

View file

@ -13,9 +13,11 @@
bat
ripgrep
killall
fzf
];
# has to be enabled to support zsh reverse search
programs.fzf.enable = true;
programs.gpg = {
enable = true;
settings = import ../../data/gpg/gpg.conf.nix;
@ -74,11 +76,11 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxD4GOrwrBTG4/qQhm5hoSB2CP7W9g1LPWP11oLGOjQ
defaultEditor = true;
withNodeJs = true;
};
xdg.configFile.nvim = {
recursive = true;
source = ../../data/nvim;
};
programs.git.enable = true;
services.gpg-agent = {
enable = true;

View file

@ -1,4 +1,4 @@
{config,pkgs,...}:
{ config,pkgs,...}:
{
programs.zsh = {
enable = true;

View file

@ -9,6 +9,7 @@
thunderbird
discord
bitwarden
nextcloud-client
];
};
imports = [