summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-01-05 17:31:16 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-01-22 16:43:05 +0100
commit0b222173dba00680074ef9e98a5bad224f62967e (patch)
treefea90aec46bc766ec3cb2757c3a1b8a55debd963 /flake.nix
parentfecf32505984f4b8feae4c54663f322dcc8bd080 (diff)
downloadnixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.tar
nixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.tar.gz
nixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.tar.bz2
nixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.tar.lz
nixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.tar.xz
nixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.tar.zst
nixpkgs-0b222173dba00680074ef9e98a5bad224f62967e.zip
flake.nix: Set nixpkgs.config.path
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index c2306768d6f..39553cde0ab 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,6 +48,10 @@
                   system.nixos.versionSuffix =
                     ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
                   system.nixos.revision = final.mkIf (self ? rev) self.rev;
+
+                  # NOTE: This assumes that `nixpkgs.config` is _not_ used when
+                  #       nixpkgs.pkgs is set OR _module.args.pkgs is set.
+                  nixpkgs.config.path = self.outPath;
                 }
               ];
           });