nix unstableee

This commit is contained in:
dusk 2022-05-28 16:12:53 +03:00
parent 475368203b
commit de26fd16e8
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 92 additions and 19 deletions

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1652452043, "lastModified": 1653518057,
"narHash": "sha256-nh3mdVB/Kk5ag1uRMAlKo8r+ssN3HNxwbLsqRG4xZkw=", "narHash": "sha256-cam3Nfae5ADeEs6mRPzr0jXB7+DhyMIXz0/0Q13r/yk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "273598f53e04f0111dca5724b37640e3907edaaf", "rev": "64831f938bd413cefde0b0cf871febc494afaa4f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -21,13 +21,51 @@
"type": "github" "type": "github"
} }
}, },
"lowdown-src": {
"flake": false,
"locked": {
"lastModified": 1633514407,
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=",
"owner": "kristapsdz",
"repo": "lowdown",
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8",
"type": "github"
},
"original": {
"owner": "kristapsdz",
"repo": "lowdown",
"type": "github"
}
},
"nix": {
"inputs": {
"lowdown-src": "lowdown-src",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-regression": "nixpkgs-regression"
},
"locked": {
"lastModified": 1653643505,
"narHash": "sha256-VReVQKEfedov22lbZYQjOcIoxjOcLCSVWF8A2szoZ/k=",
"owner": "nixos",
"repo": "nix",
"rev": "ec07a70979a86cc436de7e46e03789b4606d25ab",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nix",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1650522846, "lastModified": 1653463224,
"narHash": "sha256-SxWHXRI3qJwswyXAtzsi6PKVY3KLNNnb072KaJthII8=", "narHash": "sha256-bUxKhqZhki2vPzFTl8HOo1m7pagF7WzY1MZiso8U5ws=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "6b4ebea9093c997c5f275c820e679108de4871ab", "rev": "39a7bfc496d2ddfce73fe9542af1f2029ba4fe39",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -53,11 +91,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1652231724, "lastModified": 1653581809,
"narHash": "sha256-MjalcXFZgcgchp4QqnF05JTkFBBGad5hbksA1EKoP98=", "narHash": "sha256-Uvka0V5MTGbeOfWte25+tfRL3moECDh1VwokWSZUdoY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "41ff747f882914c1f8c233207ce280ac9d0c867f", "rev": "83658b28fe638a170a19b8933aa008b30640fbd1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -67,9 +105,25 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-regression": {
"locked": {
"lastModified": 1643052045,
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
"type": "github"
},
"original": {
"id": "nixpkgs",
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
"type": "indirect"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home": "home", "home": "home",
"nix": "nix",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixos-persistence": "nixos-persistence", "nixos-persistence": "nixos-persistence",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"

View File

@ -9,6 +9,9 @@
nixos-hardware.url = "github:nixos/nixos-hardware"; nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-persistence.url = "github:nix-community/impermanence"; nixos-persistence.url = "github:nix-community/impermanence";
nix.url = "github:nixos/nix";
nix.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = inputs: let outputs = inputs: let
@ -16,9 +19,8 @@
tlib = (import ./lib lib).extend (_: prev: rec { tlib = (import ./lib lib).extend (_: prev: rec {
makePkgs = system: makePkgs = system:
import ./pkgs-set { import ./pkgs-set {
inherit system lib; inherit system lib inputs;
tlib = prev; tlib = prev;
channel = inputs.nixpkgs;
}; };
genPkgs = f: prev.genSystems (system: f (makePkgs system)); genPkgs = f: prev.genSystems (system: f (makePkgs system));
}); });

View File

@ -5,8 +5,11 @@
... ...
}: { }: {
nix = { nix = {
registry = builtins.mapAttrs (_: v: {flake = v;}) (lib.filterAttrs (_: v: v ? outputs) inputs); registry =
package = pkgs.nixUnstable; builtins.mapAttrs
(_: v: {flake = v;})
(lib.filterAttrs (_: v: v ? outputs) inputs);
package = pkgs.nix;
gc.automatic = true; gc.automatic = true;
optimise.automatic = true; optimise.automatic = true;
extraOptions = '' extraOptions = ''

View File

@ -1,20 +1,28 @@
{ {
channel, inputs,
system, system,
lib, lib,
... ...
}: let }: let
pkgs = import channel { l = lib;
pkgs = import inputs.nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = overlays =
lib.mapAttrsToList l.mapAttrsToList
(name: _: import "${./overlays}/${name}") (
(lib.readDir ./overlays); name: _: let
o = import "${./overlays}/${name}";
in
if (l.functionArgs o) ? inputs
then o {inherit inputs;}
else o
)
(l.readDir ./overlays);
}; };
pkgsToExport = import ./pkgs-to-export.nix; pkgsToExport = import ./pkgs-to-export.nix;
in in
pkgs pkgs
// { // {
_exported = lib.getAttrs pkgsToExport pkgs; _exported = l.getAttrs pkgsToExport pkgs;
} }

View File

@ -0,0 +1,6 @@
{inputs}: _: prev: {
nix = inputs.nix.packages.${prev.system}.nix.overrideAttrs (old: {
doCheck = false;
doInstallCheck = false;
});
}