nixpkgs: patching test

This commit is contained in:
2025-11-24 16:43:12 -05:00
parent 2f89e5f8c4
commit 6204949bdc
2 changed files with 132 additions and 4 deletions

View File

@@ -70,7 +70,6 @@
outputs =
{
self,
nixpkgs,
lanzaboote,
nixos-hardware,
home-manager,
@@ -86,15 +85,26 @@
"yarn"
];
niri-package = inputs.niri.packages.${system}.niri-unstable;
patchedNixpkgsSrc = (import inputs.nixpkgs { inherit system; }).applyPatches {
name = "nixpkgs-patched";
src = inputs.nixpkgs;
patches = [ ./0001-feat-make-boot-messages-configureable.patch ];
};
patchedNixpkgs = import patchedNixpkgsSrc { inherit system; };
in
{
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
formatter.${system} = patchedNixpkgs.nixfmt-rfc-style;
nixosConfigurations = nixpkgs.lib.foldl' (
nixosConfigurations = patchedNixpkgs.lib.foldl' (
config: hostname:
config
// {
"${hostname}" = nixpkgs.lib.nixosSystem {
"${hostname}" = import "${patchedNixpkgsSrc}/nixos/lib/eval-config.nix" {
lib = patchedNixpkgs.lib;
baseModules = import "${patchedNixpkgsSrc}/nixos/modules/module-list.nix";
inherit system;
specialArgs = {
inherit
inputs