2 votes
Accepted

how to execute a bash script in nixos

I should think the not defined error is because neither curl nor bash are present in PATH when the system derivation is built. The manual entry for system.activationScripts says: A set of shell ...
brocking's user avatar
  • 191
2 votes

Why are Nix programs not able to resolve mDNS names when native programs are?

The missing link here is nscd; simply installing nscd and starting the daemon makes the Nix-installed programs work. $ sudo dnf install nscd $ sudo systemctl start nscd.service $ nix-shell -p ssh-...
Leonora Tindall's user avatar
2 votes
Accepted

Read files from remote repository using nixOs

Here's a short derivation that reads a file from a remote git repo that contains no Nix configuration: with (import <nixpkgs> { }); let repo = fetchFromGitHub { owner = "nix-community&...
Robert K. Bell's user avatar
1 vote
Accepted

Install software on Ubuntu using apt without root?

Spack, like Nix, does (2) automatically, but lets you build against external packages like the system MPI, math libraries, etc. It also gives you more flexibility around versions, compilers, and other ...
Todd Gamblin's user avatar
1 vote

NixOps deployment on x86_64-darwin (vs. x86_64-linux)

solution for the time being do not use nixops from your mac machine directly! this seems tempting but we tried get it working it for hours to no avail! using https://functional-orbitz.blogspot.de/...
qknight's user avatar
  • 191
1 vote
Accepted

How to install Postgis with Osm2pgsql on NixOS

osm2pgsql is not yet packaged in nix, so a first step would be to package it. As far as I see you use osm2pgsql tool as a command line utility. Adding it to environment.systemPackages should make it ...
Rok Garbas's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible