Skip to main content

Questions tagged [nix]

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

0 votes
1 answer
28 views

Which Nix Install Mode?

I am thinking about install nix on my laptop that is running Manjaro. I will be the only one using the laptop. I've read the differences on the Nix install page about mult-user vs single-user. ...
drsnark's user avatar
  • 101
0 votes
1 answer
8 views

Conflicting settings value for Nixos service when defined within Nixos declarative containers

Within my nixos config I have a container defined: containers.finderdbreplica = { config = { config, pkgs, ... }: { services.postgresql = { ... services.postgresql = { ...
Chris Stryczynski's user avatar
0 votes
0 answers
13 views

How do I test to see if the Nix daemon is running and accepting requests?

(I'm asking here about the Nix package manager, not NixOS.) What code (in Bash, or similar) can I run to see if the Nix daemon is running and able to accept requests from the current user? Ideally ...
cjs's user avatar
  • 698
0 votes
0 answers
13 views

Trouble installing mupdf with nix package manager

I am trying to use nix package manager which is supposed to be a better than apt. As an example I tried to delete mupdf, my pdf file viewer using sudo apt-get remove --purge mupdf and install it with ...
ecjb's user avatar
  • 445
0 votes
1 answer
55 views

File listing all the packages installed with Nix package manager

I just installed nix package manager on Ubuntu 22.04 LTS and I was wondered if there exist a file which lists all the packages installed with nix (in order for example to list all the packages ...
ecjb's user avatar
  • 445
0 votes
0 answers
43 views

Best practices to install binaries inside nix-shell

I'm preparing a Nix derivation for tenv version manager. Steps nix-build and nix-shell work fine, I can run tenv inside the nix-shell. But the purpose of tenv is installing needed versions of binaries ...
nmishin's user avatar
  • 151
0 votes
1 answer
113 views

Installing KDE Plasma 5 through Nix

I am trying to install KDE Plasma 5 (for compatibility reasons) on Arch Linux (installed through EndeavourOS) without using pacman, as, from what I can tell, it is already updated to Plasma 6 and ...
IS4's user avatar
  • 223
0 votes
0 answers
20 views

nixos and application versions state conflicts

I have been getting into the warm waters of Nixos... One of the questions the Nixos document does not appear to address is application state. There is, of course, application configuration, which is ...
George's user avatar
  • 101
0 votes
1 answer
121 views

Nix - creating multiple profiles for one user

What is the correct way to create multiple nix profiles for one user? I want to configure them differently and switch between them automatically with tools like direnv. This is the only documentation ...
mq7's user avatar
  • 101
0 votes
0 answers
166 views

`No such file or directory:` ruff. but file exists

I am using nixOS and I have a flake.nix. I use pre-commit to run ruff. my pre-commit config: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.4 hooks: - id: ruff ...
linuxNewbie's user avatar
0 votes
2 answers
165 views

In Nix, how to make one derivation depend on another next to it?

I'm currently trying to package some closed-source software into Nix derivations. The app is distributed as a large pile of .deb files, and most of them contain libraries that the other parts of the ...
Danya02's user avatar
  • 121
0 votes
1 answer
71 views

Nix pkgmanager: Profile path on single-user installation (non-NixOS)

I tried to switch generations in the nix package manager with nix-env --switch-generations 33, but because I'm an idiot, I accidentally did nix-env --switch-profile 33, and now I can't use nix. I can ...
TSJNachos117's user avatar
0 votes
0 answers
180 views

Configure vscode in Nixos

My Nixos uses tmpfs as the root filesystem, and I want to configure VSCode in Home Manager. I want to ask you, which files or folders should VSCode persist? vscode.nix: { pkgs , ... } @ args: { ...
Xiaoer's user avatar
  • 1
0 votes
1 answer
180 views

NixOS rebuild fails because some directories according to NIX_PATH do not exist

When I try to rebuild NixOS, it fails because it can't find some directories according to NIX_PATH. This happens since I tried to switch to the channel nixos-unstable from 23.11 and accidentally added ...
matj1's user avatar
  • 41
1 vote
1 answer
58 views

Use axel to get source instead curl for fetchurl in NixOS

I'm trying to start a shell with Cuda. I have following shell.nix file { pkgs ? import <nixpkgs> { } }: pkgs.mkShell { name = "cuda-env-shell"; buildInputs = with pkgs; [ ...
s1n7ax's user avatar
  • 418

15 30 50 per page
1
2 3 4 5
13