!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

881 Members
180 Servers

Load older messages


SenderMessageTime
12 Jan 2025
@42willow:matrix.orgwillow joined the room.07:52:32
@42willow:matrix.orgwillow removed their profile picture.08:01:44
@42willow:matrix.orgwillow changed their display name from Willowshine to willow.08:02:15
@nakibrayane:matrix.orgRayane Nakib (ريّان نقيب) joined the room.12:37:06
14 Jan 2025
@kimblo:matrix.org@kimblo:matrix.org left the room.11:43:54
15 Jan 2025
@joelmatrixaccount:matrix.orgJoel joined the room.17:26:04
16 Jan 2025
@mdnlss:matrix.org@mdnlss:matrix.org changed their display name from mdnlss to smolpatches.03:12:03
@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
18 Jan 2025
@netpleb:matrix.orgnetpleb figured it out. Needed to us the // operator: nixosConfigurations = forEachSystem (system: { hello-world = .... }) // { hello-world = self.nixosConfigurations.x86_64-linux.hello-world; }; 01:14:17
@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: {
   hello-world = nixpkgs.lib.nixosSystem {
        inherit system;
        modules = [
          # include our module
          self.outputs.nixosModules.default
          ./examples/hello-world-configuration.nix
        ];
      };
      default = self.nixosConfiguration.${system}.hello-world;
};

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.

01:15:17
@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: {
   hello-world = nixpkgs.lib.nixosSystem {
        inherit system;
        modules = [
          # include our module
          self.outputs.nixosModules.default
          ./examples/hello-world-configuration.nix
        ];
      };
      default = self.nixosConfiguration.${system}.hello-world;
});

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.

01:15:40
19 Jan 2025
@wiiplayer2:matrix.orgWaldemar Tomme (they/them) changed their display name from Waldemar Tomme to Waldemar Tomme (they/them).08:17:03
21 Jan 2025
@zkourouma:matrix.orgrouma7 changed their profile picture.13:15:38
22 Jan 2025
@nm0i:matrix.org@nm0i:matrix.org left the room.13:23:56
23 Jan 2025
@level8broccoli:matrix.org@level8broccoli:matrix.org joined the room.22:28:40
@thedragon44:matrix.org@thedragon44:matrix.org changed their profile picture.23:45:10
@thedragon44:matrix.org@thedragon44:matrix.org changed their profile picture.23:51:33
24 Jan 2025
@thedragon44:matrix.org@thedragon44:matrix.org changed their profile picture.01:18:39
25 Jan 2025
@tajo48:matrix.orgtajo48 joined the room.02:53:51
@tajo48:matrix.orgtajo48

ayoooo guys im having trouble setting wifi passwords in my nix flake so that my laptop will connect to my home wifi network by default
i have setup like this:

networking.wireless.enable = true;

networking.wireless.networks = {
  "Bonkek" = {
    psk = "Kek12";
  };
};

where my hotspot is ubiquity with wpa2/wpa3

02:56:43
28 Jan 2025
@crunch:kde.orgcrunch joined the room.02:01:42
29 Jan 2025
@kira:jakira.spaceKira joined the room.00:19:28
30 Jan 2025
@hive:the-apothecary.club👉@crystallinefire:chat.solarpunk.moe changed their profile picture.01:30:56
@a3don:matrix.orga3don joined the room.03:04:49
@a3don:matrix.orga3donHey! 👋 Can I make a flake that installs other packages to a profile individually, instead of as one package?03:06:51

Show newer messages


Back to Room ListRoom Version: 6