Skip to content

Question about this line. #121

@SLGShark6

Description

@SLGShark6

modules = module.imports ++ [

I've been learning nix and have been trying to do a setup between my personal machines and servers. I've been attempting to do a dendritic pattern using your (and other's) configs as reference.

One thing about your config that confuses me is, this line doesn't import the actual contents of the host module like this:

...
modules = [ module ] ++ module.imports or [] ++ [
  inputs.home-manager.nixosModules.home-manager
  {
    home-manager.extraSpecialArgs = specialArgs;
  }
];
...

Is it not supposed to import the module here? Does this happen elsewhere in the codebase? How does nixosSystem read the host config then?

Thank you in advance for clarifying. Documentation for all these things is a bit scarce... and not so verbose as one would hope. Really appreciate any help in clearing things up for me. I feel like I'm a bit lost (even coming from 8+ years of development and CLI based system administration).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions