a flake module to ease creating and managing multiple hosts in your nix flake.

Merge pull request #9 from roberth/docs

docs: add defaultText where needed

authored by isabelroses.com and committed by

GitHub 7acbedf9 86f421eb

+12 -4
+12 -4
flake-module.nix
··· 85 85 modules = [ ]; 86 86 specialArgs = { }; 87 87 }; 88 + defaultText = '' 89 + class: { 90 + modules = [ ]; 91 + specialArgs = { }; 92 + }; 93 + ''; 88 94 89 95 type = types.functionTo ( 90 96 types.submodule { ··· 131 137 nixpkgs = mkOption { 132 138 type = types.anything; 133 139 default = inputs.nixpkgs or (throw "cannot find nixpkgs input"); 134 - example = literalExpression "inputs.nixpkgs"; 135 - description = "The nixpkgs to be used for the host"; 140 + defaultText = literalExpression "inputs.nixpkgs"; 141 + example = literalExpression "inputs.nixpkgs-unstable"; 142 + description = "The nixpkgs flake to be used for the host"; 136 143 }; 137 144 138 145 nix-darwin = mkOption { 139 146 type = types.anything; 140 147 default = inputs.darwin or inputs.nix-darwin or null; 141 - example = literalExpression "inputs.nix-darwin"; 142 - description = "The nix-darwin to be used for the host"; 148 + defaultText = literalExpression "inputs.darwin or inputs.nix-darwin"; 149 + example = literalExpression "inputs.my-nix-darwin"; 150 + description = "The nix-darwin flake to be used for the host"; 143 151 }; 144 152 145 153 # keep this up to date with