about summary refs log tree commit diff stats
path: root/modules/system/services/nix/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 19:26:14 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 19:26:14 +0200
commit02dbd63bdfc544f2521f8bdf746819ebcc7d1ab8 (patch)
tree56524cfb9bba1fb9529eddae4f7ecf4b038adc26 /modules/system/services/nix/default.nix
parentchore(version): v1.38.2 (diff)
downloadnixos-config-02dbd63bdfc544f2521f8bdf746819ebcc7d1ab8.tar.gz
nixos-config-02dbd63bdfc544f2521f8bdf746819ebcc7d1ab8.zip
fix(services/nix): Override both `legacyPackages` attrs when adding the flake
Diffstat (limited to '')
-rw-r--r--modules/system/services/nix/default.nix3
1 files changed, 3 insertions, 0 deletions
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;