Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use nix profile anymore #12550

Open
OwOchle opened this issue Feb 22, 2025 · 2 comments
Open

Cannot use nix profile anymore #12550

OwOchle opened this issue Feb 22, 2025 · 2 comments
Labels

Comments

@OwOchle
Copy link

OwOchle commented Feb 22, 2025

Describe the bug

When trying to install packages on non nixos desktop with nix profile install nixpkgs#<package>, i get this error which I had not before

path '/home/owochle' does not contain a 'flake.nix', searching up
error: path '/home/owochle' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)

Steps To Reproduce

I can't really tell you how to reproduce as i just updated nix to the latest version in arch extra's. However just tell me if you want to have commands outputs and all.

Expected behavior

Regular installation. Before I tried cleaning my nix install for possible debugging, I was still able to upgrade flakes installed before this unexpected behaviour.

Metadata

nix-env (Nix) 2.26.2

Add 👍 to issues you find important.

@OwOchle OwOchle added the bug label Feb 22, 2025
@edolstra
Copy link
Member

I couldn't reproduce this. Can you run that command with -vvvvv and also show the output of nix registry list and nix profile list?

@OwOchle
Copy link
Author

OwOchle commented Feb 24, 2025

nix profile -vvvvv install nixpkgs#eza outputs the same as without
nix registry list:

global flake:agda github:agda/agda
global flake:arion github:hercules-ci/arion
global flake:blender-bin github:edolstra/nix-warez?dir=blender
global flake:bundlers github:NixOS/bundlers
global flake:cachix github:cachix/cachix
global flake:composable github:ComposableFi/composable
global flake:disko github:nix-community/disko
global flake:dreampkgs github:nix-community/dreampkgs
global flake:dwarffs github:edolstra/dwarffs
global flake:emacs-overlay github:nix-community/emacs-overlay
global flake:fenix github:nix-community/fenix
global flake:flake-parts github:hercules-ci/flake-parts
global flake:flake-utils github:numtide/flake-utils
global flake:helix github:helix-editor/helix
global flake:hercules-ci-agent github:hercules-ci/hercules-ci-agent
global flake:hercules-ci-effects github:hercules-ci/hercules-ci-effects
global flake:home-manager github:nix-community/home-manager
global flake:hydra github:NixOS/hydra
global flake:mach-nix github:DavHau/mach-nix
global flake:nickel github:tweag/nickel
global flake:nix github:NixOS/nix
global flake:nix-darwin github:LnL7/nix-darwin
global flake:nix-serve github:edolstra/nix-serve
global flake:nixops github:NixOS/nixops
global flake:nixos-anywhere github:nix-community/nixos-anywhere
global flake:nixos-hardware github:NixOS/nixos-hardware
global flake:nixos-homepage github:NixOS/nixos-homepage
global flake:nixos-search github:NixOS/nixos-search
global flake:nixpkgs github:NixOS/nixpkgs/nixpkgs-unstable
global flake:nur github:nix-community/NUR
global flake:patchelf github:NixOS/patchelf
global flake:poetry2nix github:nix-community/poetry2nix
global flake:pridefetch github:SpyHoodle/pridefetch
global flake:sops-nix github:Mic92/sops-nix
global flake:systems github:nix-systems/default
global flake:templates github:NixOS/templates

nix profile list:

Name:               �[1mbat�[0m
Store paths:        /nix/store/rx82z23sg97m3m1c0264h662jgm3fklh-bat-0.24.0

Name:               �[1meza�[0m
Store paths:        /nix/store/kf2kmldp7sc7g6vs5jplvxjv0y3afrfq-eza-0.18.16

Name:               �[1mvscodium�[0m
Store paths:        /nix/store/0pr2dn1q0ajiacb4v9d4d2w7c2260d3n-vscodium-1.94.1.24283

These packages were installed with nix-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants