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
2 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 security.pki.certificates = [ certfile ]; That works fine. The problem is ...
0
votes
1answer
88 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
76 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 ...
3
votes
2answers
83 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
47 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
216 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
88 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
39 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
83 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 ...
5
votes
2answers
196 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
169 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 ...
6
votes
0answers
221 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 ...
5
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 ...