summaryrefslogtreecommitdiff
path: root/hosts/sif
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/sif')
-rw-r--r--hosts/sif/default.nix134
1 files changed, 68 insertions, 66 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix
index b90e7162..319dccd9 100644
--- a/hosts/sif/default.nix
+++ b/hosts/sif/default.nix
@@ -438,72 +438,74 @@ in {
438 pulse.enable = true; 438 pulse.enable = true;
439 jack.enable = true; 439 jack.enable = true;
440 wireplumber.enable = true; 440 wireplumber.enable = true;
441 }; 441 extraConfig = {
442 environment.etc."pipewire/pipewire.conf.d/custom.conf".source = (pkgs.formats.json {}).generate "custom.conf" { 442 pipewire."10-custom" = {
443 "context.properties" = { 443 "context.properties" = {
444 "log.level" = 2; 444 "log.level" = 2;
445 "core.daemon" = true; 445 "core.daemon" = true;
446 "core.name" = "pipewire-0"; 446 "core.name" = "pipewire-0";
447 };
448 "context.modules" = [
449 {
450 name = "libpipewire-module-rtkit";
451 args = {
452 "nice.level" = -15;
453 "rt.prio" = 88;
454 "rt.time.soft" = 200000;
455 "rt.time.hard" = 200000;
456 }; 447 };
457 flags = [ "ifexists" "nofail" ]; 448 "context.modules" = [
458 } 449 {
459 # { name = "libpipewire-module-protocol-native"; } 450 name = "libpipewire-module-rtkit";
460 { name = "libpipewire-module-profiler"; } 451 args = {
461 # { name = "libpipewire-module-metadata"; } 452 "nice.level" = -15;
462 { name = "libpipewire-module-spa-device-factory"; } 453 "rt.prio" = 88;
463 { name = "libpipewire-module-spa-node-factory"; } 454 "rt.time.soft" = 200000;
464 # { name = "libpipewire-module-client-node"; } 455 "rt.time.hard" = 200000;
465 # { name = "libpipewire-module-client-device"; } 456 };
466 { 457 flags = [ "ifexists" "nofail" ];
467 name = "libpipewire-module-portal"; 458 }
468 flags = [ "ifexists" "nofail" ]; 459 # { name = "libpipewire-module-protocol-native"; }
469 } 460 { name = "libpipewire-module-profiler"; }
470 { 461 # { name = "libpipewire-module-metadata"; }
471 name = "libpipewire-module-access"; 462 { name = "libpipewire-module-spa-device-factory"; }
472 args = {}; 463 { name = "libpipewire-module-spa-node-factory"; }
473 } 464 # { name = "libpipewire-module-client-node"; }
474 { name = "libpipewire-module-adapter"; } 465 # { name = "libpipewire-module-client-device"; }
475 { name = "libpipewire-module-link-factory"; } 466 {
476 { name = "libpipewire-module-session-manager"; } 467 name = "libpipewire-module-portal";
477 ]; 468 flags = [ "ifexists" "nofail" ];
478 }; 469 }
479 environment.etc."pipewire/pipewire-pulse.conf.d/custom.conf".source = (pkgs.formats.json {}).generate "custom.conf" { 470 {
480 "context.properties" = { 471 name = "libpipewire-module-access";
481 "log.level" = 2; 472 args = {};
482 }; 473 }
483 "context.modules" = [ 474 { name = "libpipewire-module-adapter"; }
484 { 475 { name = "libpipewire-module-link-factory"; }
485 name = "libpipewire-module-rtkit"; 476 { name = "libpipewire-module-session-manager"; }
486 args = { 477 ];
487 "nice.level" = -15; 478 };
488 "rt.prio" = 88; 479 pipewire-pulse."10-custom" = {
489 "rt.time.soft" = 200000; 480 "context.properties" = {
490 "rt.time.hard" = 200000; 481 "log.level" = 2;
491 }; 482 };
492 flags = [ "ifexists" "nofail" ]; 483 "context.modules" = [
493 } 484 {
494 # { name = "libpipewire-module-protocol-native"; } 485 name = "libpipewire-module-rtkit";
495 # { name = "libpipewire-module-client-node"; } 486 args = {
496 { name = "libpipewire-module-adapter"; } 487 "nice.level" = -15;
497 # { name = "libpipewire-module-metadata"; } 488 "rt.prio" = 88;
498 # { 489 "rt.time.soft" = 200000;
499 # name = "libpipewire-module-protocol-pulse"; 490 "rt.time.hard" = 200000;
500 # args = { 491 };
501 # "server.address" = [ "unix:native" ]; 492 flags = [ "ifexists" "nofail" ];
502 # }; 493 }
503 # } 494 # { name = "libpipewire-module-protocol-native"; }
504 ]; 495 # { name = "libpipewire-module-client-node"; }
505 "stream.properties" = { 496 { name = "libpipewire-module-adapter"; }
506 "resample.quality" = 1; 497 # { name = "libpipewire-module-metadata"; }
498 # {
499 # name = "libpipewire-module-protocol-pulse";
500 # args = {
501 # "server.address" = [ "unix:native" ];
502 # };
503 # }
504 ];
505 "stream.properties" = {
506 "resample.quality" = 1;
507 };
508 };
507 }; 509 };
508 }; 510 };
509 511
@@ -538,7 +540,7 @@ in {
538 opengl = { 540 opengl = {
539 enable = true; 541 enable = true;
540 driSupport32Bit = true; 542 driSupport32Bit = true;
541 setLdLibraryPath = true; 543 # setLdLibraryPath = true;
542 }; 544 };
543 545
544 firmware = [ pkgs.firmwareLinuxNonfree ]; 546 firmware = [ pkgs.firmwareLinuxNonfree ];
@@ -547,7 +549,7 @@ in {
547 nitrokey.enable = true; 549 nitrokey.enable = true;
548 }; 550 };
549 551
550 sound.enable = true; 552 # sound.enable = true;
551 553
552 nix = { 554 nix = {
553 settings.auto-optimise-store = true; 555 settings.auto-optimise-store = true;