Hacker symbol

September 25, 2023 ~ 1 min read

Propagating flake inputs


You can propopagate the flake itself into other modules of nixos by using specialArgs:

inputs.nixos-stable.lib.nixosSystem {
    inherit system;
    specialArgs = {
        inherit self inputs;
    };
    ...
    modules = [
        ./modules
    ];
};
...


Now any module in ./modules can have as input attribute `self` and `inputs`

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.