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

fix wrong location issue of option definied in den.default (#221)

Set den.default as separate option with aspect type (similar to before
context feature).

authored by

phhai-hcmut and committed by
GitHub
cc056939 904f9749

+6 -6
+6 -6
modules/aspects/defaults.nix
··· 1 + { den, lib, ... }: 1 2 { 2 - den = 3 - { lib, ... }: 4 - { 5 - imports = [ (lib.mkAliasOptionModule [ "default" ] [ "ctx" "default" ]) ]; 6 - ctx.default = { }; 7 - }; 3 + options.den.default = lib.mkOption { 4 + description = "Default aspect"; 5 + type = den.lib.aspects.types.aspectSubmodule; 6 + }; 7 + config.den.ctx.default = den.default; 8 8 }