From 33b7af4e6259e39f823ceafaec443e17e89da6f2 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 30 Dec 2025 00:14:08 +0900 Subject: [PATCH] flake.nix: add `pkgs` as an output for ease of `why-depends` --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index edc3571..804d75b 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,16 @@ in { inputs = lib.mapAttrs (_: src: src.outPath) inputs; + pkgs = forAllSystems (system: + import nixpkgs { + inherit system; + config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) + [ + "nvidia-x11" + "nvidia-settings" + ]; + }); + nixosConfigurations = let unstablePkgs = nixpkgs-unstable.legacyPackages.x86_64-linux;