Flake: store nixpkgs patches in repo

This commit is contained in:
Toast 2024-01-16 20:40:21 +01:00
parent c114dc56ad
commit e0f5fffea4
3 changed files with 47 additions and 19 deletions

View file

@ -5,11 +5,6 @@
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable-raw.url = "nixpkgs/nixos-unstable";
nixpkgs-pr280779 = {
url = "file+https://github.com/NixOS/nixpkgs/pull/280779.patch";
flake = false;
};
agenix = {
url = "github:ryantm/agenix";
inputs = {
@ -77,7 +72,7 @@
nixpkgs-unstable-patched = nixpkgs.legacyPackages.x86_64-linux.applyPatches {
name = "patched-nixpkgs-unstable";
src = nixpkgs-unstable-raw;
patches = [ nixpkgs-pr280779 ];
patches = [ ./nixpkgs-patches/pr280779.patch ];
};
# https://discourse.nixos.org/t/proper-way-of-applying-patch-to-system-managed-via-flake/21073/26
nixpkgs-unstable = (import "${nixpkgs-unstable-patched}/flake.nix").outputs { self = inputs.self; };