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
1answer
14 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
51 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
0answers
33 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
15 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
43 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 ...
2
votes
1answer
27 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 ...
0
votes
0answers
18 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 ...
0
votes
1answer
114 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
59 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
49 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
64 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
66 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 = [ ...
3
votes
1answer
278 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
194 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 ...
4
votes
2answers
160 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
80 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 ...
1
vote
0answers
426 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.) ...
4
votes
2answers
153 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
67 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
118 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 ...
9
votes
3answers
316 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
204 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
285 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 ...
6
votes
2answers
1k 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 ...