Modular, context-aware and aspect-oriented dendritic Nix configurations. --- Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6m den.oeiuwq.com

It is not possible to access context objects from host-generated aspects? #4

Open oeiuwq.com
Open opened by oeiuwq.com
# if you have
den.hosts.x86_64-linux.my-laptop = { ... }

# and then try to use the host conf
den.aspects.my-laptop = { host, ... }: {
   nixos.networking.hostName = host.name;
}

It fails saying host was not provided as an argument.

workaround:

den.aspects.my-laptop.includes = let 
  works = { host, ... }: { nixos.networking.hostName = host.name; };
in [ works ];
Sign up or Sign in to add to the discussion.