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

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

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 login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:hwcqoy35x55nzde2sm6dbvq7/sh.tangled.repo.issue/3m7xgmkludv22