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