NixOS is a Nix-based Linux distribution. Thanks to Nix, 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.

learn more… | top users | synonyms

1
vote
0answers
23 views

Local Nix cache is ignored because NAR info file lacks a signature

[partially solved here: https://plus.google.com/110416349762686874861/posts/PVGHL1Tpeb9; but not entirely] I want to use one of my NixOS machines as a cache for the packages, to not pull everything ...
1
vote
1answer
42 views

How do you install a one-off package in NixOS?

I've got a NixOS box that I keep on the nixos-16.03 channel. I want the machine to stay in a mostly-stable state, and so I am wanting to avoid switching to the nixos-unstable channel. However, I ...
1
vote
2answers
20 views

How to build 32-bit application on 64-bit system using Nix package manager?

It seems Nix should be able to install and build 32-bit packages on 64-bit systems. It's caches already store whole nixpkgs tree built for i686 architecture, and there should be no problem to download ...
1
vote
1answer
14 views

Run OpenGL application installed by Nix package manager

When I try to run application which uses OpenGL installed or built with Nix package manager, GLX errors shows up: $ /nix/store/p6fwy23nfcadxr4i780knajvmzga17aa-glxinfo-8.1.0/bin/glxinfo libGL ...
1
vote
1answer
27 views

manage packages of the system profile in NixOS

In NixOS how can I manage the system installed packages? If I run nix-env -q from root I get the packages installed by root (and available to all the users), but many are missing like ssh, the whole ...
0
votes
1answer
62 views

Can I run NixOS in an LXC container?

Can I run NixOS in an LXC container? To run debian on top of debian, one would use LANG=C SUITE=jessie MIRROR=http://httpredir.debian.org/debian lxc-create -n debian8 -t debian What should one ...
1
vote
1answer
44 views

NixOS: Screen connected over USB-C stays black

I've got a Dell XPS 13' (9350), with a Dell USB-C to HDMI adapter, connected to a screen. I'm running NixOS with XMonad. The screen (set to HDMI input) shows "no input signal" despite: xrandr ...
0
votes
1answer
71 views

How can I unlock KDE Wallet automatically on nixos?

I decided to start using kwallet since it comes with kde on nixos. I would like to set it up to unlock automatically though. On the arch linux wiki there is a section that covers this here here. But ...
2
votes
1answer
109 views

NixOS installation on multi-boot system with GRUB (from Arch installation)

I have one physical disk (/dev/sda) which is divided in /dev/sda1 (which is /boot bootable GRUB2 partition used and setup with Arch) and /dev/sda2 which is my cryptroot that, when unlocked, is a ...
0
votes
1answer
33 views

Connect to guest vm (no wifi driver) from machines on same wireless network as the host machine?

I have my host os with proper wifi drivers that connects to my router. I run a NixOs VM (no wifi driver) as guest. I setup some configs in NixOS and it now has many binary caches that I want to share ...
4
votes
1answer
125 views

How to split /etc/nixos/configuration.nix into separate modules?

Suppose I have a very simple NixOS configuration file: { config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; # SOME ...
1
vote
1answer
23 views

sdkman is missing less-R command on nixos

I recently installed sdkman.io on nixos and came accross some strange errors. After also installing which, jdk, and less I am still getting this error when running sdk list less -R: command not found ...
0
votes
1answer
41 views

How do I upgrade netbeans with packageOverride in configruation.nix?

I'm trying to change the version of netbeans using this guide. I'm using the config.nix expression inside my /etc/configuration.nix This is what it looks like: nixpkgs.config = { ...
1
vote
1answer
42 views

NixOS: How do I change my group and clean up the bad configurations?

This is my current users expression users.users = { john = { name = "john"; group = "users"; extraGroups = [ "wheel" "disk" "audio" "video" "networkmanager" "...
1
vote
1answer
147 views

How to disable suspend on close laptop lid on NixOS?

I'm using NixOS on a laptop and want to disable auto-suspension that happens every time I close the laptop lid. Approach described in “How to disable auto suspend when I close laptop lid?”, that is, ...
0
votes
1answer
164 views

NixOS no login prompt in virtual terminals

I have NixOS built using 15.09 channel, session manager is sddm, display manager is KDE 5. Switching to virtual ttys from 1 to 6 gives me no login prompt, I see same piece of log everywhere: <<...
5
votes
1answer
82 views

How to find out which (not installed) package a file belongs to on NixOS?

I am using a Nix package manager on NixOS. Suppose I want to install a package that provides a file libgtk-x11-2.0.so.0. How do I find a package that provides this file, similar to other GNU/Linux ...
1
vote
0answers
40 views

For linux (nixos) xserver using a macbookpro, what can I do to prevent movement of mouse while clicking

I have NixOs installed in my macbook pro. My problem is that the mouse is too sensitive. When I click, the mouse moves slightly, causing the click to happen at a different place. I observe that it ...
3
votes
1answer
236 views

How to find the name of a Nix package to install it in configuration.nix?

Suppose I search for a package to install using nix-env's --query operation: $ nix-env -qa 'aspell.*en' aspell-dict-en-7.1-0 I write this package name in /etc/nixos/configuration.nix, NixOS's main ...
1
vote
1answer
58 views

How can I import packages from another mounted Nix store?

I have a USB disk with a nix store (to be more precise, the nix-store.squashfs file from the NixOS installation ISO) mounted at /mnt/foobar. So that when I do ls /mnt/foobar, I see the familiar ...
1
vote
1answer
141 views

View logs for nix-env last installation

I use NixOS: $ nixos-version 16.03pre71289.7ae05ed (Emu) $ nix-env --version nix-env (Nix) 1.10 $ nix-channel --list $ sudo nix-channel --list nixos https://nixos.org/channels/nixos-unstable ...
2
votes
1answer
300 views

Java SDK on NixOS for IntelliJ

I have recently installed NixOS on my machine, for Java development I have added IntelliJ CE 14.1.5 and the Oracle JDK 8. However IntelliJ does not automatically recognize the path to the Java SDK ...
2
votes
1answer
88 views

USB audio adapter causes HTML5 videos in Firefox to fast forward

After changing my desktop from Arch Linux to NixOS, playing HTML5 videos in Firefox has become buggy. They will fast forward when you play them, but only when using the USB audio adapter. Pulseaudio ...
2
votes
0answers
70 views

Does the Nix package manager have a data format spec allowing alternative implementations, similarly to Git? [closed]

The question is self contained in the title : Does the Nix package manager have a data format spec allowing alternative implementations ? For example : Can tools be written for Nix that does not ...
1
vote
0answers
102 views

NixOS not appearing in Grub (Sony Vaio E series)

As described here, the Vaio E series of laptops don't follow the UEFI standard, and simply load /EFI/Microsoft/Boot/bootmgfw.efi on startup. When I was running Linux Mint, this was a relatively easy ...
3
votes
2answers
107 views

How do I make a self-signed certificate persist in nixos?

I have a nix expression that builds a virtualbox vm. As part of that process, I install a self-signed ssl certificate via certfile = builtins.readFile ./certificate.crt security.pki.certificates = [ ...
4
votes
1answer
485 views

What is the proper way of mounting external devices on NixOS

I have a usb stick and NTFS hard drive partition that I'd want to use in nixos. On some other distribution I'd mount it using ntfs-3g in /mnt. But on nixos the directory doesn't exist, I suppose nixos ...
0
votes
0answers
279 views

Why does my MacBook CPU get hotter under NixOS than under Mac OS?

I have a dual boot MacBook (late 2008) with Mac OS 10.9 and NixOS. I observe that under similar conditions, with only one or two applications open and not doing any computations, the CPU gets 5-10 °C ...
5
votes
2answers
263 views

Best method of copying full /nix/store over the network from one nixos machine to another

Currently I use: find /nix/store/* -maxdepth 1 | xargs -L <N> nix-copy-closure --sign --gzip --use-substitutes --to <remote machine> Where N is some reasonable number that will not make ...
2
votes
1answer
89 views

Quickly reload nix expression in nix-shell?

When I run nix-shell nix-shell ~/dev/nixpkgs -A pythonPackages.some-package and then edit phases of pythonPackages.some-package, how to reload nix-shell environment with new changes? Quit nix-...
2
votes
0answers
696 views

cURL does not recognize certificate

At our company they enforce a web proxy which breaks SSL connections and replaces the certificate by its own fake certificate. (To be precise it uses a proxy cert which is signed by the company cert.) ...
5
votes
2answers
220 views

nix package manager: perl warning: Setting locale failed

Whenever I run a command for the nix package manager (e.g. nix-channel --update) I get the following warning: perl: warning: Setting locale failed. perl: warning: Please check that your locale ...
2
votes
0answers
112 views

How to add scripts for udev to run

I have several scripts i would like udev to run when a monitor is plugged/unplugged. I have added the extra udev rules, but i don't know how to add the scripts that i want udev to run. I have tried ...
1
vote
1answer
134 views

Unable to install vim plugins

I am unable to install any vim plugins on nixOS running the command: nix-env -i vimplugin-Syntastic gives these as the last 3 lines of output: output path ‘/nix/store/...
9
votes
3answers
444 views

How do I create a local repository for NixOS/nixpkgs?

All the instructions I find for creating a local repository of Nix packages involve creating a local clone of the main nixpkgs tree and adding to that. Is there a way I can care a small repository ...
2
votes
1answer
238 views

NixOS on MacBook: how to enable sudden motion sensor?

How to make sure in NixOS on a MacBook that the sudden motion sensor and the relevant disk protections are enabled? It seems that I need the applesmc module for this, but I couldn't find how to ...
8
votes
1answer
303 views

cabal dies on NixOS in KVM

I set up a NixOS system on KVM and installed the haskelPlatform package. Everything works fine, ghci works fine, but cabal dies without any helpful error message: [michas@nix:~]$ type -a cabal cabal ...
7
votes
2answers
2k views

Cannot execute binary in NixOS - No such file or directory

I tried to install the current oracle jre on a VM running NixOS. Now the following happens: [michas@cc:~]$ tar xvzf jre-7u40-linux-x64.tar.gz |grep bin/java jre1.7.0_40/bin/javaws jre1.7.0_40/bin/...