flake.nix: Set nixpkgs.config.path
This commit is contained in:
parent
fecf325059
commit
0b222173db
@ -48,6 +48,10 @@
|
|||||||
system.nixos.versionSuffix =
|
system.nixos.versionSuffix =
|
||||||
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
|
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
|
||||||
system.nixos.revision = final.mkIf (self ? rev) self.rev;
|
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;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
@ -59,6 +59,8 @@ let
|
|||||||
inherit (cfg) config overlays localSystem crossSystem;
|
inherit (cfg) config overlays localSystem crossSystem;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# NOTE: flake.nix assumes that nixpkgs.config is only used with ../../..
|
||||||
|
# as nixpkgs.config.path should be equivalent to ../../..
|
||||||
finalPkgs = if opt.pkgs.isDefined then cfg.pkgs.appendOverlays cfg.overlays else defaultPkgs;
|
finalPkgs = if opt.pkgs.isDefined then cfg.pkgs.appendOverlays cfg.overlays else defaultPkgs;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user