Default value for self in modules

I’m thinking about replacing my relative import paths with self.
From import ../../modules/foo to import "${self}/modules/foo

But then I would have provide and inherit self for every module which does something with imports.
Is it possible to provide a default value or similar like with pkgs ? import <nixpkgs>?

To answer my own question.
When you add an argument to specialArgs it apparently gets passed into the modules.