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

building custom packages in a user's home directory

I've noticed that any attempt to build custom packages in a user's home directory fails, due to the home directory permissions: drwx------ coupled with the fact that nix-rebuild switch uses the nixbld{n} user. Is there any way of getting around…
category
  • 2,113
  • 2
  • 22
  • 46
0
votes
1 answer

Enable wireless, no X, on nixos

What is the configuration I would use to enable my wireless adapter WITHOUT having any X Server/Desktop installed. The install is simply a terminal install. Also I want to specify a static IP address for the machine. If someone could share the…
ftravers
  • 3,809
  • 3
  • 37
  • 38
0
votes
0 answers

Build of nixos.avrgcclibc fails on NixOS

I am trying to install avr-gcc-libc on NixOS, but run into a build error. I try to install with the command nix-env -iA nixos.avrgcclibc The output this produces is very long and terminates with g++ -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC …
mherzl
  • 5,624
  • 6
  • 34
  • 75
0
votes
1 answer

How to install .apk file using adb on nixos?

I'm running nixos and I have a .apk file, i.e. an Android app. There is the handy tool adb (Android Debug Bridge) and the command adb install /path/to/app.apk How do I get it to work on nixos?
ruben.moor
  • 1,876
  • 15
  • 27
0
votes
0 answers

Stack fails to install a package while reporting no error message

When I try to install Haskell's scientific package using stack, it returns with no input as if scientific is already installed. $ stack install scientific $ and yet scientific is not installed. Listing installed packages with $ ghc-pkg list returns…
mherzl
  • 5,624
  • 6
  • 34
  • 75
0
votes
0 answers

Running Stack on NixOS Causes Missing C Compiler Error

Running stack build and even stack --nix build on a NixOS build yields the following: Linking /run/user/1000/stack7176/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-nix/Cabal-1.22.5.0/setup/setup ... Configuring old-time-1.1.0.3... configure:…
George
  • 6,927
  • 4
  • 34
  • 67
0
votes
1 answer

login shell without password on nixos/nixops

what i want i'm using nixops to deploy to VirtualBox and libvirtd (KVM) and on both environments i would like it if the shell did not have a login with username/password bust instead would already provide a logged in shell. for libvirt we have:…
qknight
  • 866
  • 10
  • 23
0
votes
1 answer

nix-shell for perlPackages

problem i want to play with a perl package called Mail::SPF and there is a Build.PL issue. now i would like to modify the source before running the buildPhase. for c/c++ based projects this is working well but for perl it fails: nix-shell -I…
qknight
  • 866
  • 10
  • 23
0
votes
4 answers

Where is the Nixos configuration located for the nix image on dockerhub?

According to https://chris-martin.org/2015/installing-nixos there is a /etc/nixos/configuration.nix file present. I'm using the docker container from https://hub.docker.com/r/nixos/nix/ and running find . -name "configuration.nix" within the…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
1 answer

lib.mapAttrsToList and infinite recursion

question i've been working on a webserver abstraction but using lib.mapAttrsToList always returns a infinite recursion error: # nixos-rebuild build building Nix... error: infinite recursion encountered, at…
qknight
  • 866
  • 10
  • 23
0
votes
1 answer

Preventing nix-env -i from installing $out/lib in the user-environment

Is it possible to prevent the contents of lib/ in a derivation from getting installed in the active user-environment? The package in question has an internal lib/ folder which should not be exposed to users, nor clutter the environment. As far as…
0
votes
1 answer

nixos-option for NixOps deployed machine?

There is a command nixos-option which examines given system's option value. Under the hood it does something like: $ nix-instantiate --eval -E ' let nixos = import { }; opt = nixos.config.networking.firewall.allowedTCPPorts; …
danbst
  • 3,363
  • 18
  • 38
0
votes
1 answer

install haskell-platform on nixOS

It's said to be a good starting point for haskell-beginners: the haskell platform. unfortunately, it looks like it's been removed from the nix-os package manager. What would be the preferred way to quickly get this up and running on a nix-os system?
Anton Harald
  • 5,772
  • 4
  • 27
  • 61
0
votes
1 answer

How to package plugins for an application for NixOS

How to package a plugin for an application for NixOS? Having an application with an src tarball and multiple plugins to be installed from another source. I'm looking forward to an example how or maybe a pointer to documentation.
frlan
  • 6,950
  • 3
  • 31
  • 72
0
votes
1 answer

Nixos configuration: `environment.systemPackages` cannot find haskellPackages

I can find haskell packages via nix-env: nix-enf -f "" -qaP -A haskellPackages ... yet when I try and install them using environment.systemPackages in /etc/nixos/configuration.nix: environment.systemPackages = with pkgs; [ …
Alex
  • 8,093
  • 6
  • 49
  • 79