about summary refs log tree commit diff stats
path: root/modules/system
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 13:40:33 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 13:40:33 +0200
commit2dfef514292b666df6fdb19d192d54c3fdac9fe7 (patch)
tree9c15652c4e7a8ddeb29a52e7d3b1de3b03970cb5 /modules/system
parentfeat(modules/system/issue_file): Add the last modification date (diff)
downloadnixos-config-2dfef514292b666df6fdb19d192d54c3fdac9fe7.tar.gz
nixos-config-2dfef514292b666df6fdb19d192d54c3fdac9fe7.zip
fix(modules/services/nix): Add my overlayed `nixpkgs` to the flake
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/services/nix/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/system/services/nix/default.nix b/modules/system/services/nix/default.nix
index 5766fcdd..e4fe11d1 100644
--- a/modules/system/services/nix/default.nix
+++ b/modules/system/services/nix/default.nix
@@ -4,6 +4,7 @@
   nixpkgs_as_input,
   templates,
   self,
+  system,
   ...
 }: {
   nix = {
@@ -14,7 +15,12 @@
 
     registry = {
       nixpkgs.flake = nixpkgs_as_input;
-      n.flake = self; # Otherwise the nixpkgs config is not available
+      n.flake =
+        nixpkgs_as_input
+        // {
+          # Otherwise nixpkgs's config and overlays are not available:
+          outputs.legacyPackages."${system}" = pkgs;
+        };
 
       t.flake = templates;