Questions tagged [nix]
Questions about Nix, the purely functional package manager and its usage and configuration.
196 questions
0 votes
0 answers
79 views
How to evaluate a NixOS configuration to view an output on a non-NixOS system
I am trying to programmatically extract one of the generated files from a NixOS install. Basically on my NixOS system I run sudo nixos-rebuild switch and as part of the build it writes to /nix/store/&...
1 vote
1 answer
126 views
How can I declaratively load Docker images in NixOS avoiding the slow `docker load`?
I’m using NixOS with Docker enabled via: virtualisation.docker.enable = true; I want to declare a set of Docker images so that they are already available when I run docker images. It seems in older ...
0 votes
1 answer
103 views
nix command not found in tmux panes and windows
I use nix and home manager, zsh and tmux. My problem is that in tmux splits the nix command does not exist. I tried setting default shell in tmux to /bin/zsh -l sourcing files etc, I notice the PATH ...
0 votes
1 answer
82 views
How to set package cofigurations in nix packge without nixos
I have installed a Nix package on my ubuntu os, that depends on doas, and for it to function, it's binary need's to have the suid bit set - and it isn't in the default nix-env installation. On NixOS ...
0 votes
0 answers
44 views
weird background when neovim plugins create panels
I'm not 100% sure how to describe the problem, but there's this background color applied to the editor whenever Telescope, NerdTree, or CtrlP display. Incase it wasn't obvious nixos is configuring ...
3 votes
2 answers
3k views
How to get the path of installed package in the nix store?
My package is installed with a configuration.nix { config, pkgs, lib, ... }: { environment.systemPackages = with pkgs; [ my-package ]; } How can I query for the path of my-package in the nix ...
0 votes
1 answer
294 views
How to specify `--ignore-environment` for `nix develop` by configuration?
Is there a way to always invoke the command-line option: --ignore-environment for the nix develop command, by configuration in some config file? The value of this would be to ensure that a Nix Flake ...
0 votes
1 answer
85 views
nix builds wrong package
Using nix build with the flake.nix below, the build should fail since the references github repository does not exist. Yet, whenever I build the flake, while it shows ecsdsddsdse.fghfghfghfghgfh as ...
1 vote
1 answer
321 views
Changing the GNUPG home directory on NixOS
I'm setting up NixOS 24.05 and I'm using the equivalent version of Home Manager. I'm trying to move the directory for GNUPG to $HOME/.local/share/gnupg also known as $XDG_DATA_HOME/gnupg. I know that ...
0 votes
1 answer
137 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 = { ...
1 vote
0 answers
92 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 ...
0 votes
1 answer
1k 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 ...
0 votes
1 answer
696 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 ...
0 votes
0 answers
53 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 ...
0 votes
1 answer
903 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 ...