Dendritic Nix - Community-driven Nix distribution based on the Dendritic pattern.
at main 26 lines 560 B view raw
1{ inputs, ... }: 2{ 3 imports = [ 4 inputs.files.flakeModules.default 5 ]; 6 7 perSystem = 8 { config, ... }: 9 { 10 files.gitToplevel = inputs.dendrix; 11 packages.genfiles = config.files.writer.drv; 12 devshells.default.commands = [ 13 { 14 name = "genfiles"; 15 help = "generate files from sources"; 16 command = "nix run path:dev#genfiles \"$@\""; 17 } 18 19 { 20 name = "files"; 21 help = "fmt / genfiles / fmt"; 22 command = "fmt && genfiles \"$@\" && fmt"; 23 } 24 ]; 25 }; 26}