refactor: remove overlays/pins.nix
This commit is contained in:
2
TODO.md
2
TODO.md
@@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
## REFACTORING:
|
## REFACTORING:
|
||||||
|
|
||||||
- remove unused `overlays/pins.nix`
|
|
||||||
|
|
||||||
### sops/secrets
|
### sops/secrets
|
||||||
- attach secrets to the thing they're used by (sane.programs)
|
- attach secrets to the thing they're used by (sane.programs)
|
||||||
- rework secrets to leverage `sane.fs`
|
- rework secrets to leverage `sane.fs`
|
||||||
|
12
flake.nix
12
flake.nix
@@ -23,9 +23,6 @@
|
|||||||
# preferably, i would rewrite the human-readable https URLs to nix-specific github: URLs with a helper,
|
# preferably, i would rewrite the human-readable https URLs to nix-specific github: URLs with a helper,
|
||||||
# but `inputs` is required to be a strict attrset: not an expression.
|
# but `inputs` is required to be a strict attrset: not an expression.
|
||||||
inputs = {
|
inputs = {
|
||||||
# <https://github.com/nixos/nixpkgs/tree/nixos-22.11>
|
|
||||||
# nixpkgs-stable.url = "github:nixos/nixpkgs?ref=nixos-22.11";
|
|
||||||
|
|
||||||
# branch workflow:
|
# branch workflow:
|
||||||
# - daily:
|
# - daily:
|
||||||
# - nixos-unstable cut from master after enough packages have been built in caches.
|
# - nixos-unstable cut from master after enough packages have been built in caches.
|
||||||
@@ -180,12 +177,6 @@
|
|||||||
optimizations = final: prev: import ./overlays/optimizations.nix final prev;
|
optimizations = final: prev: import ./overlays/optimizations.nix final prev;
|
||||||
passthru = final: prev:
|
passthru = final: prev:
|
||||||
let
|
let
|
||||||
stable =
|
|
||||||
if inputs ? "nixpkgs-stable" then (
|
|
||||||
final': prev': {
|
|
||||||
stable = inputs.nixpkgs-stable.legacyPackages."${prev'.stdenv.hostPlatform.system}";
|
|
||||||
}
|
|
||||||
) else (final': prev': {});
|
|
||||||
mobile = (import "${mobile-nixos}/overlay/overlay.nix");
|
mobile = (import "${mobile-nixos}/overlay/overlay.nix");
|
||||||
uninsane = uninsane-dot-org.overlay;
|
uninsane = uninsane-dot-org.overlay;
|
||||||
# nix-serve' = nix-serve.overlay;
|
# nix-serve' = nix-serve.overlay;
|
||||||
@@ -196,8 +187,7 @@
|
|||||||
inherit (nix-serve.packages."${next.system}") nix-serve;
|
inherit (nix-serve.packages."${next.system}") nix-serve;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
(stable final prev)
|
(mobile final prev)
|
||||||
// (mobile final prev)
|
|
||||||
// (uninsane final prev)
|
// (uninsane final prev)
|
||||||
// (nix-serve' final prev)
|
// (nix-serve' final prev)
|
||||||
;
|
;
|
||||||
|
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
final: prev:
|
final: prev:
|
||||||
let
|
let
|
||||||
pins = import ./pins.nix;
|
|
||||||
pkgs = import ./pkgs.nix;
|
pkgs = import ./pkgs.nix;
|
||||||
disable-flakey-tests = import ./disable-flakey-tests.nix;
|
disable-flakey-tests = import ./disable-flakey-tests.nix;
|
||||||
optimizations = import ./optimizations.nix;
|
optimizations = import ./optimizations.nix;
|
||||||
@@ -18,7 +17,6 @@ let
|
|||||||
overlays;
|
overlays;
|
||||||
in
|
in
|
||||||
renderOverlays [
|
renderOverlays [
|
||||||
pins
|
|
||||||
pkgs
|
pkgs
|
||||||
disable-flakey-tests
|
disable-flakey-tests
|
||||||
(ifCross optimizations)
|
(ifCross optimizations)
|
||||||
|
@@ -1,31 +0,0 @@
|
|||||||
# when a `nixos-rebuild` fails after a nixpkgs update:
|
|
||||||
# - take the failed package
|
|
||||||
# - search it here: <https://hydra.nixos.org/search?query=pkgname>
|
|
||||||
# - if it's broken by that upstream builder, then pin it: somebody will come along and fix the package.
|
|
||||||
# - otherwise, search github issues/PRs for knowledge of it before pinning.
|
|
||||||
# - if nobody's said anything about it yet, probably want to root cause it or hold off on updating.
|
|
||||||
#
|
|
||||||
# note that these pins apply to *all* platforms:
|
|
||||||
# - natively compiled packages
|
|
||||||
# - cross compiled packages
|
|
||||||
# - qemu-emulated packages
|
|
||||||
|
|
||||||
(next: prev: {
|
|
||||||
# XXX: when invoked outside our flake (e.g. via NIX_PATH) there is no `next.stable`,
|
|
||||||
# so just forward the unstable packages.
|
|
||||||
inherit (next.stable or prev)
|
|
||||||
;
|
|
||||||
# chromium can take 4 hours to build from source, with no signs of progress.
|
|
||||||
# disable it if you're in a rush.
|
|
||||||
# chromium = next.emptyDirectory;
|
|
||||||
|
|
||||||
# lemmy-server = prev.lemmy-server.overrideAttrs (upstream: {
|
|
||||||
# patches = upstream.patches or [] ++ [
|
|
||||||
# (next.fetchpatch {
|
|
||||||
# # "Fix docker federation setup (#2706)"
|
|
||||||
# url = "https://github.com/LemmyNet/lemmy/commit/2891856b486ad9397bca1c9839255d73be66361.diff";
|
|
||||||
# hash = "sha256-qgRvBO2y7pmOWdteu4uiZNi8hs0VazOV+L5Z0wu60/E=";
|
|
||||||
# })
|
|
||||||
# ];
|
|
||||||
# });
|
|
||||||
})
|
|
Reference in New Issue
Block a user