1 { inputs, pkgs, lib, config, ... }:
4 experimental-features = nix-command flakes
6 #nix.registry.self.flake = inputs.self;
7 # Pin the rev to the revision of the public Nixpkgs that the system was built from.
8 # This is the version which will be locked by flakes using flake:nixpkgs
9 nix.registry.nixpkgs = {
10 from = { id = "nixpkgs"; type = "indirect"; };
14 rev = inputs.nixpkgs.rev;
19 # WARNING: this is a hack to avoid copying Nixpkgs
20 # a second time into the Nix store.
21 # It makes only sense when Nixpkgs is already in the Nix store,
23 environment.etc."nixpkgs".source = pkgs.path;
24 environment.etc."nixpkgs-overlays".source =
25 pkgs.writeTextDir "overlays.nix" ''
26 import ${inputs.self + "/nixpkgs/overlays.nix"} ++
27 import ${inputs.julm-nix + "/nixpkgs/overlays.nix"}
30 "nixpkgs=/etc/nixpkgs:nixpkgs-overlays=/etc/nixpkgs-overlays/overlays.nix"