diff --git a/flake.lock b/flake.lock index 2956209..2bc230f 100644 --- a/flake.lock +++ b/flake.lock @@ -117,11 +117,11 @@ ] }, "locked": { - "lastModified": 1713789879, - "narHash": "sha256-4Wt3Bg6uOnvwZcECBZaFEdzlWRlGLgd8DqLL4ugLdxg=", + "lastModified": 1713818326, + "narHash": "sha256-aw3xbVPJauLk/bbrlakIYxKpeuMWzA2feGrkIpIuXd8=", "owner": "nix-community", "repo": "home-manager", - "rev": "46833c3115e8858370880d892748f0927d8193c3", + "rev": "67de98ae6eed5ad6f91b1142356d71a87ba97f21", "type": "github" }, "original": { @@ -174,11 +174,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1713521961, - "narHash": "sha256-EwR8wW9AqJhSIY+0oxWRybUZ32BVKuZ9bjlRh8SJvQ8=", + "lastModified": 1713864415, + "narHash": "sha256-/BPDMJEkrsFAFOsQWhwm31wezlgshPFlLBn34KEUdVA=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "5d48925b815fd202781bfae8fb6f45c07112fdb2", + "rev": "797f8d8082c7cc3259cba7275c699d4991b09ecc", "type": "github" }, "original": { diff --git a/modules/ui/audio.nix b/modules/ui/audio.nix index cdc528b..c8e4bd1 100644 --- a/modules/ui/audio.nix +++ b/modules/ui/audio.nix @@ -7,9 +7,9 @@ with lib; { options = { host.ui.audio = { - enable = mkEnableOption (mdDoc "Enables audio"); - enableLowLatency = mkEnableOption (mdDoc "Enables low-latency audio (may cause crackling) per https://nixos.wiki/wiki/PipeWire#Low-latency_setup "); - }; + enable = mkEnableOption (mdDoc "Enables audio"); + enableLowLatency = mkEnableOption (mdDoc "Enables low-latency audio (may cause crackling) per https://nixos.wiki/wiki/PipeWire#Low-latency_setup "); + }; }; config = mkIf cfg.enable { @@ -29,7 +29,11 @@ with lib; jack.enable = true; }; - # Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup + services.flatpak.packages = mkIf config.host.ui.flatpak.enable [ + "com.github.wwmm.easyeffects" + ]; + + # Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup services.pipewire.extraConfig.pipewire = mkIf cfg.enableLowLatency { "92-low-latency.conf" = { "context.properties" = { @@ -41,4 +45,4 @@ with lib; }; }; }; -} \ No newline at end of file +}