!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

624 Members
128 Servers

Load older messages


SenderMessageTime
23 May 2024
@raf:notashelf.dev@raf:notashelf.devthe guide is wrong, then14:19:31
@gdarends:matrix.orggdarendsOk14:19:52
@raf:notashelf.dev@raf:notashelf.devthe bluetooth section looks correct14:19:55
@raf:notashelf.dev@raf:notashelf.devALSA low latency section is not14:20:01
@gdarends:matrix.orggdarendsSo correct me if I'm wrong. This config is not being published because the syntax is wrong?14:21:45
@raf:notashelf.dev@raf:notashelf.devnot quite14:22:08
@raf:notashelf.dev@raf:notashelf.devyou are using extraPackages, iirc that does not get linked to /etc14:22:16
@gdarends:matrix.orggdarends It is building and it is populating in /nix/store 14:22:18
@raf:notashelf.dev@raf:notashelf.dev * you are using configPackages, iirc that does not get linked to /etc14:22:29
@gdarends:matrix.orggdarends I did a find / and I can't find it anywhere. 14:23:33
@gdarends:matrix.orggdarends

I updated my config, but it's still not being loaded. I tried both configPackages and extraConfig. None work.

wireplumber.configPackages = [
    (pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/99-alsa-low-latency.conf" ''
      "monitor.alsa.rules" = [
        {
          matches = [
            { "node.name" = "alsa_input.usb-Focusrite_Scarlett_4i4_4th_Gen_S49C91841831EB-00.*"; }
            { "node.name" = "alsa_output.usb-Focusrite_Scarlett_4i4_4th_Gen_S49C91841831EB-00.*"; }
          ];
          actions = {
            update-props = {
              "audio.rate" = 192000;
              "api.alsa.period-size" = 512;
              "api.alsa.period-num" = 3;
            };
          };
        }
      ];
    '')
  ];

  wireplumber.extraConfig = {
    "98-alsa-low-latency" = {
      "monitor.alsa.rules" = [
        {
          matches = [
            { "node.name" = "alsa_input.usb-Focusrite_Scarlett_4i4_4th_Gen_S49C91841831EB-00.*"; }
            { "node.name" = "alsa_output.usb-Focusrite_Scarlett_4i4_4th_Gen_S49C91841831EB-00.*"; }
          ];
          actions = {
            update-props = {
              "audio.rate" = 192000;
              "api.alsa.period-size" = 512;
              "api.alsa.period-num" = 3;
            };
          };
        }
      ];
    };
  };
15:43:43
@kjeremy:matrix.orgkjeremy How do I set my flake's inputs.nixpkgs to be from another flake input as in inputs.b.nixpkgs? 17:29:15
@kjeremy:matrix.orgkjeremy I was thinking something like nixpkgs = b.inputs.nixpkgs but that doesn't work 17:30:53
@mewp:nurupo.plmewp .follows 17:31:18
@mewp:nurupo.plmewp for example inputs.nixops.inputs.nixpkgs.follows = "dwarffs/nixpkgs"; 17:32:50
@kjeremy:matrix.orgkjeremy I understand that that's how you set the nixpkgs of nixops but I'm trying to set the top-level nixpkgs 17:33:56
@kjeremy:matrix.orgkjeremyah i think i got it.thank you. the "/" was the key17:34:52
25 May 2024
@ayyz12:matrix.org@ayyz12:matrix.org left the room.07:49:49
@hellwolf:matrix.orghellwolf joined the room.13:56:39
@hellwolf:matrix.orghellwolfHow should "overlays.default" in a flake actually be used? I try to use it in another flake. But I got "error: attribute 'overlay' missing"13:57:43
@hellwolf:matrix.orghellwolf
overlays = [          
  solc.overlays.defaul # <-- ?
];                    
14:00:52
@hellwolf:matrix.orghellwolf
{
  description = "A very basic flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
  flake-utils.lib.eachSystem
  [
    "x86_64-linux"
    "x86_64-darwin"
    "aarch64-darwin"
  ] (system:
  let packages = import nixpkgs {
    inherit system;
    # overlays = [ solc-pkgs-overlay ];
  };
  in
  {
    inherit packages;
  });
}

And what's wrong with this flake...

16:05:26
@hellwolf:matrix.orghellwolf

Nix flake check complains:

       error: flake attribute 'packages.x86_64-linux.system' is not a derivation
16:08:17
@hellwolf:matrix.orghellwolfAh, that should be legacyPackages16:09:16
26 May 2024
@tim92:matrix.orgtim joined the room.06:52:51
@tennox:matrix.orgManu [tennox] joined the room.07:32:17
@devurandom:matrix.orgDennis changed their display name from Dennis (7616) to Dennis.12:59:25
27 May 2024
@marie:marie.cologne@marie:marie.cologne left the room.11:24:10
@tanja:catgirl.cloudTanja (she/her) changed their display name from Tanja (she/her) to Tanja (☎️ 6920 at GPN22, she/her).20:36:03
@buckley310:matrix.orgBuckley left the room.21:23:44

Show newer messages


Back to Room ListRoom Version: 6