diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-04-10 20:56:16 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-04-10 20:56:16 +0200 |
commit | c0e3d0e72d9d636728a5171511e3ce1003203567 (patch) | |
tree | c75fbcfe4802c48fd5162792f38475d74d2cad57 /hosts/sif/default.nix | |
parent | 24207674f36e900fd2aa51787cb70756413962c2 (diff) | |
download | nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar.gz nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar.bz2 nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar.xz nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.zip |
bump
Diffstat (limited to 'hosts/sif/default.nix')
-rw-r--r-- | hosts/sif/default.nix | 131 |
1 files changed, 65 insertions, 66 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index ca2f183b..b750ae69 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
@@ -422,74 +422,73 @@ in { | |||
422 | alsa.support32Bit = true; | 422 | alsa.support32Bit = true; |
423 | pulse.enable = true; | 423 | pulse.enable = true; |
424 | jack.enable = true; | 424 | jack.enable = true; |
425 | media-session.enable = false; | ||
426 | wireplumber.enable = true; | 425 | wireplumber.enable = true; |
427 | config.pipewire = { | 426 | }; |
428 | "context.properties" = { | 427 | environment.etc."pipewire/pipewire.conf.d/custom.conf".source = (pkgs.formats.json {}).generate "custom.conf" { |
429 | "log.level" = 2; | 428 | "context.properties" = { |
430 | "core.daemon" = true; | 429 | "log.level" = 2; |
431 | "core.name" = "pipewire-0"; | 430 | "core.daemon" = true; |
432 | }; | 431 | "core.name" = "pipewire-0"; |
433 | "context.modules" = [ | ||
434 | { | ||
435 | name = "libpipewire-module-rtkit"; | ||
436 | args = { | ||
437 | "nice.level" = -15; | ||
438 | "rt.prio" = 88; | ||
439 | "rt.time.soft" = 200000; | ||
440 | "rt.time.hard" = 200000; | ||
441 | }; | ||
442 | flags = [ "ifexists" "nofail" ]; | ||
443 | } | ||
444 | { name = "libpipewire-module-protocol-native"; } | ||
445 | { name = "libpipewire-module-profiler"; } | ||
446 | { name = "libpipewire-module-metadata"; } | ||
447 | { name = "libpipewire-module-spa-device-factory"; } | ||
448 | { name = "libpipewire-module-spa-node-factory"; } | ||
449 | { name = "libpipewire-module-client-node"; } | ||
450 | { name = "libpipewire-module-client-device"; } | ||
451 | { | ||
452 | name = "libpipewire-module-portal"; | ||
453 | flags = [ "ifexists" "nofail" ]; | ||
454 | } | ||
455 | { | ||
456 | name = "libpipewire-module-access"; | ||
457 | args = {}; | ||
458 | } | ||
459 | { name = "libpipewire-module-adapter"; } | ||
460 | { name = "libpipewire-module-link-factory"; } | ||
461 | { name = "libpipewire-module-session-manager"; } | ||
462 | ]; | ||
463 | }; | 432 | }; |
464 | config.pipewire-pulse = { | 433 | "context.modules" = [ |
465 | "context.properties" = { | 434 | { |
466 | "log.level" = 2; | 435 | name = "libpipewire-module-rtkit"; |
467 | }; | 436 | args = { |
468 | "context.modules" = [ | 437 | "nice.level" = -15; |
469 | { | 438 | "rt.prio" = 88; |
470 | name = "libpipewire-module-rtkit"; | 439 | "rt.time.soft" = 200000; |
471 | args = { | 440 | "rt.time.hard" = 200000; |
472 | "nice.level" = -15; | 441 | }; |
473 | "rt.prio" = 88; | 442 | flags = [ "ifexists" "nofail" ]; |
474 | "rt.time.soft" = 200000; | 443 | } |
475 | "rt.time.hard" = 200000; | 444 | { name = "libpipewire-module-protocol-native"; } |
476 | }; | 445 | { name = "libpipewire-module-profiler"; } |
477 | flags = [ "ifexists" "nofail" ]; | 446 | { name = "libpipewire-module-metadata"; } |
478 | } | 447 | { name = "libpipewire-module-spa-device-factory"; } |
479 | { name = "libpipewire-module-protocol-native"; } | 448 | { name = "libpipewire-module-spa-node-factory"; } |
480 | { name = "libpipewire-module-client-node"; } | 449 | { name = "libpipewire-module-client-node"; } |
481 | { name = "libpipewire-module-adapter"; } | 450 | { name = "libpipewire-module-client-device"; } |
482 | { name = "libpipewire-module-metadata"; } | 451 | { |
483 | { | 452 | name = "libpipewire-module-portal"; |
484 | name = "libpipewire-module-protocol-pulse"; | 453 | flags = [ "ifexists" "nofail" ]; |
485 | args = { | 454 | } |
486 | "server.address" = [ "unix:native" ]; | 455 | { |
487 | }; | 456 | name = "libpipewire-module-access"; |
488 | } | 457 | args = {}; |
489 | ]; | 458 | } |
490 | "stream.properties" = { | 459 | { name = "libpipewire-module-adapter"; } |
491 | "resample.quality" = 1; | 460 | { name = "libpipewire-module-link-factory"; } |
492 | }; | 461 | { name = "libpipewire-module-session-manager"; } |
462 | ]; | ||
463 | }; | ||
464 | environment.etc."pipewire/pipewire-pulse.conf.d/custom.conf".source = (pkgs.formats.json {}).generate "custom.conf" { | ||
465 | "context.properties" = { | ||
466 | "log.level" = 2; | ||
467 | }; | ||
468 | "context.modules" = [ | ||
469 | { | ||
470 | name = "libpipewire-module-rtkit"; | ||
471 | args = { | ||
472 | "nice.level" = -15; | ||
473 | "rt.prio" = 88; | ||
474 | "rt.time.soft" = 200000; | ||
475 | "rt.time.hard" = 200000; | ||
476 | }; | ||
477 | flags = [ "ifexists" "nofail" ]; | ||
478 | } | ||
479 | { name = "libpipewire-module-protocol-native"; } | ||
480 | { name = "libpipewire-module-client-node"; } | ||
481 | { name = "libpipewire-module-adapter"; } | ||
482 | { name = "libpipewire-module-metadata"; } | ||
483 | { | ||
484 | name = "libpipewire-module-protocol-pulse"; | ||
485 | args = { | ||
486 | "server.address" = [ "unix:native" ]; | ||
487 | }; | ||
488 | } | ||
489 | ]; | ||
490 | "stream.properties" = { | ||
491 | "resample.quality" = 1; | ||
493 | }; | 492 | }; |
494 | }; | 493 | }; |
495 | 494 | ||