Generate flake.nix from module options. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic nix inputs
at main 62 lines 1.1 kB view raw
1let 2 flakeModules = { 3 inherit 4 default 5 allfollow 6 nix-auto-follow 7 dendritic 8 import-tree 9 unflake 10 ; 11 }; 12 13 unflake.imports = [ 14 ./options 15 ./unflake.nix 16 ]; 17 18 default.imports = [ 19 ./options 20 ./write-flake.nix 21 ]; 22 23 allfollow.imports = [ ./prune-lock/allfollow.nix ]; 24 25 nix-auto-follow.imports = [ ./prune-lock/nix-auto-follow.nix ]; 26 27 import-tree.imports = [ ./import-tree.nix ]; 28 29 dendritic.imports = [ ./dendritic ]; 30 31 lib.flakeModules.flake-parts-builder = 32 path: 33 { flake-parts-lib, ... }: 34 { 35 imports = [ 36 (flake-parts-lib.importApply ./flake-parts-builder path) 37 ]; 38 }; 39 40 templates.default = { 41 description = "default template"; 42 path = ./../templates/default; 43 }; 44 45 templates.unflake = { 46 description = "unflake template"; 47 path = ./../templates/unflake; 48 }; 49 50 templates.dendritic = { 51 description = "dendritic template"; 52 path = ./../templates/dendritic; 53 }; 54 55 templates.parts = { 56 description = "flake-parts-builder template"; 57 path = ./../templates/parts; 58 }; 59in 60{ 61 inherit flakeModules templates lib; 62}