!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

899 Members
183 Servers

Load older messages


SenderMessageTime
23 May 2024
@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
28 May 2024
@clango:matrix.orgclango joined the room.18:26:26
29 May 2024
@sako:catgirl.cloud@sako:catgirl.cloud removed their profile picture.18:27:42
@sako:catgirl.cloud@sako:catgirl.cloud removed their display name sako.18:27:52
@sako:catgirl.cloud@sako:catgirl.cloud left the room.18:28:07
31 May 2024
@parasew:matrix.orgparasew | CDC joined the room.11:11:22
1 Jun 2024
@thatoo:matrix.orgThatoo

After updating to 24.05, in order to install a package from 23.11, I added to flake.nix
nixpkgs_old.url = "github:NixOS/nixpkgs/nixos-23.11";
there :

inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
    nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    nixpkgs_old.url = "github:NixOS/nixpkgs/nixos-23.11";
  };

and I declare masterpdfeditor like that in my configuration.nix file :

environment.systemPackages = with pkgs; [
    inputs.nixpkgs_old.legacyPackages."${pkgs.system}".masterpdfeditor
  ];
  nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
    "masterpdfeditor"
  ];
  
   nixpkgs.overlays = [ (final: prev: {
     masterpdfeditor = prev.masterpdfeditor.overrideAttrs (old: {
       src = prev.fetchurl {
         url = "https://code-industry.net/public/master-pdf-editor-5.9.10-qt5.x86_64.tar.gz";
         sha256 = "sha256-ilJhUsr96xCbM0XNQxWGAPknKKp1jj+U1+7n1e379Lc=";
       };
     });
   })];
}

Unfortunately, I get the following error :

error: Package ‘masterpdfeditor-5.9.35’ in /nix/store/yg436dyaanpmhi3bf6qizaxa3jymlsx3-source/pkgs/applications/misc/masterpdfeditor/default.nix:40 has an unfree license (‘unfreeRedistributable’), refusing to evaluate.

       a) To temporarily allow unfree packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNFREE=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowUnfree = true; }
       in configuration.nix to override this.

       Alternatively you can configure a predicate to allow specific packages:
         { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
             "masterpdfeditor"
           ];
         }

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnfree = true; }
       to ~/.config/nixpkgs/config.nix.

even though,

nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
    "masterpdfeditor"
  ];

is already in configuration.nix file.

10:31:56
@thatoo:matrix.orgThatooAny idea how to solve this issue?10:32:04
@conr:mozilla.org@conr:mozilla.orgRedacted or Malformed Event15:49:41
@conr:mozilla.org@conr:mozilla.orgRedacted or Malformed Event15:52:06

Show newer messages


Back to Room ListRoom Version: 6