!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

867 Members
168 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
16 Jan 2025
@mdnlss:matrix.org@mdnlss:matrix.org left the room.03:18:14
@gotha:matrix.orggotha joined the room.06:51:32
@gotha:matrix.orggothahey, I am using direnv with flakes to install dev dependencies. My issue is that some packages are not available for aarch64-darwin (helm for example), I know nix-darwin can install packages using homebrew. Is there a way to install homebrew package via flake and direnv?06:53:44
@weethet:catgirl.cloudWeetHet
In reply to @gotha:matrix.org
hey, I am using direnv with flakes to install dev dependencies.
My issue is that some packages are not available for aarch64-darwin (helm for example), I know nix-darwin can install packages using homebrew.
Is there a way to install homebrew package via flake and direnv?
Brew formulas have dependencies that have to be installed alongside them. Brew also defines builds for those which would be very hard to replicate. It's probably easier to go add aarch64-darwin support for the package you wanna use
07:11:26
@gotha:matrix.orggothathank you, I thought so, but I wanted to check if this is something that is done in general 07:17:38
17 Jan 2025
@netpleb:matrix.orgnetpleb

if I want a flake output of nixosConfigurations.hello-world but need it to exist for each system architecture, is there a trick to do that? Doing this:

let
    forEachSystem = nixpkgs.lib.genAttrs [ 
      "aarch64-darwin"
      "aarch64-linux"
      "x86_64-darwin"
      "x86_64-linux"
    ];
  in {    
nixosConfigurations = forEachSystem (system: {
          # include our module
          self.outputs.nixosModules.default
          ./examples/hello-world-configuration.nix
        ];
      };
};

almost gets me there but it makes me do nix build .#nixosConfigurations.x86_64-linux.hello-world but I want to get rid of that x86_64-linux part of the command and cannot figure out the trick to do so.

23:54:52

Show newer messages


Back to Room ListRoom Version: 6