Questions tagged [nix]

Questions about Nix, the purely functional package manager and its usage and configuration.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
516 views

installing .net core sdk 2.0 on NixOs (can't find templates)

Resume I am currently trying to install dot-net-core-sdk 2.0 with the Nix package manager in NixOs. I am very new to both NixOs, Nix, bash scripting and stuff like ELF. Yet I think I've successfully ...
3
votes
0answers
159 views

How to use a package revision not yet in the published nixpkgs (but described in the development branches of nixpkgs)?

I'd like to use the new release of ghc (7.10, because of a new feature -- static ptr), and I'm using a single-user nix environment. I don't find the wanted new release in the published lists at https:...
2
votes
0answers
275 views

“bash: cannot execute binary file” during nix dockerTools cross-build from MacOS host

A great 2016 blog post described building minimal Docker images with Nix. The below is a simple example taken from that blog post, modified to support Nix 2.0: { pkgs ? import <nixpkgs> {} }: ...
1
vote
1answer
65 views

Is there a faster alternative than `nixos-rebuild switch` when updating services?

Often I'm configuring a new service and having to run nixos-rebuild switch for the changes to take effect. For example setting up a configuration for a webserver. However the nixos-rebuild switch ...
1
vote
0answers
249 views

How to share nix store among multiple aws instances?

I am using nixops and want to reduce disk space consumption by sharing nix store among instances. Possible implementation: share /nix/store store through elastic file system. make cron job on random ...
0
votes
0answers
30 views

Why is the postgresql `libpq.so.5` shared library not being found on Nixos?

I'm trying to get an executable to work, it's currently running fine on one Nixos host, but not the new one. On old host: [root@XenonKiloCranberry:~/blog]# ldd app linux-vdso.so.1 (...
0
votes
2answers
98 views

NixOS - how is environment.systemPackages implemented

I've started using NixOS. As far as I understand Nix is a purpose built functional language to avoid side-effects. All packages are part of a giant attribute set but as everything is lazily evaluated ...
0
votes
1answer
36 views

`df` within VPS shows available space far below provisioned space

I'm stuck on figuring out whether this is (1) a NixOS problem, (2) a Vultr problem, (3) something particular to my image. I have a Vultr VPS running custom Nix image (18.09 Jellyfish), and the ...
0
votes
0answers
21 views

How can I set the Java heap size for elasticsearch on Nixos?

It seems these should go in the ${configDir}/jvm.options"} (/var/lib/elasticsearch/config/jvm.options ?) looking at the package at https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/...
0
votes
0answers
50 views

How to make Nix applications visible in application menu (GNOME)?

On my CentOS 7 machine I have Firefox installed via Nix (the Firefox in the official repos isn't starting for me, so this is my workaround), the problem is its launcher doesn't appear in application ...
0
votes
1answer
129 views

Linux Ubuntu 18.04 - nix nixpkgs virtualbox - channel

my status quo Linux cc 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux nix-env (Nix) 2.0.2 "18.09pre140705.090b7cc8f1b" I would like to use nixpkgs / ...
0
votes
1answer
336 views

Cannot install nix packages on Mac because .nix-defexpr doesn't exists

I have installed Nix on a Mac OSX (v 10.9.2) but anytime I try to run any command I get this message: error: getting information about '/Users/myuser/.nix-defexpr': No such file or directory This ...