diff options
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 3 | ||||
-rw-r--r-- | nixos/modules/services/misc/ihaskell.nix | 4 | ||||
-rw-r--r-- | nixos/modules/services/misc/nixos-manual.nix | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index cc50bfbea531..e6ebcd6dc145 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -155,18 +155,21 @@ in { packages.gitlab = mkOption { type = types.package; default = pkgs.gitlab; + defaultText = "pkgs.gitlab"; description = "Reference to the gitlab package"; }; packages.gitlab-shell = mkOption { type = types.package; default = pkgs.gitlab-shell; + defaultText = "pkgs.gitlab-shell"; description = "Reference to the gitlab-shell package"; }; packages.gitlab-workhorse = mkOption { type = types.package; default = pkgs.gitlab-workhorse; + defaultText = "pkgs.gitlab-workhorse"; description = "Reference to the gitlab-workhorse package"; }; diff --git a/nixos/modules/services/misc/ihaskell.nix b/nixos/modules/services/misc/ihaskell.nix index d0e9b839e754..c177d68c8fe0 100644 --- a/nixos/modules/services/misc/ihaskell.nix +++ b/nixos/modules/services/misc/ihaskell.nix @@ -15,12 +15,14 @@ in options = { services.ihaskell = { enable = mkOption { + type = lib.types.bool; default = false; example = true; description = "Autostart an IHaskell notebook service."; }; haskellPackages = mkOption { + type = lib.types.packageSet; default = pkgs.haskellPackages; defaultText = "pkgs.haskellPackages"; example = literalExample "pkgs.haskell.packages.ghc784"; @@ -33,7 +35,9 @@ in }; extraPackages = mkOption { + type = types.functionTo (types.listOf types.package); default = self: []; + defaultText = "self: []"; example = literalExample '' haskellPackages: [ haskellPackages.wreq diff --git a/nixos/modules/services/misc/nixos-manual.nix b/nixos/modules/services/misc/nixos-manual.nix index 37ea339300d4..7ba1c319add4 100644 --- a/nixos/modules/services/misc/nixos-manual.nix +++ b/nixos/modules/services/misc/nixos-manual.nix @@ -17,6 +17,8 @@ let nixpkgs.system = config.nixpkgs.system; }; + internalModule = { _module = config._module; }; + /* For the purpose of generating docs, evaluate options with each derivation in `pkgs` (recursively) replaced by a fake with path "\${pkgs.attribute.path}". It isn't perfect, but it seems to cover a vast majority of use cases. @@ -29,7 +31,7 @@ let options = let scrubbedEval = evalModules { - modules = [ versionModule ] ++ baseModules; + modules = [ versionModule ] ++ baseModules ++ [ internalModule ]; args = (config._module.args) // { modules = [ ]; }; specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; }; }; @@ -43,6 +45,7 @@ let ) pkgSet; in scrubbedEval.options; + internalModule = config._module; }; entry = "${manual.manual}/share/doc/nixos/index.html"; |