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

2
votes
2answers
31 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 ...
1
vote
1answer
33 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
82 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.) ...
2
votes
1answer
55 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 ...
1
vote
0answers
28 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
63 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 ...
4
votes
1answer
114 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
143 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 ...
5
votes
0answers
195 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 ...
4
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 ...