Comments (7)
is it possible to use a different flake for comma (instead of nixpkgs)?
implemented in 17a4f33
from comma.
I wonder if the
.contains("nixpkgs")
should be.contains("nixpkgs=")
in order to differentiate when nixpkgs is explicitly specified, or just happens to be in the path of a different entry?
fixed e27a636 thanks for the report
from comma.
Currently we're checking if NIX_PATH contains nixpkgs(users usually remove it if using flakes) and determining if we should use flakes or channels
Line 106 in c83ff38
what is the output of echo $NIX_PATH
from comma.
Currently we're checking if NIX_PATH contains nixpkgs(users usually remove it if using flakes) and determining if we should use flakes or channels
Line 106 in c83ff38
what is the output of
echo $NIX_PATH
❯ echo $NIX_PATH
/home/quantmint/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
Isn't there a better way to find out if a user is using flakes? I use flakes, but NIX_PATH is set by default.
Also, is it possible to use a different flake for comma (instead of nixpkgs)?
Line 50 in c83ff38
from comma.
I ran into this same issue. I use flakes, and my NIX_PATH
is
/Users/fmoda3/.nix-defexpr/channels:darwin-config=/Users/fmoda3/.nixpkgs/darwin-configuration.nix:/nix/var/nix/profiles/per-user/root/channels
which happens to contain "nixpkgs" in one of the entries, making comma think I am using channels.
To fix it, i had to add nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
to my flake, to force a nixpkgs
entry that points to my flake.
After this addition, NIX_PATH
becomes
/Users/fmoda3/.nix-defexpr/channels:darwin-config=/Users/fmoda3/.nixpkgs/darwin-configuration.nix:nixpkgs=/nix/store/v0vq1p4c17x97w2py57xanh4nlh4v4cn-source:/nix/var/nix/profiles/per-user/root/channels
I wonder if the .contains("nixpkgs")
should be .contains("nixpkgs=")
in order to differentiate when nixpkgs is explicitly specified, or just happens to be in the path of a different entry?
from comma.
Related Issues (20)
- Use local `nixpkgs` instead of downloading it as soon as a new "version" is available HOT 4
- aarch64-darwin is newly unsupported HOT 5
- comma fails to run with fish HOT 4
- No Longer Working - Only Shows `no match` HOT 2
- Run arbitrary flake? HOT 1
- Comma db age check runs on "modified" time HOT 4
- Stop using $NIX_PATH and channels HOT 2
- Print package name of executable HOT 1
- Nix-index database does not exist, try updating with `--update`. HOT 1
- `error: value is null while a set was expected` on update HOT 2
- "no match" on all invocations HOT 3
- Prebuilt index not found HOT 2
- "attribute 'x11' missing" HOT 3
- Problem getting comma working with home-manager HOT 7
- Provide an environment variable to specify the nix-index database location HOT 3
- Add install guide for nixos configuration with flakes HOT 2
- Shell completion HOT 2
- Add --shell option HOT 1
- [feature request] disable picker by using exact match HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comma.