Compare commits
11 Commits
nixos-26.1
...
main
| Author | SHA1 | Date |
|---|---|---|
|
|
f2987537d8 | |
|
|
a971564f5e | |
|
|
c13fb4ac6b | |
|
|
a602e332af | |
|
|
5a5daa2103 | |
|
|
9ba6aac3dc | |
|
|
942bb75eea | |
|
|
4c2db362d6 | |
|
|
85423287a4 | |
|
|
646f57fa10 | |
|
|
aa7fbf7185 |
|
|
@ -2,16 +2,16 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1796250853,
|
||||
"narHash": "sha256-tNRFv/wgwlKmCPJMLQWCZWNDIRJHCjVQIr5MMzC4oEc=",
|
||||
"lastModified": 1796087880,
|
||||
"narHash": "sha256-P2MPChVGraSc3Lt8RCUpTwu07reSinLxqmVV/rzq2io=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a9968d9970e0ac9b880467e26f3cd80d56090d00",
|
||||
"rev": "c555305170f8bdcc9d420912c04cdf3d6d61d08c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "release-26.11",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
|||
14
flake.nix
14
flake.nix
|
|
@ -2,7 +2,7 @@
|
|||
description = "dragnpkgs together with nixpkgs and lix";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/release-26.11"; # TODO: change to nixos-26.11
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
|
|
@ -23,18 +23,18 @@
|
|||
# self reference in the registry to be downloadable by URL in case it makes it into a
|
||||
# flake.lock
|
||||
meta.registry-entry = {
|
||||
from = { id = "dragnpkgs"; type = "indirect"; };
|
||||
from = { id = "dragnpkgs-unstable"; type = "indirect"; };
|
||||
to = {
|
||||
type = "git";
|
||||
url = "https://git.lain.faith/haskal/dragnpkgs.git";
|
||||
ref = "nixos-26.11";
|
||||
ref = "main";
|
||||
} // self.lib.filterAttrs
|
||||
(n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash")
|
||||
self;
|
||||
};
|
||||
|
||||
# the nix path entry for self
|
||||
meta.path-entry = "dragnpkgs=flake:dragnpkgs";
|
||||
meta.path-entry = "dragnpkgs-unstable=flake:dragnpkgs-unstable";
|
||||
|
||||
lib = (lib-base.extend (import ./lib/overlay.nix)).extend (final: prev: {
|
||||
# initializes regular upstream nixpkgs with the given arguments
|
||||
|
|
@ -149,17 +149,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
config.nix.registry.dragnpkgs =
|
||||
config.nix.registry.dragnpkgs-unstable =
|
||||
lib.mkIf config.dragnpkgs.setFlakeRegistry self.meta.registry-entry;
|
||||
|
||||
config.nix.registry.nixpkgs = lib.mkIf config.dragnpkgs.setNixpkgsFlakeAlias {
|
||||
from = { id = "nixpkgs"; type = "indirect"; };
|
||||
to = { id = "dragnpkgs"; type = "indirect"; };
|
||||
to = { id = "dragnpkgs-unstable"; type = "indirect"; };
|
||||
};
|
||||
|
||||
config.nix.registry.templates = lib.mkIf config.dragnpkgs.setTemplatesFlakeAlias {
|
||||
from = { id = "templates"; type = "indirect"; };
|
||||
to = { id = "dragnpkgs"; type = "indirect"; };
|
||||
to = { id = "dragnpkgs-unstable"; type = "indirect"; };
|
||||
};
|
||||
|
||||
config.nix.nixPath = lib.mkIf config.dragnpkgs.setNixPath [
|
||||
|
|
|
|||
Loading…
Reference in New Issue