| 23 May 2024 |
@raf:notashelf.dev | you are using extraPackages, iirc that does not get linked to /etc | 14:22:16 |
gdarends | It is building and it is populating in /nix/store | 14:22:18 |
@raf:notashelf.dev | * you are using configPackages, iirc that does not get linked to /etc | 14:22:29 |
gdarends | I did a find / and I can't find it anywhere. | 14:23:33 |
gdarends | 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 | How do I set my flake's inputs.nixpkgs to be from another flake input as in inputs.b.nixpkgs? | 17:29:15 |
kjeremy | I was thinking something like nixpkgs = b.inputs.nixpkgs but that doesn't work | 17:30:53 |
mewp | .follows | 17:31:18 |
mewp | for example inputs.nixops.inputs.nixpkgs.follows = "dwarffs/nixpkgs"; | 17:32:50 |
kjeremy | 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 | ah i think i got it.thank you. the "/" was the key | 17:34:52 |
| 25 May 2024 |
| @ayyz12:matrix.org left the room. | 07:49:49 |
| hellwolf joined the room. | 13:56:39 |
hellwolf | How 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 | overlays = [
solc.overlays.defaul # <-- ?
];
| 14:00:52 |
hellwolf | {
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 | Nix flake check complains:
error: flake attribute 'packages.x86_64-linux.system' is not a derivation
| 16:08:17 |
hellwolf | Ah, that should be legacyPackages | 16:09:16 |
| 26 May 2024 |
| tim joined the room. | 06:52:51 |
| Manu [tennox] joined the room. | 07:32:17 |
| Dennis changed their display name from Dennis (7616) to Dennis. | 12:59:25 |
| 27 May 2024 |
| @marie:marie.cologne left the room. | 11:24:10 |
| Tanja (she/her) changed their display name from Tanja (she/her) to Tanja (☎️ 6920 at GPN22, she/her). | 20:36:03 |
| Buckley left the room. | 21:23:44 |
| 28 May 2024 |
| clango joined the room. | 18:26:26 |
| 29 May 2024 |
| @sako:catgirl.cloud removed their profile picture. | 18:27:42 |
| @sako:catgirl.cloud removed their display name sako. | 18:27:52 |
| @sako:catgirl.cloud left the room. | 18:28:07 |
| 31 May 2024 |
| parasew | CDC joined the room. | 11:11:22 |
| 1 Jun 2024 |
Thatoo | 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 |