Questions tagged [nixos]

NixOS is a Linux distribution that uses the Nix package manager.

NixOS is a Linux distribution built on top of the Nix package manager. It uses declarative configuration.

23 questions
0
votes
1 answer

`nixos-rebuild switch` fails with "No space left on device"

I keep filling up /boot with old kernels, at which point nixos-rebuild switch --upgrade will download a bunch of derivations only to eventually fail when installing the new kernel (or initrd) because there is insufficient space on /boot. One option…
aij
  • 183
  • 7
0
votes
1 answer

How to install Postgis with Osm2pgsql on NixOS

When installing PostGIS on NixOS with an expression like services.postgresql.extraPlugins = [ (pkgs.postgis.override { postgresql = pkgs.postgresql94; }).v_2_1_4 ]; How to add other extensions like Osm2pgsql to it?
frlan
  • 573
  • 1
  • 8
  • 27
0
votes
1 answer

Start a nix-shell with only the current directory mounted (similar to a container)

I am looking for a way to launch a shell with specific packages installed within, but no unnecessary access to the rest of the system, i.e: Only the current directory (pwd) mounted, no access to other parts of the filesystem* Only the requested…
P Varga
  • 101
  • 2
0
votes
0 answers

Nginx can't read files when symlinking folder in /home/user to /var/www

I want to be able to edit my sites files without using sudo, so I symlinked /home/USER/project to /var/www/project with ln -sTf /home/USER/PROJECT /var/www/PROJECT However, Nginx displays 403 forbidden when visiting the site.…
NateDev
  • 1
  • 1
0
votes
0 answers

Issues with starting a virtual machine using virsh without intializing virt manager

I am having problems with starting a virtual machine using virsh. When I do virsh list --all, I see the VM named "ubuntu20.04" and it's state if shut off. Then I do virsh start ubuntu20.04 and get this error: error: Failed to start domain…
0
votes
1 answer

Migration from Nixops 1.7 to 2.0 and .nix to nixops.nix

I try to migrate my nixops from version 1.7 to nixops_unstable 2.0.0-pre-7220cbd. After installing nixops_unstable I cannot work with the nixops command anymore: $ nixops deploy -d streaming Traceback (most recent call last): File…
0
votes
1 answer

NixOS starting a daemon process example - is the example broken?

In the python flask example application given on https://nixos.org/guides/dev-environment.html ... Isn't it just killing the daemon process whether it passes the health check or not? Maybe there's something implicit going on that I'm not…
-1
votes
1 answer

Linux confused by identical mounts on different disks after attaching disk

We are having a weird problem when attaching an EBS volume to a running Linux (NixOS in this case) instance (for the purpose of growing the file system on that attached volume; on it is the NixOS root file system for another machine that we shut…
nh2
  • 818
  • 3
  • 11
  • 21
1
2