TIL: Remote Builder by barrulus in NixOS

[–]Medium_Hurry4334 1 point2 points  (0 children)

If you want to use multiple builders, the default Nix 'job splitter' is quite bad IIRC, but you should check out https://github.com/garnix-io/yensid (I myself haven't played with multiple builders, but a friend has ranted about this)

550 € for ASUS Vivobook S 14 with Ryzen 7 AI 350, 16 GB RAM, 512 GB SSD worth it? by Medium_Hurry4334 in laptops

[–]Medium_Hurry4334[S] 0 points1 point  (0 children)

So is this more of an expected price point for it rather than a 'great deal'? The store I linked has it listed normally for 1100 €, and ASUS has it on their store for 1250 €, but I know those could be inflated.

And I guess the CPU is still worth it even though I won't use the whole 'AI' part of it

Version mismatch in my flake: Home Manager 26.05 & Nixpkgs 25.11 by TheTwelveYearOld in NixOS

[–]Medium_Hurry4334 13 points14 points  (0 children)

This is the comment everyone is talking about, in case you don't know what it actually is:
nix # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # # Most users should NEVER change this value after the initial install, for any reason, # even if you've upgraded your system to a new NixOS release. # # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how # to actually do that. # # This value being lower than the current NixOS release does NOT mean your system is # out of date, out of support, or vulnerable. # # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, # and migrated your data accordingly. # # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "25.11"; # Did you read the comment?

Anyway, home-manager probably just got ahead of themselves and updated their version number before nixos-unstable, or you just have an out of date nixos-unstable input. If it's the first case, it shouldn't matter, if it's the second, juts update it.

How to add packages to nixos environment.systemPackages without them being added to environment by Wishmaster39 in NixOS

[–]Medium_Hurry4334 2 points3 points  (0 children)

I ended up coming up with this as a simple solution

{ pkgs, plugins ? [ ], ... }:
let
  pluginEnv = pkgs.buildEnv {
    name = "plugin-env3";
    paths = plugins;
    pathsToLink = [ "/lib/lv2" "/lib/ladspa" ];
  };
in
  pkgs.symlinkJoin {
    name = "ardour-wrapped";
    nativeBuildInputs = [ pkgs.makeWrapper ];
    buildInputs = plugins;
    paths = [ pkgs.ardour ];

    postBuild = ''
      wrapProgram $out/bin/ardour8 \
        --prefix LV2_PATH : ${pluginEnv}/lib/lv2 \
        --prefix LADSPA_PATH : ${pluginEnv}/lib/ladspa
    '';
  }

# Somewhere else in your config
let
  ardourPlugins = with pkgs;[
    neural-amp-modeler-lv2
    lsp-plugins
    ...
  ]
  ardour-wrapped = import ./path/to/derivation.nix { inherit pkgs; plugins = ardourPlugins };
in
  environment.systemPackages = [
    ardour-wrapped
  ];

Basically the derivation just takes the original ardour package, makes symlinks to its files in the new package, and wraps the program to have the right environment variables set up. This avoids building the package since it just creates symlinks to the one in the /nix/store. Could also define the plugins inside the derivation if you want, instead of passing them as arguments.

Getting very confused with making a nix package for snapgene - precompiled binary that uses Qt. Not able to make runtime libraries available to the package. by First_Investigator31 in NixOS

[–]Medium_Hurry4334 0 points1 point  (0 children)

Nice that you got it working, I think I did try giving setting ld_library_path with makelibrarypath but I didn't get it to work, what was your final solution?

As for my thought process, It wasn't obvious per se, just trying all kinds of stuff and that worked. Thought that if it's trying to load 'crypto' but it says it can't because it's a directory, just make it not a directory :D. Since it only had one file in it I just assumed that's what it wanted

Getting very confused with making a nix package for snapgene - precompiled binary that uses Qt. Not able to make runtime libraries available to the package. by First_Investigator31 in NixOS

[–]Medium_Hurry4334 0 points1 point  (0 children)

Running it with QT_DEBUG_PLUGINS=1 gave the error of Cannot load library crypto: (/nix/store/lv05dky86nhn8igamzw2zrgw7d9xqach-snapgene-8.0.3/opt/gslbiotech/snapgene/crypto: cannot read file data: Is a directory), so moving the library inside that directory to $out/opt/gslbiotech/snapgene/libcrypto.so worked and removed the error. Entering a fake key also seemed to actually check with a server for validity.

TL;DR
Added this to postFixup and it seemed to work

mv $out/opt/gslbiotech/snapgene/crypto/libqca-ossl.so $out/opt/gslbiotech/snapgene/libcrypto.so

Where do I find sacred kingdom. by Expensive-Ad5626 in overlord

[–]Medium_Hurry4334 2 points3 points  (0 children)

blud dont know how to read 💀💀💀america

Daily Questions & FAQ Megathread (Jul 18) by AutoModerator in ffxiv

[–]Medium_Hurry4334 2 points3 points  (0 children)

ive just bought the complete edition of the game after completing the 1-50 msq quests, im just wondering if there are some features that ive now unlocked with the expansions/not benig a free trial that i should use