From 2460fe2183f7a34abf11728c397cbb786a6de088 Mon Sep 17 00:00:00 2001 From: cybrneko Date: Tue, 7 Jul 2026 20:21:56 -0500 Subject: [PATCH] musnix integration --- configuration.nix | 9 +++++++++ flake.lock | 37 ++++++++++++++++++++++++++++++++++++- flake.nix | 5 ++++- 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index ee4bae5..004989a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -82,6 +82,15 @@ #media-session.enable = true; }; + services.pipewire.extraConfig.pipewire."10-low-latency" = { + "context.properties" = { + "default.clock.rate" = 48000; + "default.clock.quantum" = 128; + "default.clock.min-quantum" = 32; + "default.clock.max-quantum" = 2048; + }; + }; + # realtime audio shenanigans security.pam.loginLimits = [ { diff --git a/flake.lock b/flake.lock index a95156b..344b900 100644 --- a/flake.lock +++ b/flake.lock @@ -21,6 +21,24 @@ "type": "github" } }, + "musnix": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1777848538, + "narHash": "sha256-Dj51C0NWsglqRrCpdmMr2nFiYacFOid1Tor4H9yG2HY=", + "owner": "musnix", + "repo": "musnix", + "rev": "8548782f0d1d0928daa3fffde8a008f72219a3f3", + "type": "github" + }, + "original": { + "owner": "musnix", + "repo": "musnix", + "type": "github" + } + }, "nix-flatpak": { "locked": { "lastModified": 1780908363, @@ -37,6 +55,22 @@ } }, "nixpkgs": { + "locked": { + "lastModified": 1777268161, + "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { "locked": { "lastModified": 1782847225, "narHash": "sha256-JC9PjqKYG9ve5U8aDOLQipp3+KLANBHUvGdLZlxzdKI=", @@ -55,8 +89,9 @@ "root": { "inputs": { "home-manager": "home-manager", + "musnix": "musnix", "nix-flatpak": "nix-flatpak", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs_2" } } }, diff --git a/flake.nix b/flake.nix index 503a59d..c776421 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nix-flatpak.url = "github:gmodena/nix-flatpak"; + musnix.url = "github:musnix/musnix"; home-manager = { url = "github:nix-community/home-manager/release-26.05"; @@ -11,7 +12,7 @@ }; }; - outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }: + outputs = { self, nixpkgs, home-manager, nix-flatpak, musnix, ... }: let system = "x86_64-linux"; in { @@ -20,6 +21,8 @@ modules = [ ./configuration.nix + + musnix.nixosModules.musnix home-manager.nixosModules.home-manager