tidying code
This commit is contained in:
parent
7011b723e1
commit
27615f2f54
6 changed files with 26 additions and 27 deletions
|
|
@ -1,21 +1,20 @@
|
||||||
## https://nixos.wiki/PipeWire
|
## https://nixos.wiki/PipeWire
|
||||||
## https://github.com/musnix/musnix
|
## https://github.com/musnix/musnix
|
||||||
|
|
||||||
{
|
{ ... }:
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
## Can't remember what this does,
|
||||||
|
## recommended to be enabled though
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
## Not using pulse directly
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
||||||
|
## Using pipewire baybee
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
## Uncomment if ypu(g.) want to use JACK applications
|
## Uncomment if ypu(g.) want to use JACK applications
|
||||||
|
|
@ -25,6 +24,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
support32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
## Low latency config
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
||||||
pipewire."92-low-latency" = {
|
pipewire."92-low-latency" = {
|
||||||
|
|
@ -41,16 +42,20 @@
|
||||||
node.latency = "144/48000";
|
node.latency = "144/48000";
|
||||||
resample.quality = 1;
|
resample.quality = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
context.modules = [ {
|
context.modules = [ {
|
||||||
name = "libpipewire-module-protocol-pulse";
|
name = "libpipewire-module-protocol-pulse";
|
||||||
args = {
|
args = {
|
||||||
pulse.min.req = "144/48000";
|
pulse = {
|
||||||
pulse.default.req = "144/48000";
|
default.req = "144/48000";
|
||||||
pulse.max.req = "144/48000";
|
min.req = "144/48000";
|
||||||
pulse.min.quantum = "144/48000";
|
max.req = "144/48000";
|
||||||
pulse.max.quantum = "144/48000";
|
min.quantum = "144/48000";
|
||||||
|
max.quantum = "144/48000";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@
|
||||||
systemd-networkd-wait-online.enable = lib.mkForce false;
|
systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
## https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
## https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ self, inputs, outputs, lib, config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ self, inputs, outputs, lib, config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
piper # mouse configuration
|
piper # mouse configuration
|
||||||
];
|
];
|
||||||
## These are important apparently :uh:
|
## These are important apparently :uh:
|
||||||
sessionVariables = rec {
|
sessionVariables = {
|
||||||
XDG_CACHE_HOME = "$HOME/.cache";
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
XDG_CONFIG_HOME = "$HOME/.config";
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
XDG_BIN_HOME = "$HOME/.local/bin";
|
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, outputs, lib, config, pkgs, ... }:
|
{ inputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,4 @@
|
||||||
{
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue