flake: remove separate nixpkgs-staging and staging-next

This commit is contained in:
Colin 2023-12-11 22:33:38 +00:00
parent 49235a4d83
commit 1bd2d0dfc1
2 changed files with 19 additions and 42 deletions

View File

@ -35,23 +35,7 @@
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1702148972,
"narHash": "sha256-h2jODFP6n+ABrUWcGRSVPRFfLOkM9TJ2pO+h+9JcaL0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b8f33c044e51de6dde3ad80a9676945e0e4e3227",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-staging-next-unpatched": {
"nixpkgs-next-unpatched": {
"locked": {
"lastModified": 1702317658,
"narHash": "sha256-jYzBIMW18oQG+uQ9TVZwiYFHVafYIqllW+zFLROtwcE=",
@ -67,18 +51,18 @@
"type": "github"
}
},
"nixpkgs-staging-unpatched": {
"nixpkgs-stable": {
"locked": {
"lastModified": 1702311933,
"narHash": "sha256-bARcUNREf0wVSYzWhcK+mKCUgzeHbiKKDbpHBH92Mdk=",
"owner": "nixos",
"lastModified": 1702148972,
"narHash": "sha256-h2jODFP6n+ABrUWcGRSVPRFfLOkM9TJ2pO+h+9JcaL0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "14b1b887952e70c12c6b8fc4ee9c1e22ec32faa6",
"rev": "b8f33c044e51de6dde3ad80a9676945e0e4e3227",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "staging",
"owner": "NixOS",
"ref": "release-23.05",
"repo": "nixpkgs",
"type": "github"
}
@ -102,8 +86,7 @@
"root": {
"inputs": {
"mobile-nixos": "mobile-nixos",
"nixpkgs-staging-next-unpatched": "nixpkgs-staging-next-unpatched",
"nixpkgs-staging-unpatched": "nixpkgs-staging-unpatched",
"nixpkgs-next-unpatched": "nixpkgs-next-unpatched",
"nixpkgs-unpatched": "nixpkgs-unpatched",
"sops-nix": "sops-nix",
"uninsane-dot-org": "uninsane-dot-org"

View File

@ -29,7 +29,7 @@
# - daily:
# - nixos-unstable cut from master after enough packages have been built in caches.
# - every 6 hours:
# - master auto-merged into staging.
# - master auto-merged into staging and staging-next
# - staging-next auto-merged into staging.
# - manually, approximately once per month:
# - staging-next is cut from staging.
@ -44,8 +44,9 @@
# <https://github.com/nixos/nixpkgs/tree/nixos-unstable>
# nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=master";
nixpkgs-staging-next-unpatched.url = "github:nixos/nixpkgs?ref=staging-next";
nixpkgs-staging-unpatched.url = "github:nixos/nixpkgs?ref=staging";
# nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=nixos-staging";
# nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=nixos-staging-next";
nixpkgs-next-unpatched.url = "github:nixos/nixpkgs?ref=staging-next";
mobile-nixos = {
# <https://github.com/nixos/mobile-nixos>
@ -74,8 +75,7 @@
outputs = {
self,
nixpkgs-unpatched,
nixpkgs-staging-unpatched ? null,
nixpkgs-staging-next-unpatched ? null,
nixpkgs-next-unpatched ? nixpkgs-unpatched,
mobile-nixos,
sops-nix,
uninsane-dot-org,
@ -153,18 +153,12 @@
moby-light = { name = "moby"; local = "x86_64-linux"; target = "aarch64-linux"; light = true; };
rescue = { name = "rescue"; local = "x86_64-linux"; target = "x86_64-linux"; };
};
stagingHosts = mapAttrs' (h: v: {
name = "${h}-staging";
value = v // { nixpkgs = patchNixpkgs "staging" nixpkgs-staging-unpatched; };
}) hosts;
stagingNextHosts = mapAttrs' (h: v: {
name = "${h}-staging-next";
value = v // { nixpkgs = patchNixpkgs "staging-next" nixpkgs-staging-next-unpatched; };
hostsNext = mapAttrs' (h: v: {
name = "${h}-next";
value = v // { nixpkgs = patchNixpkgs "staging-next" nixpkgs-next-unpatched; };
}) hosts;
in mapAttrValues evalHost (
hosts //
(optionalAttrs (nixpkgs-staging-unpatched != null) stagingHosts) //
(optionalAttrs (nixpkgs-staging-next-unpatched != null) stagingNextHosts)
hosts // hostsNext
);
# unofficial output
@ -491,7 +485,7 @@
};
check.hostConfigs = checkHostConfigsApp "";
check.hostConfigsNext = checkHostConfigsApp "-staging-next";
check.hostConfigsNext = checkHostConfigsApp "-next";
check.rescue = {
type = "app";