lib: add moduleLocFromOptionString#857
Merged
Merged
Conversation
Member
Author
$ rg 'module = "\$\{sources.inputs.nixpkgs\}/nixos/modules'
projects/Agorakit/default.nix
15: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/agorakit.nix";
maintainers/templates/project/default.nix
81: # module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/cryptpad.nix";
projects/Pixelfed/default.nix
26: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/pixelfed.nix";
projects/Galene/default.nix
17: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/galene.nix";
projects/GNUTaler/default.nix
46: module = "${sources.inputs.nixpkgs}/nixos/modules/services/finance/taler/module.nix";
projects/SCION/default.nix
50: module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/scion/scion.nix";
projects/ntpd-rs/default.nix
28: module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/ntp/ntpd-rs.nix";
projects/Forgejo/default.nix
35: module = "${sources.inputs.nixpkgs}/nixos/modules/services/misc/forgejo.nix";
projects/OpenWebCalendar/default.nix
11: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/open-web-calendar.nix";
projects/Mastodon/default.nix
18: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/mastodon.nix";
projects/Rosenpass/default.nix
46: module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/rosenpass.nix";
projects/Canaille/default.nix
18: module = "${sources.inputs.nixpkgs}/nixos/modules/services/security/canaille.nix";
projects/Wireguard/default.nix
34: module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/wireguard.nix";
projects/Omnom/default.nix
18: module = "${sources.inputs.nixpkgs}/nixos/modules/services/misc/omnom.nix";
projects/Misskey/default.nix
18: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/misskey.nix";
projects/Gancio/default.nix
15: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/gancio.nix";
projects/gnunet/default.nix
24: module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/gnunet.nix";
projects/Namecoin/default.nix
8: modules.services.namecoind.module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/namecoind.nix";
9: modules.services.ncdns.module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/ncdns.nix";
projects/Flarum/default.nix
40: module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/flarum.nix"; |
fricklerhandwerk
approved these changes
Apr 28, 2025
Contributor
fricklerhandwerk
left a comment
There was a problem hiding this comment.
Cool, thanks a lot! LGTM
Member
Author
|
In theory there's a more ergonomic approach (but error message will be very bad if anything wrong happens): Instead of exposing a function for users to call, this can simply be exported as an attrset that contain option name to file mapping. IMO this is already ergonomic enough for me 😂 |
20 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #329