snowfallorg / snowfallorg/lib

[feature request] mark own modules as not imported by default

Open
#115 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nix
Stars
628
Forks
64
PR merge metrics
No merged PRs in 30d

Description

I would like to be able to mark certain modules defined in my flake as not imported to all systems by default.

Currently, I have a module that configures a buildbot-nix worker. However, this means that I also have to add buildbot-nix.nixosModules.buildbot-worker to systems.modules.nixos so that all systems pick it up. This increases evaluation time and is also a lot "dirtier" in terms of what I'm importing, since most machines will not have the buildbot worker on them. Therefore, if I could mark a module as non-importable somehow, I could make it so that only machines that will run a worker will import this, and by extension, also the buildbot-worker module from buildbot-nix. Is this possible at all with snowfall?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with modules/nixos/services/buildbot/default.nix and the systems.modules.nixos configuration described in the issue. Investigate whether snowfall provides a way to exclude a module from default imports; done means a working opt-out that limits the buildbot-worker import to selected systems and avoids importing it everywhere.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.