!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

137 Members
34 Servers

Load older messages


SenderMessageTime
28 Sep 2022
@Minijackson:matrix.orgMinijacksonhello all! 👋21:02:17
@magnetophon:matrix.orgmagnetophonhi Minijackson, good to see you here!21:03:24
29 Sep 2022
@mindtree:matrix.orgmindtree joined the room.23:02:42
@mindtree:matrix.orgmindtreeHey folks, very nice to find this channel :)23:56:10
@mindtree:matrix.orgmindtreeDoes anyone happen to be both successfully using flakes for their NixOS configuration and have audio plugins working in their DAW?23:56:46
@mindtree:matrix.orgmindtreeEver since I switched all my config over to flakes, I've noticed DAWs have stopped picking up any of my plugins23:57:14
@mindtree:matrix.orgmindtreeI think I have the env vars from musnix set, but I think the paths might have changed?23:58:00
@mindtree:matrix.orgmindtreeJust curious if anyone knows off the top of their head before I start diving through nixpkgs :)23:58:26
@mindtree:matrix.orgmindtreeI posted this a while ago, but finally gonna set aside some time to sort it out today https://discourse.nixos.org/t/audio-plugins-no-longer-detected-after-switching-to-nix-2-4-flakes/17177/323:59:08
30 Sep 2022
@Minijackson:matrix.orgMinijackson
In reply to @mindtree:matrix.org
Does anyone happen to be both successfully using flakes for their NixOS configuration and have audio plugins working in their DAW?
hello! welcome! I have such system at home, but I'm not sure why having your config as a flake or not should change your overall configuration
07:09:34
@Minijackson:matrix.orgMinijackson if you use musnix and have musnix.enable = true, musnix should set your plugin paths env vars: https://github.com/musnix/musnix/blob/c28a81cfdc33cbe95bce3aa853da5d8e5d8f5d00/modules/base.nix#L79 07:11:16
@Minijackson:matrix.orgMinijackson do you have the value of your e.g. $LV2_PATH? 07:11:46
@mindtree:matrix.orgmindtree Ahh thanks for the link! I've been avoiding musnix as I think it might be a little overkill for what I'm after, but I'll take a closer look at that makePluginPath function - I'm sure it'll have the answers I'm after :) 07:12:50
@mindtree:matrix.orgmindtree
In reply to @Minijackson:matrix.org
do you have the value of your e.g. $LV2_PATH?
$ echo $LV2_PATH 
/home/mindtree/.lv2:/home/mindtree/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2
07:13:05
@mindtree:matrix.orgmindtree ^ This was copied long ago from a much older musnix I think - I thought musnix might have broken since too, but if it's working for you now they must have addressed whatever issue I was running into since 07:14:31
@Minijackson:matrix.orgMinijackson IIRC, this means that your plugins installed through users.users.mindtree.packages won't be found, since you don't have the path /etc/profiles/per-user/$USER/lib/lv2 07:15:48
@Minijackson:matrix.orgMinijackson but it should work for globally installed plugins, or plugins installed through nix-env 07:16:28
@mindtree:matrix.orgmindtree
In reply to @Minijackson:matrix.org
IIRC, this means that your plugins installed through users.users.mindtree.packages won't be found, since you don't have the path /etc/profiles/per-user/$USER/lib/lv2
Ahhh that could be it! Cheers
07:17:06
@alejandrosame:matrix.org@alejandrosame:matrix.orgI'm very confused about how to add musnix as a flake and later call musnix.enable on my configuration.nix file. Does anybody have a lonk to a working example so I can see the proper setup? The repo is not too clear on this for a newbie that's still figuring the Nix ecosystem.18:02:54
@alejandrosame:matrix.org@alejandrosame:matrix.org* I'm very confused about how to add musnix as a flake and later call musnix.enable on my configuration.nix file. Does anybody have a link to a working example so I can see the proper setup? The repo is not too clear on this for a newbie that's still figuring the Nix ecosystem.18:03:09
@mukayu:matrix.orgmukayu joined the room.18:06:36
@Minijackson:matrix.orgMinijackson so, musnix is another repository containing Nix files, which you can track using inputs, this allows your configuration to use a fixed version of that repo, while allowing manual upgrades 21:11:04
@Minijackson:matrix.orgMinijackson you can add this input by adding near the top inputs.musnix.url = "github:musnix/musnix"; 21:11:28
@Minijackson:matrix.orgMinijackson the usefulness of the musnix flakes itself comes from its outputs, which you can look at by doing nix flake show github:musnix/musnix 21:12:15
@Minijackson:matrix.orgMinijackson

which gives:

github:musnix/musnix/6eb5c1714fbb7622b7270be78243365f9c55c9cb
├───nixosModule: NixOS module
└───nixosModules
    └───musnix: NixOS module
21:12:36
@Minijackson:matrix.orgMinijackson * you can add this input by adding near the top inputs.musnix.url = "github:musnix/musnix";, and adding musnix to the arguments of the outputs function. 21:13:17
@Minijackson:matrix.orgMinijackson so you're interested in either musnix.nixosModule and musnix.nixosModules.musnix 21:13:30
@Minijackson:matrix.orgMinijackson (nixosModule was deprecated for nixosModules.default, so I suggest using the second one) 21:13:53
@Minijackson:matrix.orgMinijackson so, in your nixosSystem call, you can add in your modules / imports the expression musnix.nixosModules.musnix 21:14:27
@Minijackson:matrix.orgMinijackson
{
  description = "...";

  inputs.nixpkgs.url = "...";
  inputs.musnix.url = "github:musnix/musnix";

  outputs = { self, nixpkgs, musnix }: {
    nixosConfigurations."myConfig" = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";

      modules = [
        musnix.nixosModules.musnix
        # ...
      ];
    };
  };
}
21:15:59

Show newer messages


Back to Room ListRoom Version: 9