Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn module into file path. #242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Feb 5, 2024

  1. Turn module into file path.

    If a module is an attrset deduplicating imports does not work properly
    and would lead to the module system complaining about redefining
    options. Here is an example:
    
    error: The option `age.identityPaths' in `/nix/store/wn50ysifrfp5qj5pp3jqpyvwh8ksz36y-source/machines/foo' is already declared in `/nix/store/wn50ysifrfp5qj5pp3jqpyvwh8ksz36y-source/common/ddclient/default.nix'.
    
    when common/ddclient/default.nix and machines/foo/default.nix is:
    
    { ..., agenix, ... }: {
      imports = [
        agenix.nixosModules.age
      ];
    }
    
    Turning the module into a filepath fixes the issue.
    catwith1hat committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    bc5eaf4 View commit details
    Browse the repository at this point in the history