Comments (5)
This sounds neat but here is a little idea to consider:
Maybe it is worth renaming nixos-unstable
to nixos-rolling
or something along those lines just to make it more newbie-friendly?
Especially now with flakes, it is so obvious that one can just rollback channel by simply git restore flake.lock
. There is no need to even know about --rollback
flag
Just a thought, possibly RFC material, but yeah, might be worth considering
from flake-registry.
If one wants a version from 20.09, one needs to use
$ nix shell nixpkgs#hello --override-input nixpkgs github:nixos/nixpkgs/nixos-20.09
Why not use this instead?
$ nix shell nixpkgs/nixos-20.09#hello
But in general, I agree that just writing nixos-20.09#hello
is much shorter :-)
from flake-registry.
Independentlty of the appropriate invocation syntax, I do agree that the registry could ship with current stable + nixos-unstable
as sensible defaults - and make do with the custom entries, e.g. github:edolstra
and github:DavHau
.
from flake-registry.
$ nix shell nixpkgs/nixos-20.09#hello
I did not imagine this to work, actually! It was my impression nixpkgs
in the global registry would point to a certain branch already.
From the registry file
"from": {
"id": "nixpkgs",
"type": "indirect"
},
"to": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
it seems no branch is selected. I was under the impression at least a channel was chosen.
Checking what nixpkgs
resolves to
$ nix flake info nixpkgs
Resolved URL: github:NixOS/nixpkgs
Locked URL: github:NixOS/nixpkgs/d82188bf90f70880229a746b6dfd666a53f85b50
Description: A collection of packages for the Nix package manager
Path: /nix/store/1gzaxqrpydlwbbvnak4z5h5vkmp449i3-source
Revision: d82188bf90f70880229a746b6dfd666a53f85b50
Last modified: 2020-10-25 09:52:22
$ nix flake info nixpkgs/nixos-20.09
Resolved URL: github:NixOS/nixpkgs/nixos-20.09
Locked URL: github:NixOS/nixpkgs/95d26c9a9f2a102e25cf318a648de44537f42e09
Description: A collection of packages for the Nix package manager
Path: /nix/store/wgzfnwgrrj8ach2kc971yw1vvr0fvsqs-source
Revision: 95d26c9a9f2a102e25cf318a648de44537f42e09
Last modified: 2020-10-24 10:37:53
Bare nixpkgs
corresponds to master
, that's something to keep in mind :)
from flake-registry.
One hiccup is that Nix considers that keys with a dot must be a path, and doesn't look them up even if they are in the registry.
from flake-registry.
Related Issues (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 flake-registry.