Generate flake.nix from module options. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic nix inputs
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

use defaults

+32 -26
-1
dev/flake.nix
··· 1 1 # DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file. 2 2 # Use `nix run .#write-files` to regenerate it. 3 - 4 3 { 5 4 inputs = { 6 5 files = {
+10 -6
modules/default.nix
··· 1 - { 2 - flakeModules.default = { 1 + let 2 + default = { 3 3 imports = [ 4 4 ./options.nix 5 5 ./files.nix 6 6 ./write-files.nix 7 7 ]; 8 8 }; 9 - flakeModules.dendritic = { 9 + 10 + dendritic = { 10 11 imports = [ 11 - ./options.nix 12 - ./files.nix 13 - ./write-files.nix 12 + default 14 13 ./dendritic.nix 15 14 ]; 15 + }; 16 + in 17 + { 18 + flakeModules = { 19 + inherit default dendritic; 16 20 }; 17 21 templates.default = { 18 22 description = "default template";
+3 -3
modules/dendritic/dendritic.nix
··· 1 - { inputs, ... }: 1 + { inputs, lib, ... }: 2 2 { 3 3 4 4 imports = [ ··· 8 8 flake.modules = { }; 9 9 10 10 flake-file.inputs = { 11 - import-tree.url = "github:vic/import-tree"; 12 - flake-parts.url = "github:hercules-ci/flake-parts"; 11 + import-tree.url = lib.mkDefault "github:vic/import-tree"; 12 + flake-parts.url = lib.mkDefault "github:hercules-ci/flake-parts"; 13 13 }; 14 14 15 15 flake-file.outputs = ''
+3 -3
modules/dendritic/files.nix
··· 1 - { inputs, ... }: 1 + { inputs, lib, ... }: 2 2 { 3 3 4 4 imports = [ ··· 7 7 ]; 8 8 9 9 flake-file.inputs = { 10 - flake-file.url = "github:vic/flake-file"; 11 - files.url = "github:mightyiam/files"; 10 + flake-file.url = lib.mkDefault "github:vic/flake-file"; 11 + files.url = lib.mkDefault "github:mightyiam/files"; 12 12 }; 13 13 }
+4 -6
modules/dendritic/formatter.nix
··· 1 - { inputs, ... }: 1 + { inputs, lib, ... }: 2 2 { 3 3 4 4 imports = [ ··· 6 6 ]; 7 7 8 8 flake-file.inputs = { 9 - treefmt-nix.url = "github:numtide/treefmt-nix"; 10 - treefmt-nix.follows = { 11 - nixpkgs = "nixpkgs"; 12 - }; 9 + treefmt-nix.url = lib.mkDefault "github:numtide/treefmt-nix"; 10 + treefmt-nix.follows.nixpkgs = lib.mkDefault "nixpkgs"; 13 11 }; 14 12 15 13 perSystem = ··· 23 21 nixf-diagnose.enable = true; 24 22 prettier.enable = true; 25 23 }; 26 - settings.on-unmatched = "fatal"; 24 + settings.on-unmatched = lib.mkDefault "fatal"; 27 25 settings.global.excludes = [ 28 26 "LICENSE" 29 27 ];
+2 -1
modules/dendritic/nixpkgs.nix
··· 1 + { lib, ... }: 1 2 { 2 3 3 4 flake-file.inputs = { 4 - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 5 + nixpkgs.url = lib.mkDefault "github:nixos/nixpkgs/nixpkgs-unstable"; 5 6 }; 6 7 7 8 }
+3 -3
modules/dendritic/systems.nix
··· 1 - { inputs, ... }: 1 + { inputs, lib, ... }: 2 2 { 3 3 4 4 flake-file.inputs = { 5 - systems.url = "github:nix-systems/default"; 5 + systems.url = lib.mkDefault "github:nix-systems/default"; 6 6 }; 7 7 8 - systems = import inputs.systems; 8 + systems = lib.mkDefault (import inputs.systems); 9 9 10 10 }
+7 -1
modules/files.nix
··· 59 59 unformatted = lib.pipe flake [ 60 60 nixCode 61 61 (lib.replaceString ''outputs = "outputs";'' ''outputs = ${flake-file.outputs};'') 62 - (code: if nonEmpty flake-file.do-not-edit then flake-file.do-not-edit + "\n" + code else code) 62 + ( 63 + code: 64 + if nonEmpty flake-file.do-not-edit then 65 + flake-file.do-not-edit + (if lib.hasSuffix "\n" flake-file.do-not-edit then "" else "\n") + code 66 + else 67 + code 68 + ) 63 69 ]; 64 70 65 71 formatted = pkgs.stdenvNoCC.mkDerivation {
-1
templates/default/flake.nix
··· 1 1 # DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file. 2 2 # Use `nix run .#write-files` to regenerate it. 3 - 4 3 { 5 4 inputs = { 6 5 files = {
-1
templates/dendritic/flake.nix
··· 1 1 # DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file. 2 2 # Use `nix run .#write-files` to regenerate it. 3 - 4 3 { 5 4 inputs = { 6 5 files = {