From 02dbd63bdfc544f2521f8bdf746819ebcc7d1ab8 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 25 May 2024 19:26:14 +0200 Subject: fix(services/nix): Override both `legacyPackages` attrs when adding the flake --- modules/system/services/nix/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/system/services/nix/default.nix') diff --git a/modules/system/services/nix/default.nix b/modules/system/services/nix/default.nix index e4fe11d1..980bbd39 100644 --- a/modules/system/services/nix/default.nix +++ b/modules/system/services/nix/default.nix @@ -19,7 +19,10 @@ nixpkgs_as_input // { # Otherwise nixpkgs's config and overlays are not available: + + # Both attrs exists, so we just override both and hope outputs.legacyPackages."${system}" = pkgs; + legacyPackages."${system}" = pkgs; }; t.flake = templates; -- cgit 1.4.1