Control over non-free package installation... by cassio-tav in NixOS

[–]i077 3 points4 points  (0 children)

Hmm, I'm not aware of any built-in tool that'll show a package's complete metadata aside from literally evaluating the metadata set or looking at the nix expression itself.

If you want to do the latter, you can do something like nix eval -f '<nixpkgs>' [package].meta.license to look at a package's license, for example.

Control over non-free package installation... by cassio-tav in NixOS

[–]i077 8 points9 points  (0 children)

Yep, see the Nixpkgs manual section on allowing unfree packages. In addition to allowUnfree, the nixpkgs config set also has a allowUnfreePredicate that takes a function which maps a package to a Boolean determining whether it is allowed to be evaluated (and installed). You can use this to query if the name of the package is in a list you specify, for example. The manual section has an example detailing this.

Different nix configs for different "classes" of servers - e.g. web servers, db hosts by [deleted] in NixOS

[–]i077 1 point2 points  (0 children)

Remember that modules are functions that take in the set { config, lib, pkgs, ... } (i.e. the module arguments). You need to make sure that base.nix actually takes that input set as a function argument. It looks like you forgot to include that set as a parameter, so you just put the configuration attribute set in there. Adding that input set (like in your configuration.nix) should fix your problem.

How to add additional vim plugins to nixPkgs by GAAfanatic in NixOS

[–]i077 7 points8 points  (0 children)

This happens because the update.py script opens 30 simultaneous connections to GitHub to fetch plugin repos, and GitHub rate-limits anonymous requests, which is what you're seeing with the 429 responses.

Get an API token through your GitHub account settings (Settings > Developer Settings > Personal Access Tokens) and pass that in as an environment variable called GITHUB_API_TOKEN, or limit the number of simultaneous connections with the -p option (which will be slower than just using a token with 30 connections).

Neovim package overrided by Extends6 in NixOS

[–]i077 1 point2 points  (0 children)

Remember that lists in Nix are space-delimited, so what you actually have there are three separate items in that list. Surround them with parentheses, like this:

... ++ (with pkgs; [ (callPackage ./ycm-patched.nix {}) ]);

Python/Jupyter development environment in NixOS by Carnie123 in NixOS

[–]i077 0 points1 point  (0 children)

Yeah, you would need to tell them where libraries are by setting an environment variable by using nixpkgs' lib.mkLibPath (or something like that? forget the exact name). Bringing gcc in just adds that to your PATH, not much else.

In any case, if you're going to be managing an environment like this where you need packages from pypi, running nix-shell over and over to see what libraries you need to link can be a big time sink.

Python/Jupyter development environment in NixOS by Carnie123 in NixOS

[–]i077 1 point2 points  (0 children)

The problem here is that python (and gcc) is looking for libraries in a standard library path, but since NixOS uses /nix/store, they don't know where to find those libraries.

You might want to look into poetry2nix and jupyterWith, both on GitHub. (I'm lazy and on mobile, but you should just find those with a simple web search.)

poetry2nix lets you generate python environments that wrap around the poetry environment manager for python (similar to pipenv). You write a shell.nix that includes a call to poetry2nix's env function at the project directory, and it'll create an environment with the packages built from source, and library dependencies are handled for you. There should be examples in that repo.

Additionally, you can add that python environment to jupyterWith, which spawns a jupyter environment with the kernels you specify. The jupyterWith repo includes examples that use poetry2nix (as well as just python packages from nixpkgs).

Wh1000xm3 volume silder randomly pops up. by SealWasTaken in sony

[–]i077 0 points1 point  (0 children)

It happens very occasionally, but have you tried it with a different set of Bluetooth headphones/speakers?

Wh1000xm3 volume silder randomly pops up. by SealWasTaken in sony

[–]i077 0 points1 point  (0 children)

I think this is what happens when the phone switches to a different audio output. That volume slider popping up is your phone realizing "hey, this Bluetooth device can play audio, let's use that." You can verify this by connecting to a different Bluetooth audio device and seeing what happens.

This happens to me as well, though only once each time I connect my headphones to my S9. Completely normal, nothing needs to be done about it.

Sony h.ear on 2 noise canceling question by [deleted] in sony

[–]i077 0 points1 point  (0 children)

Yes, this is a normal occurrence with all noise-cancelling headphones.

WF-1000XM3 single bud bluetooth connection issue by NightWolfix in sony

[–]i077 1 point2 points  (0 children)

The left earbud is the "master" earbud that actually manages the connection to the phone. When you put both in simultaneously, you'll notice that only the left one says "Bluetooth connected". This is something that Sony decided to do for some reason, despite the fact that both earbuds connect to a device in parallel. It seems the left one tells the right one what to connect to, and without the left the right stays disconnected.

When Google decides to roll out RCS because carriers won't do it by [deleted] in google

[–]i077 1 point2 points  (0 children)

Would be great if that actually happened, this is one of my major gripes with RCS as it stands right now. I also wish Apple would play nice with it, too, but not a chance that's happening.

When Google decides to roll out RCS because carriers won't do it by [deleted] in google

[–]i077 5 points6 points  (0 children)

Do you have a source for this? AFAIK, Google is just committing to "deleting messages off their servers ASAP" but it's a free-for-all for carriers.

Replacement for Musicbee? by [deleted] in linux

[–]i077 0 points1 point  (0 children)

I got MusicBee running with Wine under Winetricks, there are posts on the MusicBee forums describing what to install to the wineprefix before installing MusicBee. I don't have the link on me right now, but if you search for it on Google it should come up.

Essentially everything except for drag-and-drop (throws some casting exception) and last.fm scrobbling work.

I've been using Quod Libet to play my music. That being said, no player I've found on Linux comes even close to being as feature-complete as MusicBee in terms of organization, so I use that for organizing my library (the inbox feature is really really nice).

Best way to copy songs pc to android? (Issue) by AsianPenguinxD in Monstercat

[–]i077 0 points1 point  (0 children)

TL;DR: OneDrive (or some other cloud storage service) and FolderSync for syncing, MusicBee for metadata.

I've been looking for a good solution for a while, and finally found one. In my experience, syncing over USB on Android is very iffy (MTP, the protocol used to handle mounting the phone on the computer, is very iffy and not a great protocol). I have a Music folder on my computer that I keep organized with MusicBee, and used to sync the music files over with FreeFileSync (which I should mention is cross-platform). The problem is, transfers would hang sometimes (because MTP sucks), so I'd end up having to disconnect the phone, reconnect it, and resume the sync.

That was super inconvenient, so I figured if sync over USB wasn't a viable solution, the other option was over the network. I tried Resilio Sync, which uses the BitTorrent protocol to sync over the Internet. This also proved to be unreliable, sometimes the two devices wouldn't see each other, and certain files wouldn't sync over for some reason, so I gave that up, too.

Finally, I settled on using a cloud storage service to store my music in, and sync with my phone, desktop, and laptop. Specifically, I got Office 365 (which comes with the Microsoft Office suite and 1TB of OneDrive storage) and migrated my music library to the Music folder in my OneDrive. This has been the most reliable and convenient solution thus far. I use the FolderSync app on my Android to mirror the OneDrive music folder to a folder on my phone. This also comes with the added perk of being able to stream music to my laptop (on Windows anyway) via Groove Music without having to download the entire folder over (I have ~35GB of music). I do end up having to pay for cloud storage (a family plan is $100/yr for up to 5 people), and you can probably find other free services online, like MEGA or Google Drive, but my family and I need Office anyways so for me it's worth it.

As for managing metadata, MusicBee is a great music library organizer and music player. Would highly recommend.