Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
40 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 you can enable a suid wrapper for doas ([nixos wiki][1]), but that has to be put into `/etc/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 you can enable a suid wrapper for doas (nixos wiki ), but that has to be put into /etc/nixos/configuration.nix, which doesn't exist out of NixOS. Does anyone know how to set that configuration value or get doas to function in a different way
Stas Badzi (103 rep)
May 6, 2025, 09:30 PM • Last activity: May 8, 2025, 05:28 PM
4 votes
4 answers
22740 views
How to install Python pip on Nixos?
I can't seem to find the appropriate package that install's `pip` on Nixos?
I can't seem to find the appropriate package that install's pip on Nixos?
Chris Stryczynski (6603 rep)
May 15, 2019, 03:43 PM • Last activity: Sep 1, 2024, 10:10 AM
1 votes
1 answers
231 views
How to register nix package after building?
I know that a nix package from repository can be installed via: ``` nix-env -i package-name ``` After that command executable file is on the path and it everything fine. On project page I spot that a nix package could be build from source: ``` nix-build -A package-name ``` Building completes success...
I know that a nix package from repository can be installed via:
nix-env -i package-name
After that command executable file is on the path and it everything fine. On project page I spot that a nix package could be build from source:
nix-build -A package-name
Building completes successfully and path to executable is printed on console, but current nix environment doesn't see the new program. Sure I can modify PATH manually, but I would like to use nix-build option or addition nix-env run and don't bother with modifying configuration files manually.
Daniil Iaitskov (151 rep)
Jul 29, 2020, 03:42 AM • Last activity: Feb 8, 2023, 10:18 AM
6 votes
2 answers
21648 views
Howto Install google chrome in nixos?
How can I install google chrome in nixos? I have tried nix-env -i google-chrome nix-env -i google-chrome-stable ... Which does not seem to work. I also tried using the unstable branch nix-channel --add https://nixos.org/channels/nixpkgs-unstable nix-channel --update and then nix-env -i unstable.goog...
How can I install google chrome in nixos? I have tried nix-env -i google-chrome nix-env -i google-chrome-stable ... Which does not seem to work. I also tried using the unstable branch nix-channel --add https://nixos.org/channels/nixpkgs-unstable nix-channel --update and then nix-env -i unstable.google-chrome-stable nix-env -i unstable.google-chrome ... However it looks like the package should exist somewhere. https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/networking/browsers/google-chrome Does anybody know what I am missing here?
Arwed Mett (171 rep)
Mar 12, 2018, 03:55 PM • Last activity: Oct 8, 2022, 10:06 PM
1 votes
1 answers
525 views
How to use specific verion of nixpkgs (on macOS)?
How can I point my nix installation (on macOS) to a specific version of nixpkgs? I'm trying to ensure that my home and office computers always use the same versions of all packages.
How can I point my nix installation (on macOS) to a specific version of nixpkgs? I'm trying to ensure that my home and office computers always use the same versions of all packages.
Maxim (111 rep)
Apr 18, 2020, 04:43 PM • Last activity: Jan 9, 2021, 04:18 PM
19 votes
3 answers
8432 views
How do I create a local repository for NixOS/nixpkgs?
All the instructions I find for creating a local repository of Nix packages involve creating a local clone of the main `nixpkgs` repository and adding to that. Is there a way I can create a small repository just containing my local add-on packages?
All the instructions I find for creating a local repository of Nix packages involve creating a local clone of the main nixpkgs repository and adding to that. Is there a way I can create a small repository just containing my local add-on packages?
Michael Ekstrand (2185 rep)
Feb 7, 2015, 03:36 AM • Last activity: May 26, 2019, 02:26 AM
7 votes
2 answers
2451 views
Cloning builder process: Operation not permitted when using Nix (under Linux) update channel
I use Arch Linux `4.19.15-1-lts #1 SMP Sun Jan 13 13:53:52 CET 2019 x86_64 GNU/Linux`. I do also have Nix installed: `nix-env (Nix) 2.2`. I've never had any problems until the recent update to version `2.2`. I always do the upgrades/updates with these two steps: $ nix-channel --update ... $ nix-env...
I use Arch Linux 4.19.15-1-lts #1 SMP Sun Jan 13 13:53:52 CET 2019 x86_64 GNU/Linux. I do also have Nix installed: nix-env (Nix) 2.2. I've never had any problems until the recent update to version 2.2. I always do the upgrades/updates with these two steps: $ nix-channel --update ... $ nix-env --upgrade ... ...but after the recent 2.2 update I can't find a way to make nix-channel --update work anymore. I'm always getting these errors: error: cloning builder process: Operation not permitted error: unable to start build process error: program '/nix/store/876x7a35qbn3q062b6zcz6va88m0990d-nix-2.2/bin/nix-env' failed with exit code 1 ...even if I do rollback the previous operation(s): $ nix-channel --update unpacking channels... error: cloning builder process: Operation not permitted error: unable to start build process error: program '/nix/store/876x7a35qbn3q062b6zcz6va88m0990d-nix-2.2/bin/nix-env' failed with exit code 1 $ nix-channel --rollback switching from generation 40 to 39 $ nix-channel --update unpacking channels... error: cloning builder process: Operation not permitted error: unable to start build process error: program '/nix/store/876x7a35qbn3q062b6zcz6va88m0990d-nix-2.2/bin/nix-env' failed with exit code 1 This is what I have in the update list: $ nix-channel --list nixpkgs https://nixos.org/channels/nixpkgs-unstable ...and eventually I can't even delete that: $ nix-channel --remove nixpkgs uninstalling 'nixpkgs-19.03pre165281.7d864c6bd63' error: cloning builder process: Operation not permitted error: unable to start build process error: program '/nix/store/876x7a35qbn3q062b6zcz6va88m0990d-nix-2.2/bin/nix-env' failed with exit code 1 > I would like to avoid a reinstall. --- **UPDATE** I couldn't wait! O:) I went ahead and removed the current installation...and when I do a fresh install I basically got the same result: $ sh <(curl https://nixos.org/nix/install) --no-daemon % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2476 100 2476 0 0 5417 0 --:--:-- --:--:-- --:--:-- 5406 downloading Nix 2.2.1 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.2.1/nix-2.2.1-x86_64-linux.tar.bz2 ' to '/tmp/nix-binary-tarball-unpack.n5vqvsi4Uq'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 22.5M 100 22.5M 0 0 4016k 0 0:00:05 0:00:05 --:--:-- 4377k Note: a multi-user installation is possible. See https://nixos.org/nix/manual/#sect-multi-user-installation performing a single-user installation of Nix... directory /nix does not exist; creating it by running 'mkdir -m 0755 /nix && chown x80486 /nix' using sudo [sudo] password for x80486: copying Nix to /nix/store................................. initialising Nix database... Nix: creating /home/x80486/.nix-profile installing 'nix-2.2.1' error: cloning builder process: Operation not permitted error: unable to start build process /tmp/nix-binary-tarball-unpack.n5vqvsi4Uq/unpack/nix-2.2.1-x86_64-linux/install: unable to install Nix into your default profile ...so looks like there is, in general, something going on with Linux (or specifically the distro that use) and Nix.
user280674
Jan 16, 2019, 11:04 AM • Last activity: Jan 19, 2019, 08:44 PM
0 votes
1 answers
377 views
Linux Ubuntu 18.04 - nix nixpkgs virtualbox - channel
my status quo Linux cc 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux nix-env (Nix) 2.0.2 "18.09pre140705.090b7cc8f1b" I would like to use nixpkgs / nix package manager as my main system package manager. Is there method to install virtualbox? neither nix...
my status quo Linux cc 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux nix-env (Nix) 2.0.2 "18.09pre140705.090b7cc8f1b" I would like to use nixpkgs / nix package manager as my main system package manager. Is there method to install virtualbox? neither nix-prefetch-url http://download.virtualbox.org/virtualbox/5.2.12/Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.vbox-extpack nix-env -i virtualbox nor nix-env -iA nixpkgs.linuxPackages.virtualboxGuestAdditions \ nixpkgs.linuxPackages.virtualbox worked. Another question is if there is a repository/channel with only binaries/pkgs that are valid and working for my use case [nix on Ubuntu and not NixOS]. - if not, is there a way to broke all packages in channels that are only for NixOS If e.g. conda and services like docker (and virtualbox?) [which have heavy dependencies (/issues)] don´t work on not NixOS systems, is there a use case as pkg-manager for nix (apart from nix-shell and nix for building])?
InLaw (152 rep)
Jun 4, 2018, 09:58 AM • Last activity: Jun 8, 2018, 11:11 AM
1 votes
2 answers
541 views
nixpkgs-unstable visible imperatively but not declaratively
I'm trying to install this Python library `python3.6-geopandas-0.3.0`. And I successfully installed it imperatively with `$ nix-env -iA nixpkgs.python3Packages.geopandas` However I need to create an expression so that my Python environment includes it. with import {}; python36.withPackages (ps: with...
I'm trying to install this Python library python3.6-geopandas-0.3.0. And I successfully installed it imperatively with $ nix-env -iA nixpkgs.python3Packages.geopandas However I need to create an expression so that my Python environment includes it. with import {}; python36.withPackages (ps: with ps; [ geopandas ]) Turns out I get installing ‘python3-3.6.4-env’ error: undefined variable ‘geopandas’ I have both nixos and nixpkgs-unstable configured in my system. Not sure if correctly though. I have channel nixos for root and nixpkgs for my user. $ echo $NIX_PATH nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels I would like to make nixpkgs-unstable the default channel for my user, or at least make its packages visible as an overlay, so I could run the above expression successfully.
dmvianna (407 rep)
Feb 16, 2018, 05:15 AM • Last activity: Feb 18, 2018, 12:37 AM
2 votes
1 answers
105 views
Why does my nixos installation have two paths to 'nixpkgs'?
Searching my system for `nixpkgs` yields the following. $ find / -name nixpkgs 2>/dev/null /nix/store/a4080yzy7vm3c4cwj35kazqi79asi12f-nixos-17.03.1506.b6f05ca54d/nixos/nixpkgs /nix/store/sgk7sxgqxrv2axkxjwc3y15apcqbrv1z-nixos-17.03.1482.1b57bf274a/nixos/nixpkgs Why are there two paths to `nixpkgs`?...
Searching my system for nixpkgs yields the following. $ find / -name nixpkgs 2>/dev/null /nix/store/a4080yzy7vm3c4cwj35kazqi79asi12f-nixos-17.03.1506.b6f05ca54d/nixos/nixpkgs /nix/store/sgk7sxgqxrv2axkxjwc3y15apcqbrv1z-nixos-17.03.1482.1b57bf274a/nixos/nixpkgs Why are there two paths to nixpkgs? Does this mean there is something wrong with my setup?
mherzl (1629 rep)
Aug 11, 2017, 02:27 AM • Last activity: Aug 11, 2017, 06:29 PM
3 votes
0 answers
286 views
How to use a package revision not yet in the published nixpkgs (but described in the development branches of nixpkgs)?
I'd like to use the new release of ghc (7.10, because of a new feature -- `static ptr`), and I'm using a single-user `nix` environment. I don't find the wanted new release in the published lists at ; e.g., the latest ghc's revision points to (it's pre-7.10; but what's the point in using a pre-releas...
I'd like to use the new release of ghc (7.10, because of a new feature -- static ptr), and I'm using a single-user nix environment. I don't find the wanted new release in the published lists at ; e.g., the latest ghc's revision points to (it's pre-7.10; but what's the point in using a pre-release, if a stable 7.10 has been released already since then, 2014-12). But that's the release branch of nixpkgs (release-14.12). Looking into other branches, I can find nix expressions for newer ghc: * master branch of nixpkgs: * staging: (Both master and staging revisions of ghc/7.10.1.nix are identical.) How do I install them into my nix environment (perhaps, with re-compilation)?
imz -- Ivan Zakharyaschev (15862 rep)
Apr 7, 2015, 09:17 AM • Last activity: Sep 20, 2016, 07:30 PM
9 votes
1 answers
2565 views
How do you install a one-off package in NixOS?
I've got a NixOS box that I keep on the `nixos-16.03` channel. I want the machine to stay in a mostly-stable state, and so I am wanting to avoid switching to the `nixos-unstable` channel. However, I need to install a newer version of a package than is available in that channel (`nodejs-6_x` in this...
I've got a NixOS box that I keep on the nixos-16.03 channel. I want the machine to stay in a mostly-stable state, and so I am wanting to avoid switching to the nixos-unstable channel. However, I need to install a newer version of a package than is available in that channel (nodejs-6_x in this instance). In the manual, there is a section that describes [One-Click Installation](https://nixos.org/nix/manual/#sec-one-click) , which seemed at first like exactly what I needed. However, the Hydra server at http://hydra.nixos.org doesn't appear to be serving up any .nixpkg files which are used by the nix-install-package tool described in that section. The wiki also documents a process by which one can customize a package (the page is called [Modifying Packages](https://nixos.org/wiki/Nix_Modifying_Packages)) , which I suppose could be used for my purposes, although it seems like I'd be fighting the tool rather than _using_ it. I asked about this in IRC as well (thanks to M-Ralith for patiently answering my ignorant questions!), but I didn't quite understand how to apply it. The advice was to "override src and version in your nixpkgs config", which sounds like I could write a nix expression in .nixpkgs/configuration.nix and override those properties for the package in my subscribed channel (nixos-16.03). When I asked about packages that don't exist in the channel, the advice was "to specify the entire package rather than just overriding src and version", which I take to mean that I would need to duplicate the entire nix expression for the package I'm interested in. It seems to me that this would have the effect of preventing nix-env from ever updating that package should the stable channel catch up or overtake the version that I use to override. For packages that _exist in another channel_ that I want to install, but stay on my current channel, is there a better way? It almost feels like I should be able to do something like nix-build | nix-env -i. What would be ideal is to install this one off, but not have configuration that might prevent it from being upgraded later on if my current channel were to catch up.
Ben Collins (4171 rep)
Jun 30, 2016, 11:18 PM • Last activity: Jul 1, 2016, 02:20 AM
1 votes
1 answers
287 views
Unable to install vim plugins
I am unable to install any vim plugins on nixOS running the command: nix-env -i vimplugin-Syntastic gives these as the last 3 lines of output: output path ‘/nix/store/3bcdjr4hwgrimcimdg2115prpfm83xca-syntastic-4782184’ should have r:sha256 hash ‘1vjh3a3w6whvaws86z48j8bp7dgavvix8a2kgjn195axs83hpkxy’,...
I am unable to install any vim plugins on nixOS running the command: nix-env -i vimplugin-Syntastic gives these as the last 3 lines of output: output path ‘/nix/store/3bcdjr4hwgrimcimdg2115prpfm83xca-syntastic-4782184’ should have r:sha256 hash ‘1vjh3a3w6whvaws86z48j8bp7dgavvix8a2kgjn195axs83hpkxy’, instead has ‘01a1px7i77ajc4y8czwhkhhqif89q6yf26wpjakh3asdv7cvnidm’ cannot build derivation ‘/nix/store/478msfr0bm6h64zp0ri5c98dgkp4zrcd-vimplugin- Syntastic-2015-02-17.drv’: 1 dependencies couldn't be built error: build of ‘/nix/store/478msfr0bm6h64zp0ri5c98dgkp4zrcd-vimplugin-Syntastic-2015-02-17.drv’ failed All the other output appears normal until these last lines. I'm having the exact same problem with other vim plugins, i've tried 4 other plugins: Solarized Nerd commenter airline ctrp
jmoggr (83 rep)
Feb 24, 2015, 07:19 AM • Last activity: Mar 19, 2015, 04:49 PM
8 votes
1 answers
620 views
Preventing Nix from upgrading git to git-full
I'm using [Nix][1] on Ubuntu to have more modern versions of some packages, one of them being git. When I'm run `nix-env -u`, this is what happens: % nix-env -u --dry-run '*' (dry run; not doing anything) upgrading `git-1.8.5.4' to `git-1.9.0-full' This is not what I want - I prefer the plain versio...
I'm using Nix on Ubuntu to have more modern versions of some packages, one of them being git. When I'm run nix-env -u, this is what happens: % nix-env -u --dry-run '*' (dry run; not doing anything) upgrading git-1.8.5.4' to git-1.9.0-full' This is not what I want - I prefer the plain version git-1.9.0 over the -full version. I know I can manually upgrade to the plain version with nix-env -i git-1.9.0, but is there a way to make nix-env -u to do what I want?
Miikka (525 rep)
Feb 16, 2014, 09:32 AM • Last activity: Mar 19, 2015, 04:46 PM
Showing page 1 of 14 total questions