all repos — nixfiles @ a536bd464d43363ab11d3034896ba8b295184f58

System and user configuration, managed by nix and home-manager

apply overlays to nixpkgs at flake level

Alin
commit

a536bd464d43363ab11d3034896ba8b295184f58

parent

e4f0b634766dfa52a3e3985c8e0ad19887e0cfad

1 file changed, 17 insertions(+), 14 deletions(-)

changed files
M flake.nix → flake.nix
@@ -69,6 +69,21 @@
# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'. forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + overlayedNixpkgs = + system: + import nixpkgs { + inherit system; + config = { + allowUnfree = true; + }; + overlays = [ + (self: super: { + unstable = import nixpkgs-unstable { inherit system; }; + personal = import ./packages/overlay.nix self super; + }) + ]; + }; + nixosSystem = { system,
@@ -76,22 +91,10 @@ modules,
... }@args: nixpkgs.lib.nixosSystem ( - let - pkgsUnstable = import nixpkgs-unstable { inherit system; }; - in { inherit system; - modules = [ - { - nixpkgs.overlays = overlays ++ [ - (self: super: { - unstable = pkgsUnstable; - personal = import ./packages/overlay.nix self super; - }) - ]; - } - ] - ++ modules; + pkgs = overlayedNixpkgs system; + inherit modules; specialArgs = { inherit pkgsUnstable; inherit inputs;