Skip to content
Discussion options

You must be logged in to vote

Finally solved this myself...

The main issue was that not only the flake-parts module nix-topology.flakeModule needs to be imported globally but also nix-topology.nixosModules.default on every participating host.

For future reference, my current setup involves the following:

  1. Include nix-topology flake-parts module
# modules/aspects/topology/topology.nix
{
  self,
  inputs,
  ...
}: {
  flake-file.inputs.nix-topology.url = "github:oddlama/nix-topology";

  imports = [inputs.nix-topology.flakeModule];

  fleet.topology = {
    OS,
    host,
    ...
  }: {
    nixos.imports = [inputs.nix-topology.nixosModules.default];
  };

  perSystem = {
    system,
    pkgs,
    ...
  }: {
    # Option…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xdbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
1 participant