Hi, I must state that I am new to the NixOS. Currently I am using 26.05 channel.
Recently I watched some videos and read some articles on devenv, how cool that is for Python development on NixOS. So I tried it myself, via nix shell nixpkgs#devenv
And what I’ve seen — 1/2 of keywords does not work at all, like I was unable to just set the Python version via languages.python.version = “3.12“ on devenv.nix or call it directly with devenv shell --option language.python.version:string “3.12”
I’ve got the same error:
Failed to get attribute 'config.cachix.enable' from devenv configuration: warning: ignoring the client-specified setting 'system', because it is a restricted setting and you are not a trusted user
I’ve googled and found cachix.enable = false;, which did not work for me — same error.
The only workaround I found is using standard syntax:
languages.python = {
enable = true;
# package = pkgs.python314; # work but you will not be able to reuse `package`
# WORKS: versioning AND packages
package = pkgs.python314.withPackages (ps: [
ps.numpy
]);
};
As far as I am able to understand, the only way to use devenv now is to add my USER to the trusted group, basically giving root privileges to it in the Nix context, or to add cachix binaries in some Nix config as trusted.
Both options make me concerned with security. This thing basically wants to use root access to get and run some binaries from God knows where.
The official repo is under the NixOS Security Team and general community. Who looks after cachix?
Cachix is a profit organization. Are there any guarantees that it will not close behind a paywall the whole devenv thing?
Is there a way to run devenv without a trusted user or adding a cachix repo and still be able to get all features from it?