Hi! I’m learning nixos by setting up my own config. Since I’m a doom emacs fan, I want to recreate it in my config. I stumbled upon hlissner config and I want to recreate his flake only getting what I need and iteratively building the config.
While doing this I get an error about lib.my not existing even though I recreated the authors lib extension.
How come?
The offending code:
inherit (lib.my) mapModules mapModulesRec mapHosts;
system = "x86_64-linux";
mkPkgs = pkgs: extraOverlays: import pkgs {
inherit system;
config.allowUnfree = true; # forgive me Stallman senpai
overlays = extraOverlays ++ (lib.attrValues self.overlays);
};
pkgs = mkPkgs nixpkgs [ self.overlay ];
pkgs' = mkPkgs nixpkgs-unstable [];
lib = nixpkgs.lib.extend
(self: super: { my = import ./lib { inherit pkgs inputs; lib = self; }; });