1

update audio

This commit is contained in:
2022-08-07 20:27:28 +02:00
parent fcc5ffbabd
commit 519b8d9e7a
2 changed files with 6 additions and 16 deletions

View File

@ -1,10 +0,0 @@
{ config, lib, pkgs, home, ... }:
pkgs.makeDesktopItem {
name = "carla-guitar";
exec =
"PIPEWIRE_LATENCY=256/48000 gamemoderun carla ${home.homeDirectory}/Documents/Carla/GuitarDefault.carxp";
genericName = "Guitar Amp Simulation";
categories = [ "Music" "Audio" ];
desktopName = "Carla Guitar Amp";
}

View File

@ -14,7 +14,7 @@ in {
description = "Configure for realtime audio and enable a bunch of music production tools"; description = "Configure for realtime audio and enable a bunch of music production tools";
}; };
carla = mkOption { carla.enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Enable Carla + guitar-specific stuff"; description = "Enable Carla + guitar-specific stuff";
@ -27,7 +27,7 @@ in {
description = "Enable yabridge + yabridgectl"; description = "Enable yabridge + yabridgectl";
}; };
autosync = mkOption { autoSync = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Sync yabridge plugins on nixos-rebuild"; description = "Sync yabridge plugins on nixos-rebuild";
@ -52,7 +52,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; (mkMerge [ home.packages = with pkgs; (mkMerge [
(mkIf cfg.carla [ carla ]) (mkIf cfg.carla.enable [ carla ])
(mkIf cfg.yabridge.enable [ yabridge yabridgectl ]) (mkIf cfg.yabridge.enable [ yabridge yabridgectl ])
(mkIf cfg.bitwig.enable [ bitwig-studio ]) (mkIf cfg.bitwig.enable [ bitwig-studio ])
cfg.extraPackages cfg.extraPackages
@ -60,7 +60,7 @@ in {
# NOTE: This desktop entry is created in /etc/profiles/per-user/christoph/share/applications # NOTE: This desktop entry is created in /etc/profiles/per-user/christoph/share/applications
# This location is part of XDG_DATA_DIRS # This location is part of XDG_DATA_DIRS
xdg.desktopEntries.guitar = mkIf cfg.carla { xdg.desktopEntries.guitar = mkIf cfg.carla.enable {
name = "Guitar Amp (Carla)"; name = "Guitar Amp (Carla)";
genericName = "Guitar Amp Simulation"; genericName = "Guitar Amp Simulation";
icon = "carla"; icon = "carla";
@ -70,7 +70,7 @@ in {
}; };
home.activation = (mkMerge [ home.activation = (mkMerge [
(mkIf cfg.carla { (mkIf cfg.carla.enable {
# The module includes the default carla project with ArchetypePetrucci + ArchetypeGojira # The module includes the default carla project with ArchetypePetrucci + ArchetypeGojira
# TODO: I don't know if I should keep this # TODO: I don't know if I should keep this
@ -81,7 +81,7 @@ in {
''; '';
}) })
(mkIf cfg.yabridge.autosync { (mkIf cfg.yabridge.autoSync {
syncYabridge = hm.dag.entryAfter [ "writeBoundary" ] '' syncYabridge = hm.dag.entryAfter [ "writeBoundary" ] ''
yabridgectl sync yabridgectl sync
''; '';