nixos Questions
3
I've installed PostgreSQL:
nix-env -iA nixos.postgresql
Now when I use psql, I get:
psql: error: connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or d...
Pannonia asked 9/12, 2022 at 11:22
4
When trying to revive old projects, sometimes I have to fish around for older Nixpkgs commits to get things started.
For example, most of my shell.nix files start like this,
{pkgs ? import <nixp...
2
Jobs on my self-hosted GitLab deployment recently started failing sometimes with this git error:
An example of a full job log is:
Running with gitlab-runner 13.12.0 (v13.12.0)
on ....50ab V...
Pre...
Weinert asked 5/10, 2021 at 20:42
2
Solved
I want to schedule a job from wsl. The job will need to be run in the nix-shell and then in the python virtual environment under Nix-shell. I try to do this by writing a shell script, run ./enter.s...
Ellmyer asked 29/10, 2020 at 20:29
3
when developing in nix i usually use builtins.trace for debugging:
in code
a = { foo = "bar"; ... more complex nested attrset ...};
builtins.trace a a;
in nix-repl
using :p a on a complex data...
1
Solved
My flake.nix in /etc/nixos directory:
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
home-manager = {
url = "githu...
Dimity asked 14/12, 2023 at 15:58
5
Solved
I'm on NixOS 15 and nix-shell v1.10. I use Zsh as my main shell now, and would like to use it in conjuction with Oh-My-Zsh within the nix-shell as well when I'm working in development environments ...
Fishmonger asked 9/10, 2015 at 4:16
3
Solved
I installed docker on nixos, using:
nix-env -i docker
after that, dockerd was not running, so I started the daemon manually with:
dockerd
and in the logs, I see:
WARN[2019-06-26T01:02:31.7...
2
Solved
I recently installed NixOS and I ended up with 3 profiles:
bruno (a user profile),
default (used by root), and
system (used by NixOS).
I found it convenient to use a stable channel for the system...
Effective asked 23/12, 2017 at 15:51
2
Solved
I'd like to find a list of available fonts that I could use in an expression like:
{
i18n = {
consoleFont = "font-name-here";
};
}
in my configuration.nix. (In particular, I'm looking for one...
Mooring asked 19/8, 2018 at 23:37
4
Solved
I'm learning about nixos and nix expressions. In a project folder I created a shell.nix and I when I run nix-shell I want it to preset an environment variable for me.
For example to set the PGDATA ...
Gonococcus asked 30/12, 2014 at 22:49
3
Solved
I was trying to run a Nix command to build a project:
nix build -f default.nix plutus.haskell.packages.plutus-core.components.library
and I received this error!
error: attribute 'aarch64-darwin' m...
Soloman asked 19/8, 2021 at 21:8
3
I've used sh <(curl -L https://nixos.org/nix/install) --daemon to install Nix.
After installation completed run nix-shell -p nix-info --run "nix-info -m" to verify the installation.
It...
Savonarola asked 29/7, 2022 at 9:33
3
Solved
This is a beginner question. So there is a package vscode-with-extensions.
The package says:
A set of vscode extensions to be installed alongside the editor. Here's a an example:
vscode-with-...
1
Solved
I have restart on WSL my installation from scratch:
wsl --unregister Nixos
wsl --import NixOS .\NixOS\ nixos-wsl-installer.tar.gz --version 2
wsl -s Nixos
wsl
nixos-wsl-installer.tar.gz comes ...
3
I'm trying so set up a NixOS VM for code development in haskell, and got into troubles with the basic installation of both xmonad and emacs. The relevant part of my /etc/nixos/configuration.nix is
...
3
In the manual it is written :
The command nix-instantiate generates store derivations from
(high-level) Nix expressions.
But what are store derivations ?
The manual says the following about...
2
Solved
I'm wondering how to install the psql command on NixOS. To be clear: I'm only interested in the client, not the server.
I've looked at the derivation but couldn't find any pointers.
Is there a wa...
Ulmaceous asked 13/9, 2018 at 20:56
5
Is there a way to install NPM command line tools on NixOS?
[root@ip-xxx-xxx-0-27:~/teros/ntrs-cli]# sudo npm i -g typescript
npm WARN checkPermissions Missing write access to /nix/store/rhikjv5vlp...
1
I deleted /nix and started a fresh install of nix, however after installing nix install nix (MACBook Pro M1 arm64 BigSur) with sh <(curl -L https://nixos.org/nix/install) I run $ nix but I get t...
1
Solved
Say I'd like to install @squoosh/cli, this package is mentioned in nixpkgs here. Is there a way to specify the package in configuration.nix, or in the home-manager, to have it be installed by nixos...
1
Solved
I can't find a proper way of setting gtk themes under NixOS. My usual approach is lxappearance, but after installing some gtk-themes with nix lxappearance can't find them (as there is no /usr/share...
Finecut asked 25/7, 2016 at 20:13
1
Answering sed questions on SO I often come across the problem of "works on linux but not MacOS" is it possible to load a version of sed that runs on MacOS into a nix shell?
Currently usin...
3
When I boot my machine it shows all generations in a list, but naming them "Generation 49", "Generation 50", etc.
Is there a way to add labels to generations, so that I can easily see later what w...
Subcortex asked 29/1, 2016 at 1:30
2
Solved
I can see that NixOS has these versions available for install:
...
nodejs-0.10-statsd-0.7.2
nodejs-0.10.42
nodejs-4.3.1
nodejs-5.9.0
...
yet systemPackages doesn't like me installing nodejs-5.9....
1 Next >
© 2022 - 2025 — McMap. All rights reserved.