Questions tagged [nixos]

NixOS is a Nix-based Linux distribution.

NixOS is a Linux distribution based on Nix, a functional programming language. It supports atomic upgrades, rollbacks and multi-user package management, and it has a declarative approach to system configuration management that makes it easy to reproduce a configuration on another machine.

Home page: https://nixos.org/

505 questions
0
votes
1 answer

how to install libmysqlclient.so.18 on nixos20.09?

I am try to install an binary software,whitch needs libmysqlclient.so.18. But there is not libmysqlclient.so.18 on Nixos 20.09 ,but libmysqlclient.so.21 Anyone have an idea in installing or compiling the specified version of libmysqlclient on…
0
votes
1 answer

Nix Package Manager syntax error , expecting ';' at the end

I am trying to learn nix package manager and I wanted to build a flask app using nix package manager using --pure especially. When I run nix-shell --pure default.nix, I get the error syntax error, unexpected $end, expecting ';', at…
0
votes
1 answer

Why doesn't nix find python39?

I would like to install python 3.9 with nix (I am running nix 2.3.3 on NixOS 19.09.2166.ce9f1aaa39e (Loris)). It is defined on NixOS/nixpkgs as can be seen here: python39 = callPackage ./cpython { self = python39; sourceVersion = { …
Kaligule
  • 630
  • 3
  • 15
0
votes
1 answer

modifying settings.xml in $out/maven/conf when downlaoding nixpkgs.maven

https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/tools/build-managers/apache-maven Above is the apache maven derivation. When I download maven from nix store it creates a settings.xml file in $out/maven/conf directory which I want to…
0
votes
0 answers

nixos-rebuild value is a function while a set was expected

Can no longer rebuild - now to debug this? $ sudo nixos-rebuild build --show-trace building Nix... error: while evaluating the attribute 'config' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:64:5: while evaluating…
0
votes
1 answer

Can't build hzk (haskell zookeeper) with nix in stack project

I'm trying to port my employer's large haskell stack project to nix and it's barfing over zookeeper_mt. In stack.yaml I enabled the nix build and already added a few nix packages like zlib to cure build errors, but even with zookeeper_mt, I get: hzk…
Adrian May
  • 2,127
  • 15
  • 24
0
votes
1 answer

lubuntu does not see executable file generated by ocamlopt on NixOS

i created executable "standalone" file in NixOS (x86_64) using "ocamlopt" native compiler with option -linkall. and the generated program is executed in NixOS. so far so good after that i tried to execute this file under…
Ston17
  • 115
  • 1
  • 7
0
votes
1 answer

Emacs daemon slowing down shutdown

Recently, I set services.emacs.enable = true; on my configuration.nix. I've noticed that, during shutdown, an annoying timeout shows up. Here's what I see: [ OK ] Stopped X11 Server. [ OK ] Stopped Session 2 of user . …
Luis Ch.
  • 13
  • 1
  • 4
0
votes
1 answer

How to build px4_drv kernel module in NixOS?

I'm following this instruction: https://github.com/nns779/px4_drv make under the directory fwtool builds it930x-firmware.bin and make under driver builds px4_drv kernel module. I wrote these two nix expr: $ cat ./it930x.nix { stdenv,…
gtgteq
  • 25
  • 4
0
votes
1 answer

How to build NixOS/nixpkgs manuals?

How to build manuals for NixOS and nixpkgs? I also get an error sometimes: error: a 'aarch64-linux' with features {} is required to build '...options.xml.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
danbst
  • 3,363
  • 18
  • 38
0
votes
1 answer

nix-shell can't find standard attribute

I'm running nixos 19.09 and trying to follow along with the instructions for creating a ruby package. But in one of the first steps I'm getting an error that the withPackages attribute can't be found. Command: $ nix-shell -p "ruby.withPackages (ps:…
0
votes
2 answers

Trying to add NixOS non packaged pytest-bdd to a shell.nix environment

I\'d like to create a simple python project, and the nixos documentation was helpul. So I have a shell.nix file with the following content: with import {}; ( python3.withPackages (ps: [ps.ipython ps.flask ps.pytest]) ).env Then I run…
Jose Miguel
  • 199
  • 2
  • 4
0
votes
1 answer

nixos: KDE powermanagement does not have brightness control

I can't control screen brightness in KDE(power management is enabled, but I don't see the brightness control in the power management widget. The brightness keys used to work as well, but now they aren't). I'm on the unstable channel, it was working…
madhukar93
  • 507
  • 5
  • 23
0
votes
1 answer

How to disable networking traffic / connections in Nix language in Nixos?

Have searched https://nixos.org/nixos/options.html#networking for networking options. And I have not found something that may achieve this: I would like a configuration which ensures that users don't have any network traffic. As it would be a nix…
Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
0
votes
0 answers

Building a gradle Android app under NixOS

I have existing Android apps, that I would like to continue building after I switched to NixOS. I followed several instructions that are basically allways based on what is described in the Nixpkgs manual:…
Matthias Wimmer
  • 3,789
  • 2
  • 22
  • 41