mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
treewide: remove lib.mdDoc
This commit is contained in:
parent
99b3f9a1f5
commit
def1e23be8
102 changed files with 771 additions and 775 deletions
|
@ -88,7 +88,7 @@ in
|
|||
documentation.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to install documentation of packages from
|
||||
{option}`environment.systemPackages` into the generated system path.
|
||||
|
||||
|
@ -100,7 +100,7 @@ in
|
|||
documentation.man.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to install manual pages and the {command}`man` command.
|
||||
This also includes "man" outputs.
|
||||
'';
|
||||
|
@ -109,7 +109,7 @@ in
|
|||
documentation.info.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to install info pages and the {command}`info` command.
|
||||
This also includes "info" outputs.
|
||||
'';
|
||||
|
@ -118,7 +118,7 @@ in
|
|||
documentation.doc.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to install documentation distributed in packages' `/share/doc`.
|
||||
Usually plain text and/or HTML.
|
||||
This also includes "doc" outputs.
|
||||
|
|
|
@ -21,7 +21,7 @@ in
|
|||
type = types.listOf types.package;
|
||||
default = [];
|
||||
example = literalExpression "[ pkgs.curl pkgs.vim ]";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The set of packages that appear in
|
||||
/run/current-system/sw. These packages are
|
||||
automatically available to all users, and are
|
||||
|
@ -34,39 +34,39 @@ in
|
|||
|
||||
environment.systemPath = mkOption {
|
||||
type = types.listOf (types.either types.path types.str);
|
||||
description = lib.mdDoc "The set of paths that are added to PATH.";
|
||||
description = "The set of paths that are added to PATH.";
|
||||
apply = x: if isList x then makeDrvBinPath x else x;
|
||||
};
|
||||
|
||||
environment.profiles = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = lib.mdDoc "A list of profiles used to setup the global environment.";
|
||||
description = "A list of profiles used to setup the global environment.";
|
||||
};
|
||||
|
||||
environment.postBuild = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Commands to execute when building the global environment.";
|
||||
description = "Commands to execute when building the global environment.";
|
||||
};
|
||||
|
||||
environment.extraOutputsToInstall = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [ "doc" "info" "devdoc" ];
|
||||
description = lib.mdDoc "List of additional package outputs to be symlinked into {file}`/run/current-system/sw`.";
|
||||
description = "List of additional package outputs to be symlinked into {file}`/run/current-system/sw`.";
|
||||
};
|
||||
|
||||
environment.pathsToLink = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [ "/share/doc" ];
|
||||
description = lib.mdDoc "List of directories to be symlinked in {file}`/run/current-system/sw`.";
|
||||
description = "List of directories to be symlinked in {file}`/run/current-system/sw`.";
|
||||
};
|
||||
|
||||
environment.darwinConfig = mkOption {
|
||||
type = types.either types.path types.str;
|
||||
default = "$HOME/.nixpkgs/darwin-configuration.nix";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The path of the darwin configuration.nix used to configure the system,
|
||||
this updates the default darwin-config entry in NIX_PATH. Since this
|
||||
changes an environment variable it will only apply to new shells.
|
||||
|
@ -79,14 +79,14 @@ in
|
|||
environment.loginShell = mkOption {
|
||||
type = types.str;
|
||||
default = "$SHELL -l";
|
||||
description = lib.mdDoc "Configure default login shell.";
|
||||
description = "Configure default login shell.";
|
||||
};
|
||||
|
||||
environment.variables = mkOption {
|
||||
type = types.attrsOf (types.either types.str (types.listOf types.str));
|
||||
default = {};
|
||||
example = { EDITOR = "vim"; LANG = "nl_NL.UTF-8"; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A set of environment variables used in the global environment.
|
||||
These variables will be set on shell initialisation.
|
||||
The value of each variable can be either a string or a list of
|
||||
|
@ -100,7 +100,7 @@ in
|
|||
type = types.attrsOf types.str;
|
||||
default = {};
|
||||
example = { ll = "ls -l"; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
An attribute set that maps aliases (the top level attribute names in
|
||||
this option) to command strings or directly to build outputs. The
|
||||
alises are added to all users' shells.
|
||||
|
@ -110,7 +110,7 @@ in
|
|||
environment.extraInit = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during global environment initialisation
|
||||
after all variables and profileVariables have been set.
|
||||
This code is asumed to be shell-independent, which means you should
|
||||
|
@ -120,7 +120,7 @@ in
|
|||
|
||||
environment.shellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during shell initialisation.
|
||||
This code is asumed to be shell-independent, which means you should
|
||||
stick to pure sh without sh word split.
|
||||
|
@ -130,7 +130,7 @@ in
|
|||
|
||||
environment.loginShellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during login shell initialisation.
|
||||
This code is asumed to be shell-independent, which means you should
|
||||
stick to pure sh without sh word split.
|
||||
|
@ -140,7 +140,7 @@ in
|
|||
|
||||
environment.interactiveShellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during interactive shell initialisation.
|
||||
This code is asumed to be shell-independent, which means you should
|
||||
stick to pure sh without sh word split.
|
||||
|
|
|
@ -15,7 +15,7 @@ in
|
|||
fonts.fontDir.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable font management and install configured fonts to
|
||||
{file}`/Library/Fonts`.
|
||||
|
||||
|
@ -27,7 +27,7 @@ in
|
|||
type = types.listOf types.path;
|
||||
default = [ ];
|
||||
example = literalExpression "[ pkgs.dejavu_fonts ]";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of fonts to install.
|
||||
|
||||
Fonts present in later entries override those with the same filenames
|
||||
|
|
|
@ -65,7 +65,7 @@ let
|
|||
type = types.enum [ "none" "uninstall" "zap" ];
|
||||
default = "none";
|
||||
example = "uninstall";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option manages what happens to formulae installed by Homebrew, that aren't present in
|
||||
the Brewfile generated by this module, during {command}`nix-darwin` system
|
||||
activation.
|
||||
|
@ -92,7 +92,7 @@ let
|
|||
autoUpdate = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable Homebrew to auto-update itself and all formulae during
|
||||
{command}`nix-darwin` system activation. The default is `false`
|
||||
so that repeated invocations of {command}`darwin-rebuild switch` are idempotent.
|
||||
|
@ -111,7 +111,7 @@ let
|
|||
upgrade = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable Homebrew to upgrade outdated formulae and Mac App Store apps during
|
||||
{command}`nix-darwin` system activation. The default is `false`
|
||||
so that repeated invocations of {command}`darwin-rebuild switch` are idempotent.
|
||||
|
@ -125,7 +125,7 @@ let
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "--verbose" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Extra flags to pass to {command}`brew bundle [install]` during {command}`nix-darwin`
|
||||
system activation.
|
||||
'';
|
||||
|
@ -151,7 +151,7 @@ let
|
|||
brewfile = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable Homebrew to automatically use the Brewfile that this module generates in
|
||||
the Nix store, when you manually invoke {command}`brew bundle`.
|
||||
|
||||
|
@ -172,7 +172,7 @@ let
|
|||
autoUpdate = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable Homebrew to auto-update itself and all formulae when you manually invoke
|
||||
commands like {command}`brew install`, {command}`brew upgrade`,
|
||||
{command}`brew tap`, and {command}`brew bundle [install]`.
|
||||
|
@ -195,7 +195,7 @@ let
|
|||
type = types.bool;
|
||||
default = !config.brewfile;
|
||||
defaultText = literalExpression "!config.homebrew.global.brewfile";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable Homebrew to generate lockfiles when you manually invoke
|
||||
{command}`brew bundle [install]`.
|
||||
|
||||
|
@ -235,14 +235,14 @@ let
|
|||
name = mkOption {
|
||||
type = types.str;
|
||||
example = "homebrew/cask-fonts";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
When {option}`clone_target` is unspecified, this is the name of a formula
|
||||
repository to tap from GitHub using HTTPS. For example, `"user/repo"`
|
||||
will tap https://github.com/user/homebrew-repo.
|
||||
'';
|
||||
};
|
||||
clone_target = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Use this option to tap a formula repository from anywhere, using any transport protocol
|
||||
that {command}`git` handles. When {option}`clone_target` is specified, taps
|
||||
can be cloned from places other than GitHub and using protocols other than HTTPS, e.g.,
|
||||
|
@ -250,7 +250,7 @@ let
|
|||
'';
|
||||
};
|
||||
force_auto_update = mkNullOrBoolOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to auto-update the tap even if it is not hosted on GitHub. By default, only taps
|
||||
hosted on GitHub are auto-updated (for performance reasons).
|
||||
'';
|
||||
|
@ -277,77 +277,77 @@ let
|
|||
caskArgsOptions = { config, ... }: {
|
||||
options = {
|
||||
appdir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Applications.
|
||||
|
||||
Homebrew's default is {file}`/Applications`.
|
||||
'';
|
||||
};
|
||||
colorpickerdir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Color Pickers.
|
||||
|
||||
Homebrew's default is {file}`~/Library/ColorPickers`.
|
||||
'';
|
||||
};
|
||||
prefpanedir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Preference Panes.
|
||||
|
||||
Homebrew's default is {file}`~/Library/PreferencePanes`.
|
||||
'';
|
||||
};
|
||||
qlplugindir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for QuickLook Plugins.
|
||||
|
||||
Homebrew's default is {file}`~/Library/QuickLook`.
|
||||
'';
|
||||
};
|
||||
mdimporterdir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Spotlight Plugins.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Spotlight`.
|
||||
'';
|
||||
};
|
||||
dictionarydir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Dictionaries.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Dictionaries`.
|
||||
'';
|
||||
};
|
||||
fontdir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Fonts.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Fonts`.
|
||||
'';
|
||||
};
|
||||
servicedir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Services.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Services`.
|
||||
'';
|
||||
};
|
||||
input_methoddir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Input Methods.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Input Methods`.
|
||||
'';
|
||||
};
|
||||
internet_plugindir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Internet Plugins.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Internet Plug-Ins`.
|
||||
'';
|
||||
};
|
||||
audio_unit_plugindir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Audio Unit Plugins.
|
||||
|
||||
Homebrew's default is
|
||||
|
@ -355,28 +355,28 @@ let
|
|||
'';
|
||||
};
|
||||
vst_plugindir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for VST Plugins.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Audio/Plug-Ins/VST`.
|
||||
'';
|
||||
};
|
||||
vst3_plugindir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for VST3 Plugins.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Audio/Plug-Ins/VST3`.
|
||||
'';
|
||||
};
|
||||
screen_saverdir = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Target location for Screen Savers.
|
||||
|
||||
Homebrew's default is {file}`~/Library/Screen Savers`.
|
||||
'';
|
||||
};
|
||||
language = mkNullOrStrOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Comma-separated list of language codes to prefer for cask installation. The first matching
|
||||
language is used, otherwise it reverts to the cask’s default language. The default value
|
||||
is the language of your system.
|
||||
|
@ -384,17 +384,17 @@ let
|
|||
example = "zh-TW";
|
||||
};
|
||||
require_sha = mkNullOrBoolOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to require cask(s) to have a checksum.
|
||||
|
||||
Homebrew's default is `false`.
|
||||
'';
|
||||
};
|
||||
no_quarantine = mkNullOrBoolOption {
|
||||
description = lib.mdDoc "Whether to disable quarantining of downloads.";
|
||||
description = "Whether to disable quarantining of downloads.";
|
||||
};
|
||||
no_binaries = mkNullOrBoolOption {
|
||||
description = lib.mdDoc "Whether to disable linking of helper executables.";
|
||||
description = "Whether to disable linking of helper executables.";
|
||||
};
|
||||
|
||||
brewfileLine = mkInternalOption { type = types.nullOr types.str; };
|
||||
|
@ -415,12 +415,12 @@ let
|
|||
options = {
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc "The name of the formula to install.";
|
||||
description = "The name of the formula to install.";
|
||||
};
|
||||
args = mkOption {
|
||||
type = with types; nullOr (listOf str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Arguments flags to pass to {command}`brew install`. Values should not include the
|
||||
leading `"--"`.
|
||||
'';
|
||||
|
@ -428,7 +428,7 @@ let
|
|||
conflicts_with = mkOption {
|
||||
type = with types; nullOr (listOf str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of formulae that should be unlinked and their services stopped (if they are
|
||||
installed).
|
||||
'';
|
||||
|
@ -436,7 +436,7 @@ let
|
|||
restart_service = mkOption {
|
||||
type = with types; nullOr (either bool (enum [ "changed" ]));
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to run {command}`brew services restart` for the formula and register it to
|
||||
launch at login (or boot). If set to `"changed"`, the service will only
|
||||
be restarted on version changes.
|
||||
|
@ -445,7 +445,7 @@ let
|
|||
'';
|
||||
};
|
||||
start_service = mkNullOrBoolOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to run {command}`brew services start` for the formula and register it to
|
||||
launch at login (or boot).
|
||||
|
||||
|
@ -453,7 +453,7 @@ let
|
|||
'';
|
||||
};
|
||||
link = mkNullOrBoolOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to link the formula to the Homebrew prefix. When this option is
|
||||
`null`, Homebrew will use it's default behavior which is to link the
|
||||
formula if it's currently unlinked and not keg-only, and to unlink the formula if it's
|
||||
|
@ -488,19 +488,19 @@ let
|
|||
options = {
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc "The name of the cask to install.";
|
||||
description = "The name of the cask to install.";
|
||||
};
|
||||
args = mkOption {
|
||||
type = types.nullOr (types.submodule caskArgsOptions);
|
||||
default = null;
|
||||
visible = "shallow"; # so that options from `homebrew.caskArgs` aren't repeated.
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Arguments passed to {command}`brew install --cask` when installing this cask. See
|
||||
[](#opt-homebrew.caskArgs) for the available options.
|
||||
'';
|
||||
};
|
||||
greedy = mkNullOrBoolOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to always upgrade this cask regardless of whether it's unversioned or it updates
|
||||
itself.
|
||||
'';
|
||||
|
@ -531,7 +531,7 @@ in
|
|||
];
|
||||
|
||||
options.homebrew = {
|
||||
enable = mkEnableOption (lib.mdDoc ''
|
||||
enable = mkEnableOption ''
|
||||
{command}`nix-darwin` to manage installing/updating/upgrading Homebrew taps, formulae,
|
||||
and casks, as well as Mac App Store apps and Docker containers, using Homebrew Bundle.
|
||||
|
||||
|
@ -554,7 +554,7 @@ in
|
|||
[](#opt-homebrew.onActivation).
|
||||
|
||||
This module also provides a few options for modifying how Homebrew commands behave when
|
||||
you manually invoke them, under [](#opt-homebrew.global)'');
|
||||
you manually invoke them, under [](#opt-homebrew.global)'';
|
||||
|
||||
brewPrefix = mkOption {
|
||||
type = types.str;
|
||||
|
@ -563,7 +563,7 @@ in
|
|||
if pkgs.stdenv.hostPlatform.isAarch64 then "/opt/homebrew/bin"
|
||||
else "/usr/local/bin"
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The path prefix where the {command}`brew` executable is located. This will be set to
|
||||
the correct value based on your system's platform, and should only need to be changed if you
|
||||
manually installed Homebrew in a non-standard location.
|
||||
|
@ -573,7 +573,7 @@ in
|
|||
onActivation = mkOption {
|
||||
type = types.submodule onActivationOptions;
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Options for configuring the behavior of the {command}`brew bundle` command that
|
||||
{command}`nix-darwin` runs during system activation.
|
||||
'';
|
||||
|
@ -582,7 +582,7 @@ in
|
|||
global = mkOption {
|
||||
type = types.submodule globalOptions;
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Options for configuring the behavior of Homebrew commands when you manually invoke them.
|
||||
'';
|
||||
};
|
||||
|
@ -604,7 +604,7 @@ in
|
|||
}
|
||||
]
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of Homebrew formula repositories to tap.
|
||||
|
||||
Taps defined as strings, e.g., `"user/repo"`, are a shorthand for:
|
||||
|
@ -622,7 +622,7 @@ in
|
|||
require_sha = true;
|
||||
}
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Arguments passed to {command}`brew install --cask` for all casks listed in
|
||||
[](#opt-homebrew.casks).
|
||||
'';
|
||||
|
@ -653,7 +653,7 @@ in
|
|||
}
|
||||
]
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of Homebrew formulae to install.
|
||||
|
||||
Formulae defined as strings, e.g., `"imagemagick"`, are a shorthand for:
|
||||
|
@ -684,7 +684,7 @@ in
|
|||
}
|
||||
]
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of Homebrew casks to install.
|
||||
|
||||
Casks defined as strings, e.g., `"google-chrome"`, are a shorthand for:
|
||||
|
@ -702,7 +702,7 @@ in
|
|||
Xcode = 497799835;
|
||||
}
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Applications to install from Mac App Store using {command}`mas`.
|
||||
|
||||
When this option is used, `"mas"` is automatically added to
|
||||
|
@ -723,7 +723,7 @@ in
|
|||
type = with types; listOf str;
|
||||
default = [ ];
|
||||
example = [ "whalebrew/wget" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of Docker images to install using {command}`whalebrew`.
|
||||
|
||||
When this option is used, `"whalebrew"` is automatically added to
|
||||
|
@ -741,12 +741,12 @@ in
|
|||
# 'brew cask install' only if '/usr/libexec/java_home --failfast' fails
|
||||
cask "java" unless system "/usr/libexec/java_home --failfast"
|
||||
'';
|
||||
description = lib.mdDoc "Extra lines to be added verbatim to the bottom of the generated Brewfile.";
|
||||
description = "Extra lines to be added verbatim to the bottom of the generated Brewfile.";
|
||||
};
|
||||
|
||||
brewfile = mkInternalOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc "String reprensentation of the generated Brewfile useful for debugging.";
|
||||
description = "String reprensentation of the generated Brewfile useful for debugging.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -30,14 +30,14 @@ let
|
|||
type = types.attrsOf (types.either types.str (types.listOf types.str));
|
||||
default = {};
|
||||
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
|
||||
description = lib.mdDoc "Environment variables passed to the service's processes.";
|
||||
description = "Environment variables passed to the service's processes.";
|
||||
apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else v);
|
||||
};
|
||||
|
||||
path = mkOption {
|
||||
type = types.listOf (types.either types.path types.str);
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Packages added to the service's {env}`PATH`
|
||||
environment variable. Only the {file}`bin`
|
||||
and subdirectories of each package is added.
|
||||
|
@ -48,13 +48,13 @@ let
|
|||
command = mkOption {
|
||||
type = types.either types.str types.path;
|
||||
default = "";
|
||||
description = lib.mdDoc "Command executed as the service's main process.";
|
||||
description = "Command executed as the service's main process.";
|
||||
};
|
||||
|
||||
script = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Shell commands executed as the service's main process.";
|
||||
description = "Shell commands executed as the service's main process.";
|
||||
};
|
||||
|
||||
# preStart = mkOption {
|
||||
|
@ -73,7 +73,7 @@ let
|
|||
KeepAlive = true;
|
||||
};
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Each attribute in this set specifies an option for a key in the plist.
|
||||
<https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html>
|
||||
'';
|
||||
|
@ -99,7 +99,7 @@ in
|
|||
launchd.labelPrefix = mkOption {
|
||||
type = types.str;
|
||||
default = "org.nixos";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The default prefix of the service label. Individual services can
|
||||
override this by setting the Label attribute.
|
||||
'';
|
||||
|
@ -109,7 +109,7 @@ in
|
|||
type = types.attrsOf (types.either types.str (types.listOf types.str));
|
||||
default = {};
|
||||
example = { LANG = "nl_NL.UTF-8"; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A set of environment variables to be set on all future
|
||||
processes launched by launchd in the caller's context.
|
||||
The value of each variable can be either a string or a list of
|
||||
|
@ -123,7 +123,7 @@ in
|
|||
type = types.attrsOf (types.either types.str (types.listOf types.str));
|
||||
default = {};
|
||||
example = { LANG = "nl_NL.UTF-8"; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A set of environment variables to be set on all future
|
||||
processes launched by launchd in the caller's context.
|
||||
The value of each variable can be either a string or a list of
|
||||
|
@ -136,7 +136,7 @@ in
|
|||
launchd.agents = mkOption {
|
||||
default = {};
|
||||
type = types.attrsOf (types.submodule serviceOptions);
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Definition of per-user launchd agents.
|
||||
|
||||
When a user logs in, a per-user launchd is started.
|
||||
|
@ -152,7 +152,7 @@ in
|
|||
launchd.daemons = mkOption {
|
||||
default = {};
|
||||
type = types.attrsOf (types.submodule serviceOptions);
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Definition of launchd daemons.
|
||||
|
||||
After the system is booted and the kernel is running, launchd is run to finish the system initialization.
|
||||
|
@ -168,7 +168,7 @@ in
|
|||
launchd.user.agents = mkOption {
|
||||
default = {};
|
||||
type = types.attrsOf (types.submodule serviceOptions);
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Definition of per-user launchd agents.
|
||||
|
||||
When a user logs in, a per-user launchd is started.
|
||||
|
|
|
@ -6,13 +6,13 @@ with lib;
|
|||
options = {
|
||||
Label = mkOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc "This required key uniquely identifies the job to launchd.";
|
||||
description = "This required key uniquely identifies the job to launchd.";
|
||||
};
|
||||
|
||||
Disabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used as a hint to `launchctl(1)` that it should not submit this job to launchd when
|
||||
loading a job or jobs. The value of this key does NOT reflect the current state of the job on the running
|
||||
system. If you wish to know whether a job is loaded in launchd, reading this key from a configuration
|
||||
|
@ -35,7 +35,7 @@ with lib;
|
|||
UserName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies the user to run the job as. This key is only applicable when launchd is
|
||||
running as root.
|
||||
'';
|
||||
|
@ -44,7 +44,7 @@ with lib;
|
|||
GroupName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies the group to run the job as. This key is only applicable when launchd is
|
||||
running as root. If UserName is set and GroupName is not, the the group will be set to the default
|
||||
group of the user.
|
||||
|
@ -54,7 +54,7 @@ with lib;
|
|||
inetdCompatibility = mkOption {
|
||||
default = null;
|
||||
example = { Wait = true; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The presence of this key specifies that the daemon expects to be run as if it were launched from inetd.
|
||||
'';
|
||||
type = types.nullOr (types.submodule {
|
||||
|
@ -62,7 +62,7 @@ with lib;
|
|||
Wait = mkOption {
|
||||
type = types.nullOr (types.either types.bool types.str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This flag corresponds to the "wait" or "nowait" option of inetd. If true, then the listening
|
||||
socket is passed via the standard in/out/error file descriptors. If false, then `accept(2)` is
|
||||
called on behalf of the job, and the result is passed via the standard in/out/error descriptors.
|
||||
|
@ -75,7 +75,7 @@ with lib;
|
|||
LimitLoadToHosts = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This configuration file only applies to the hosts listed with this key. Note: One should set kern.hostname
|
||||
in `sysctl.conf(5)` for this feature to work reliably.
|
||||
'';
|
||||
|
@ -84,7 +84,7 @@ with lib;
|
|||
LimitLoadFromHosts = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This configuration file only applies to hosts NOT listed with this key. Note: One should set kern.hostname
|
||||
in `sysctl.conf(5)` for this feature to work reliably.
|
||||
'';
|
||||
|
@ -93,7 +93,7 @@ with lib;
|
|||
LimitLoadToSessionType = mkOption {
|
||||
type = types.nullOr (types.oneOf [types.str (types.listOf types.str)]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This configuration file only applies to sessions of the type specified. This key is used in concert
|
||||
with the -S flag to {command}`launchctl`.
|
||||
'';
|
||||
|
@ -102,7 +102,7 @@ with lib;
|
|||
Program = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This key maps to the first argument of `execvp(3)`. If this key is missing, then the first element of
|
||||
the array of strings provided to the ProgramArguments will be used instead. This key is required in
|
||||
the absence of the ProgramArguments key.
|
||||
|
@ -112,7 +112,7 @@ with lib;
|
|||
ProgramArguments = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This key maps to the second argument of `execvp(3)`. This key is required in the absence of the Program
|
||||
key. Please note: many people are confused by this key. Please read `execvp(3)` very carefully!
|
||||
'';
|
||||
|
@ -121,7 +121,7 @@ with lib;
|
|||
EnableGlobbing = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This flag causes launchd to use the `glob(3)` mechanism to update the program arguments before invocation.
|
||||
'';
|
||||
};
|
||||
|
@ -129,7 +129,7 @@ with lib;
|
|||
EnableTransactions = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This flag instructs launchd that the job promises to use `vproc_transaction_begin(3)` and
|
||||
`vproc_transaction_end(3)` to track outstanding transactions that need to be reconciled before the
|
||||
process can safely terminate. If no outstanding transactions are in progress, then launchd is free to
|
||||
|
@ -140,7 +140,7 @@ with lib;
|
|||
OnDemand = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This key was used in Mac OS X 10.4 to control whether a job was kept alive or not. The default was
|
||||
true. This key has been deprecated and replaced in Mac OS X 10.5 and later with the more powerful
|
||||
KeepAlive option.
|
||||
|
@ -154,7 +154,7 @@ with lib;
|
|||
SuccessfulExit = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If true, the job will be restarted as long as the program exits and with an exit status of zero.
|
||||
If false, the job will be restarted in the inverse condition. This key implies that "RunAtLoad"
|
||||
is set to true, since the job needs to run at least once before we can get an exit status.
|
||||
|
@ -164,7 +164,7 @@ with lib;
|
|||
NetworkState = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If true, the job will be kept alive as long as the network is up, where up is defined as at least
|
||||
one non-loopback interface being up and having IPv4 or IPv6 addresses assigned to them. If
|
||||
false, the job will be kept alive in the inverse condition.
|
||||
|
@ -174,7 +174,7 @@ with lib;
|
|||
PathState = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.bool);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Each key in this dictionary is a file-system path. If the value of the key is true, then the job
|
||||
will be kept alive as long as the path exists. If false, the job will be kept alive in the
|
||||
inverse condition. The intent of this feature is that two or more jobs may create semaphores in
|
||||
|
@ -185,7 +185,7 @@ with lib;
|
|||
OtherJobEnabled = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.bool);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Each key in this dictionary is the label of another job. If the value of the key is true, then
|
||||
this job is kept alive as long as that other job is enabled. Otherwise, if the value is false,
|
||||
then this job is kept alive as long as the other job is disabled. This feature should not be
|
||||
|
@ -196,7 +196,7 @@ with lib;
|
|||
Crashed = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If true, the the job will be restarted as long as it exited due to a signal which is typically
|
||||
associated with a crash (SIGILL, SIGSEGV, etc.). If false, the job will be restarted in the
|
||||
inverse condition.
|
||||
|
@ -211,7 +211,7 @@ with lib;
|
|||
};
|
||||
}));
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to control whether your job is to be kept continuously running or to let
|
||||
demand and conditions control the invocation. The default is false and therefore only demand will start
|
||||
the job. The value may be set to true to unconditionally keep the job alive. Alternatively, a dictionary
|
||||
|
@ -226,7 +226,7 @@ with lib;
|
|||
RunAtLoad = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to control whether your job is launched once at the time the job is loaded.
|
||||
The default is false.
|
||||
'';
|
||||
|
@ -235,7 +235,7 @@ with lib;
|
|||
RootDirectory = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to specify a directory to `chroot(2)` to before running the job.
|
||||
'';
|
||||
};
|
||||
|
@ -243,7 +243,7 @@ with lib;
|
|||
WorkingDirectory = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to specify a directory to `chdir(2)` to before running the job.
|
||||
'';
|
||||
};
|
||||
|
@ -251,7 +251,7 @@ with lib;
|
|||
EnvironmentVariables = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to specify additional environment variables to be set before running the
|
||||
job.
|
||||
'';
|
||||
|
@ -260,7 +260,7 @@ with lib;
|
|||
Umask = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies what value should be passed to `umask(2)` before running the job. Known bug:
|
||||
Property lists don't support octal, so please convert the value to decimal.
|
||||
'';
|
||||
|
@ -269,7 +269,7 @@ with lib;
|
|||
TimeOut = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The recommended idle time out (in seconds) to pass to the job. If no value is specified, a default time
|
||||
out will be supplied by launchd for use by the job at check in time.
|
||||
'';
|
||||
|
@ -278,7 +278,7 @@ with lib;
|
|||
ExitTimeOut = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The amount of time launchd waits before sending a SIGKILL signal. The default value is 20 seconds. The
|
||||
value zero is interpreted as infinity.
|
||||
'';
|
||||
|
@ -287,7 +287,7 @@ with lib;
|
|||
ThrottleInterval = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This key lets one override the default throttling policy imposed on jobs by launchd. The value is in
|
||||
seconds, and by default, jobs will not be spawned more than once every 10 seconds. The principle
|
||||
behind this is that jobs should linger around just in case they are needed again in the near future.
|
||||
|
@ -299,7 +299,7 @@ with lib;
|
|||
InitGroups = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies whether `initgroups(3)` should be called before running the job. The default
|
||||
is true in 10.5 and false in 10.4. This key will be ignored if the UserName key is not set.
|
||||
'';
|
||||
|
@ -308,7 +308,7 @@ with lib;
|
|||
WatchPaths = mkOption {
|
||||
type = types.nullOr (types.listOf types.path);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key causes the job to be started if any one of the listed paths are modified.
|
||||
'';
|
||||
};
|
||||
|
@ -316,7 +316,7 @@ with lib;
|
|||
QueueDirectories = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Much like the WatchPaths option, this key will watch the paths for modifications. The difference being
|
||||
that the job will only be started if the path is a directory and the directory is not empty.
|
||||
'';
|
||||
|
@ -325,7 +325,7 @@ with lib;
|
|||
StartOnMount = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key causes the job to be started every time a filesystem is mounted.
|
||||
'';
|
||||
};
|
||||
|
@ -333,7 +333,7 @@ with lib;
|
|||
StartInterval = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key causes the job to be started every N seconds. If the system is asleep, the job will
|
||||
be started the next time the computer wakes up. If multiple intervals transpire before the computer is
|
||||
woken, those events will be coalesced into one event upon wake from sleep.
|
||||
|
@ -343,7 +343,7 @@ with lib;
|
|||
StartCalendarInterval = mkOption {
|
||||
default = null;
|
||||
example = [{ Hour = 2; Minute = 30; }];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key causes the job to be started every calendar interval as specified. Missing arguments
|
||||
are considered to be wildcard. The semantics are much like `crontab(5)`. Unlike cron which skips job
|
||||
invocations when the computer is asleep, launchd will start the job the next time the computer wakes
|
||||
|
@ -355,7 +355,7 @@ with lib;
|
|||
Minute = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The minute on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
@ -363,7 +363,7 @@ with lib;
|
|||
Hour = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The hour on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
@ -371,7 +371,7 @@ with lib;
|
|||
Day = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The day on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
@ -379,7 +379,7 @@ with lib;
|
|||
Weekday = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The weekday on which this job will be run (0 and 7 are Sunday).
|
||||
'';
|
||||
};
|
||||
|
@ -387,7 +387,7 @@ with lib;
|
|||
Month = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The month on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
@ -398,7 +398,7 @@ with lib;
|
|||
StandardInPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies what file should be used for data being supplied to stdin when using
|
||||
`stdio(3)`.
|
||||
'';
|
||||
|
@ -407,7 +407,7 @@ with lib;
|
|||
StandardOutPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies what file should be used for data being sent to stdout when using `stdio(3)`.
|
||||
'';
|
||||
};
|
||||
|
@ -415,7 +415,7 @@ with lib;
|
|||
StandardErrorPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies what file should be used for data being sent to stderr when using `stdio(3)`.
|
||||
'';
|
||||
};
|
||||
|
@ -423,7 +423,7 @@ with lib;
|
|||
Debug = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies that launchd should adjust its log mask temporarily to LOG_DEBUG while
|
||||
dealing with this job.
|
||||
'';
|
||||
|
@ -432,7 +432,7 @@ with lib;
|
|||
WaitForDebugger = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies that launchd should instruct the kernel to have the job wait for a debugger
|
||||
to attach before any code in the job is executed.
|
||||
'';
|
||||
|
@ -440,7 +440,7 @@ with lib;
|
|||
|
||||
SoftResourceLimits = mkOption {
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Resource limits to be imposed on the job. These adjust variables set with `setrlimit(2)`. The following
|
||||
keys apply:
|
||||
'';
|
||||
|
@ -449,7 +449,7 @@ with lib;
|
|||
Core = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The largest size (in bytes) core file that may be created.
|
||||
'';
|
||||
};
|
||||
|
@ -457,7 +457,7 @@ with lib;
|
|||
CPU = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum amount of cpu time (in seconds) to be used by each process.
|
||||
'';
|
||||
};
|
||||
|
@ -465,7 +465,7 @@ with lib;
|
|||
Data = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) of the data segment for a process; this defines how far a program may
|
||||
extend its break with the `sbrk(2)` system call.
|
||||
'';
|
||||
|
@ -474,7 +474,7 @@ with lib;
|
|||
FileSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The largest size (in bytes) file that may be created.
|
||||
'';
|
||||
};
|
||||
|
@ -482,7 +482,7 @@ with lib;
|
|||
MemoryLock = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) which a process may lock into memory using the mlock(2) function.
|
||||
'';
|
||||
};
|
||||
|
@ -490,7 +490,7 @@ with lib;
|
|||
NumberOfFiles = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum number of open files for this process. Setting this value in a system wide daemon
|
||||
will set the `sysctl(3)` kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc (HardResourceLimits)
|
||||
value in addition to the `setrlimit(2)` values.
|
||||
|
@ -500,7 +500,7 @@ with lib;
|
|||
NumberOfProcesses = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum number of simultaneous processes for this user id. Setting this value in a system
|
||||
wide daemon will set the `sysctl(3)` kern.maxproc (SoftResourceLimits) or kern.maxprocperuid
|
||||
(HardResourceLimits) value in addition to the `setrlimit(2)` values.
|
||||
|
@ -510,7 +510,7 @@ with lib;
|
|||
ResidentSetSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) to which a process's resident set size may grow. This imposes a
|
||||
limit on the amount of physical memory to be given to a process; if memory is tight, the system
|
||||
will prefer to take memory from processes that are exceeding their declared resident set size.
|
||||
|
@ -520,7 +520,7 @@ with lib;
|
|||
Stack = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) of the stack segment for a process; this defines how far a program's
|
||||
stack segment may be extended. Stack extension is performed automatically by the system.
|
||||
'';
|
||||
|
@ -532,7 +532,7 @@ with lib;
|
|||
HardResourceLimits = mkOption {
|
||||
default = null;
|
||||
example = { NumberOfFiles = 4096; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Resource limits to be imposed on the job. These adjust variables set with `setrlimit(2)`. The following
|
||||
keys apply:
|
||||
'';
|
||||
|
@ -541,7 +541,7 @@ with lib;
|
|||
Core = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The largest size (in bytes) core file that may be created.
|
||||
'';
|
||||
};
|
||||
|
@ -549,7 +549,7 @@ with lib;
|
|||
CPU = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum amount of cpu time (in seconds) to be used by each process.
|
||||
'';
|
||||
};
|
||||
|
@ -557,7 +557,7 @@ with lib;
|
|||
Data = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) of the data segment for a process; this defines how far a program may
|
||||
extend its break with the `sbrk(2)` system call.
|
||||
'';
|
||||
|
@ -566,7 +566,7 @@ with lib;
|
|||
FileSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The largest size (in bytes) file that may be created.
|
||||
'';
|
||||
};
|
||||
|
@ -574,7 +574,7 @@ with lib;
|
|||
MemoryLock = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) which a process may lock into memory using the `mlock(2)` function.
|
||||
'';
|
||||
};
|
||||
|
@ -582,7 +582,7 @@ with lib;
|
|||
NumberOfFiles = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum number of open files for this process. Setting this value in a system wide daemon
|
||||
will set the `sysctl(3)` kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc (HardResourceLimits)
|
||||
value in addition to the `setrlimit(2)` values.
|
||||
|
@ -592,7 +592,7 @@ with lib;
|
|||
NumberOfProcesses = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum number of simultaneous processes for this user id. Setting this value in a system
|
||||
wide daemon will set the `sysctl(3)` kern.maxproc (SoftResourceLimits) or kern.maxprocperuid
|
||||
(HardResourceLimits) value in addition to the `setrlimit(2)` values.
|
||||
|
@ -602,7 +602,7 @@ with lib;
|
|||
ResidentSetSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) to which a process's resident set size may grow. This imposes a
|
||||
limit on the amount of physical memory to be given to a process; if memory is tight, the system
|
||||
will prefer to take memory from processes that are exceeding their declared resident set size.
|
||||
|
@ -612,7 +612,7 @@ with lib;
|
|||
Stack = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum size (in bytes) of the stack segment for a process; this defines how far a program's
|
||||
stack segment may be extended. Stack extension is performed automatically by the system.
|
||||
'';
|
||||
|
@ -624,7 +624,7 @@ with lib;
|
|||
Nice = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies what nice(3) value should be applied to the daemon.
|
||||
'';
|
||||
};
|
||||
|
@ -633,7 +633,7 @@ with lib;
|
|||
type = types.nullOr (types.enum [ "Background" "Standard" "Adaptive" "Interactive" ]);
|
||||
default = null;
|
||||
example = "Background";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key describes, at a high level, the intended purpose of the job. The system will apply
|
||||
resource limits based on what kind of job it is. If left unspecified, the system will apply light
|
||||
resource limits to the job, throttling its CPU usage and I/O bandwidth. The following are valid values:
|
||||
|
@ -660,7 +660,7 @@ with lib;
|
|||
AbandonProcessGroup = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
When a job dies, launchd kills any remaining processes with the same process group ID as the job. Setting
|
||||
this key to true disables that behavior.
|
||||
'';
|
||||
|
@ -669,7 +669,7 @@ with lib;
|
|||
LowPriorityIO = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies whether the kernel should consider this daemon to be low priority when
|
||||
doing file system I/O.
|
||||
'';
|
||||
|
@ -678,7 +678,7 @@ with lib;
|
|||
LaunchOnlyOnce = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies whether the job can only be run once and only once. In other words, if the
|
||||
job cannot be safely respawned without a full machine reboot, then set this key to be true.
|
||||
'';
|
||||
|
@ -687,7 +687,7 @@ with lib;
|
|||
MachServices = mkOption {
|
||||
default = null;
|
||||
example = { "org.nixos.service" = { ResetAtClose = true; }; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to specify Mach services to be registered with the Mach bootstrap sub-system.
|
||||
Each key in this dictionary should be the name of service to be advertised. The value of the key must
|
||||
be a boolean and set to true. Alternatively, a dictionary can be used instead of a simple true value.
|
||||
|
@ -700,7 +700,7 @@ with lib;
|
|||
ResetAtClose = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If this boolean is false, the port is recycled, thus leaving clients to remain oblivious to the
|
||||
demand nature of job. If the value is set to true, clients receive port death notifications when
|
||||
the job lets go of the receive right. The port will be recreated atomically with respect to bootstrap_look_up()
|
||||
|
@ -713,7 +713,7 @@ with lib;
|
|||
HideUntilCheckIn = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Reserve the name in the namespace, but cause bootstrap_look_up() to fail until the job has
|
||||
checked in with launchd.
|
||||
'';
|
||||
|
@ -725,7 +725,7 @@ with lib;
|
|||
LaunchEvents = mkOption {
|
||||
type = types.nullOr (types.attrs);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Specifies higher-level event types to be used as launch-on-demand event
|
||||
sources. Each sub-dictionary defines events for a particular event
|
||||
subsystem, such as "com.apple.iokit.matching", which can be used to
|
||||
|
@ -750,7 +750,7 @@ with lib;
|
|||
ServiceIPC = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies whether the job participates in advanced
|
||||
communication with launchd. The default is false. This flag is
|
||||
incompatible with the inetdCompatibility key.
|
||||
|
@ -760,7 +760,7 @@ with lib;
|
|||
SessionCreate = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This key specifies that the job should be spawned into a new security
|
||||
audit session rather than the default session for the context is belongs
|
||||
to. See auditon(2) for details.
|
||||
|
@ -769,7 +769,7 @@ with lib;
|
|||
|
||||
Sockets = mkOption {
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is used to specify launch on demand sockets that can be used to let launchd know when
|
||||
to run the job. The job must check-in to get a copy of the file descriptors using APIs outlined in
|
||||
launch(3). The keys of the top level Sockets dictionary can be anything. They are meant for the application
|
||||
|
@ -786,7 +786,7 @@ with lib;
|
|||
SockType = mkOption {
|
||||
type = types.nullOr (types.enum [ "stream" "dgram" "seqpacket" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key tells launchctl what type of socket to create. The default is "stream" and
|
||||
other valid values for this key are "dgram" and "seqpacket" respectively.
|
||||
'';
|
||||
|
@ -795,7 +795,7 @@ with lib;
|
|||
SockPassive = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies whether `listen(2)` or `connect(2)` should be called on the created file
|
||||
descriptor. The default is true ("to listen").
|
||||
'';
|
||||
|
@ -804,7 +804,7 @@ with lib;
|
|||
SockNodeName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies the node to `connect(2)` or `bind(2)` to.
|
||||
'';
|
||||
};
|
||||
|
@ -812,7 +812,7 @@ with lib;
|
|||
SockServiceName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies the service on the node to `connect(2)` or `bind(2)` to.
|
||||
'';
|
||||
};
|
||||
|
@ -820,7 +820,7 @@ with lib;
|
|||
SockFamily = mkOption {
|
||||
type = types.nullOr (types.enum [ "IPv4" "IPv6" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key can be used to specifically request that "IPv4" or "IPv6" socket(s) be created.
|
||||
'';
|
||||
};
|
||||
|
@ -828,7 +828,7 @@ with lib;
|
|||
SockProtocol = mkOption {
|
||||
type = types.nullOr (types.enum [ "TCP" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies the protocol to be passed to `socket(2)`. The only value understood by
|
||||
this key at the moment is "TCP".
|
||||
'';
|
||||
|
@ -837,7 +837,7 @@ with lib;
|
|||
SockPathName = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key implies SockFamily is set to "Unix". It specifies the path to `connect(2)` or
|
||||
`bind(2)` to.
|
||||
'';
|
||||
|
@ -846,7 +846,7 @@ with lib;
|
|||
SecureSocketWithKey = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key is a variant of SockPathName. Instead of binding to a known path, a securely
|
||||
generated socket is created and the path is assigned to the environment variable that is inherited
|
||||
by all jobs spawned by launchd.
|
||||
|
@ -856,7 +856,7 @@ with lib;
|
|||
SockPathMode = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key specifies the mode of the socket. Known bug: Property lists don't support
|
||||
octal, so please convert the value to decimal.
|
||||
'';
|
||||
|
@ -865,7 +865,7 @@ with lib;
|
|||
Bonjour = mkOption {
|
||||
type = types.nullOr (types.either types.bool (types.listOf types.str));
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key can be used to request that the service be registered with the
|
||||
`mDNSResponder(8)`. If the value is boolean, the service name is inferred from the SockServiceName.
|
||||
'';
|
||||
|
@ -874,7 +874,7 @@ with lib;
|
|||
MulticastGroup = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This optional key can be used to request that the datagram socket join a multicast group. If the
|
||||
value is a hostname, then `getaddrinfo(3)` will be used to join the correct multicast address for a
|
||||
given socket family. If an explicit IPv4 or IPv6 address is given, it is required that the SockFamily
|
||||
|
|
|
@ -16,7 +16,7 @@ in
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether this file should be generated.
|
||||
This option allows specific files to be disabled.
|
||||
'';
|
||||
|
@ -25,7 +25,7 @@ in
|
|||
text = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Text of the file.
|
||||
'';
|
||||
};
|
||||
|
@ -33,14 +33,14 @@ in
|
|||
target = mkOption {
|
||||
type = types.str;
|
||||
default = name;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Name of symlink. Defaults to the attribute name.
|
||||
'';
|
||||
};
|
||||
|
||||
source = mkOption {
|
||||
type = types.path;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Path of the source file.
|
||||
'';
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ in
|
|||
copy = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether this file should be copied instead of symlinking.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -35,7 +35,7 @@ in
|
|||
internal = true;
|
||||
default = [];
|
||||
example = [ lib.maintainers.lnl7 ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of maintainers of each module. This option should be defined at
|
||||
most once per module.
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ in
|
|||
|
||||
ids.uids = lib.mkOption {
|
||||
internal = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The user IDs used in NixOS.
|
||||
'';
|
||||
type = types.attrsOf types.int;
|
||||
|
@ -26,7 +26,7 @@ in
|
|||
|
||||
ids.gids = lib.mkOption {
|
||||
internal = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The group IDs used in NixOS.
|
||||
'';
|
||||
type = types.attrsOf types.int;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
type = lib.types.attrsOf lib.types.attrs;
|
||||
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option allows modules to define helper functions, constants, etc.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -29,7 +29,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "John’s MacBook Pro";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The user-friendly name for the system, set in System Preferences > Sharing > Computer Name.
|
||||
|
||||
Setting this option is equivalent to running `scutil --set ComputerName`.
|
||||
|
@ -42,7 +42,7 @@ in
|
|||
type = types.nullOr (types.strMatching hostnameRegEx);
|
||||
default = null;
|
||||
example = "Johns-MacBook-Pro";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The hostname of your system, as visible from the command line and used by local and remote
|
||||
networks when connecting through SSH and Remote Login.
|
||||
|
||||
|
@ -56,7 +56,7 @@ in
|
|||
type = types.nullOr (types.strMatching hostnameRegEx);
|
||||
default = cfg.hostName;
|
||||
example = "Johns-MacBook-Pro";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The local hostname, or local network name, is displayed beneath the computer's name at the
|
||||
top of the Sharing preferences pane. It identifies your Mac to Bonjour-compatible services.
|
||||
|
||||
|
@ -74,7 +74,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [ "Wi-Fi" "Ethernet Adaptor" "Thunderbolt Ethernet" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of networkservices that should be configured.
|
||||
|
||||
To display a list of all the network services on the server's
|
||||
|
@ -86,13 +86,13 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [ "8.8.8.8" "8.8.4.4" "2001:4860:4860::8888" "2001:4860:4860::8844" ];
|
||||
description = lib.mdDoc "The list of dns servers used when resolving domain names.";
|
||||
description = "The list of dns servers used when resolving domain names.";
|
||||
};
|
||||
|
||||
networking.search = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc "The list of search paths used when resolving domain names.";
|
||||
description = "The list of search paths used when resolving domain names.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ in
|
|||
type = types.package;
|
||||
default = pkgs.nix;
|
||||
defaultText = literalExpression "pkgs.nix";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option specifies the Nix package instance to use throughout the system.
|
||||
'';
|
||||
};
|
||||
|
@ -178,7 +178,7 @@ in
|
|||
useDaemon = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If set, Nix will use the daemon to perform operations.
|
||||
Use this instead of services.nix-daemon.enable if you don't want the
|
||||
daemon service to be managed for you.
|
||||
|
@ -188,7 +188,7 @@ in
|
|||
distributedBuilds = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to distribute builds to the machines listed in
|
||||
{option}`nix.buildMachines`.
|
||||
|
||||
|
@ -201,7 +201,7 @@ in
|
|||
daemonProcessType = mkOption {
|
||||
type = types.enum [ "Background" "Standard" "Adaptive" "Interactive" ];
|
||||
default = "Standard";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Nix daemon process resource limits class. These limits propagate to
|
||||
build processes. `Standard` is the default process type
|
||||
and will apply light resource limits, throttling its CPU usage and I/O
|
||||
|
@ -216,7 +216,7 @@ in
|
|||
daemonIOLowPriority = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether the Nix daemon process should considered to be low priority when
|
||||
doing file system I/O.
|
||||
'';
|
||||
|
@ -228,7 +228,7 @@ in
|
|||
hostName = mkOption {
|
||||
type = types.str;
|
||||
example = "nixbuilder.example.org";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The hostname of the build machine.
|
||||
'';
|
||||
};
|
||||
|
@ -236,7 +236,7 @@ in
|
|||
type = types.enum [ null "ssh" "ssh-ng" ];
|
||||
default = "ssh";
|
||||
example = "ssh-ng";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The protocol used for communicating with the build machine.
|
||||
Use `ssh-ng` if your remote builder and your
|
||||
local Nix version support that improved protocol.
|
||||
|
@ -249,7 +249,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "x86_64-linux";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The system type the build machine can execute derivations on.
|
||||
Either this attribute or {var}`systems` must be
|
||||
present, where {var}`system` takes precedence if
|
||||
|
@ -260,7 +260,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "x86_64-linux" "aarch64-linux" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The system types the build machine can execute derivations on.
|
||||
Either this attribute or {var}`system` must be
|
||||
present, where {var}`system` takes precedence if
|
||||
|
@ -271,7 +271,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "builder";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The username to log in as on the remote host. This user must be
|
||||
able to log in and run nix commands non-interactively. It must
|
||||
also be privileged to build derivations, so must be included in
|
||||
|
@ -282,7 +282,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "/root/.ssh/id_buildhost_builduser";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The path to the SSH private key with which to authenticate on
|
||||
the build machine. The private key must not have a passphrase.
|
||||
If null, the building user (root on NixOS machines) must have an
|
||||
|
@ -295,7 +295,7 @@ in
|
|||
maxJobs = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The number of concurrent jobs the build machine supports. The
|
||||
build machine will enforce its own limits, but this allows hydra
|
||||
to schedule better since there is no work-stealing between build
|
||||
|
@ -305,7 +305,7 @@ in
|
|||
speedFactor = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The relative speed of this builder. This is an arbitrary integer
|
||||
that indicates the speed of this builder, relative to other
|
||||
builders. Higher is faster.
|
||||
|
@ -315,7 +315,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "big-parallel" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of features mandatory for this builder. The builder will
|
||||
be ignored for derivations that don't require all features in
|
||||
this list. All mandatory features are automatically included in
|
||||
|
@ -326,7 +326,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "kvm" "big-parallel" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of features supported by this builder. The builder will
|
||||
be ignored for derivations that require features not in this
|
||||
list.
|
||||
|
@ -335,7 +335,7 @@ in
|
|||
publicHostKey = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The (base64-encoded) public host key of this builder. The field
|
||||
is calculated via {command}`base64 -w0 /etc/ssh/ssh_host_type_key.pub`.
|
||||
If null, SSH will use its regular known-hosts file when connecting.
|
||||
|
@ -344,7 +344,7 @@ in
|
|||
};
|
||||
});
|
||||
default = [ ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option lists the machines to be used if distributed builds are
|
||||
enabled (see {option}`nix.distributedBuilds`).
|
||||
Nix will perform derivations on those machines via SSH by copying the
|
||||
|
@ -358,21 +358,21 @@ in
|
|||
type = types.attrs;
|
||||
internal = true;
|
||||
default = { };
|
||||
description = lib.mdDoc "Environment variables used by Nix.";
|
||||
description = "Environment variables used by Nix.";
|
||||
};
|
||||
|
||||
# Not in NixOS module
|
||||
configureBuildUsers = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable configuration for nixbld group and users.
|
||||
'';
|
||||
};
|
||||
|
||||
nrBuildUsers = mkOption {
|
||||
type = types.int;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Number of `nixbld` user accounts created to
|
||||
perform secure concurrent builds. If you receive an error
|
||||
message saying that “all build users are currently in use”,
|
||||
|
@ -388,7 +388,7 @@ in
|
|||
{ darwin-config = "${config.environment.darwinConfig}"; }
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The default Nix expression search path, used by the Nix
|
||||
evaluator to look up paths enclosed in angle brackets
|
||||
(e.g. `<nixpkgs>`).
|
||||
|
@ -402,7 +402,7 @@ in
|
|||
checkConfig = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If enabled (the default), checks for data type mismatches and that Nix
|
||||
can parse the generated nix.conf.
|
||||
'';
|
||||
|
@ -424,25 +424,25 @@ in
|
|||
from = mkOption {
|
||||
type = referenceAttrs;
|
||||
example = { type = "indirect"; id = "nixpkgs"; };
|
||||
description = lib.mdDoc "The flake reference to be rewritten.";
|
||||
description = "The flake reference to be rewritten.";
|
||||
};
|
||||
to = mkOption {
|
||||
type = referenceAttrs;
|
||||
example = { type = "github"; owner = "my-org"; repo = "my-nixpkgs"; };
|
||||
description = lib.mdDoc "The flake reference {option}`from` is rewritten to.";
|
||||
description = "The flake reference {option}`from` is rewritten to.";
|
||||
};
|
||||
flake = mkOption {
|
||||
type = types.nullOr types.attrs;
|
||||
default = null;
|
||||
example = literalExpression "nixpkgs";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The flake input {option}`from` is rewritten to.
|
||||
'';
|
||||
};
|
||||
exact = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether the {option}`from` reference needs to match exactly. If set,
|
||||
a {option}`from` reference like `nixpkgs` does not
|
||||
match with a reference like `nixpkgs/nixos-20.03`.
|
||||
|
@ -463,7 +463,7 @@ in
|
|||
}
|
||||
));
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A system-wide flake registry.
|
||||
'';
|
||||
};
|
||||
|
@ -475,7 +475,7 @@ in
|
|||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
description = lib.mdDoc "Additional text appended to {file}`nix.conf`.";
|
||||
description = "Additional text appended to {file}`nix.conf`.";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
|
@ -487,7 +487,7 @@ in
|
|||
type = types.either types.int (types.enum [ "auto" ]);
|
||||
default = "auto";
|
||||
example = 64;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option defines the maximum number of jobs that Nix will try to
|
||||
build in parallel. The default is auto, which means it will use all
|
||||
available logical cores. It is recommend to set it to the total
|
||||
|
@ -500,7 +500,7 @@ in
|
|||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If set to true, Nix automatically detects files in the store that have
|
||||
identical contents, and replaces them with hard links to a single copy.
|
||||
This saves disk space. If set to false (the default), you can still run
|
||||
|
@ -512,7 +512,7 @@ in
|
|||
type = types.int;
|
||||
default = 0;
|
||||
example = 64;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option defines the maximum number of concurrent tasks during
|
||||
one build. It affects, e.g., -j option for make.
|
||||
The special value 0 means that the builder should use all
|
||||
|
@ -525,7 +525,7 @@ in
|
|||
sandbox = mkOption {
|
||||
type = types.either types.bool (types.enum [ "relaxed" ]);
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If set, Nix will perform builds in a sandboxed environment that it
|
||||
will set up automatically for each build. This prevents impurities
|
||||
in builds by disallowing access to dependencies outside of the Nix
|
||||
|
@ -539,7 +539,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "/dev" "/proc" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Directories from the host filesystem to be included
|
||||
in the sandbox.
|
||||
'';
|
||||
|
@ -547,7 +547,7 @@ in
|
|||
|
||||
substituters = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of binary cache URLs used to obtain pre-built binaries
|
||||
of Nix packages.
|
||||
|
||||
|
@ -559,7 +559,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "https://hydra.nixos.org/" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of binary cache URLs that non-root users can use (in
|
||||
addition to those specified using
|
||||
{option}`nix.settings.substituters`) by passing
|
||||
|
@ -570,7 +570,7 @@ in
|
|||
require-sigs = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If enabled (the default), Nix will only download binaries from binary caches if
|
||||
they are cryptographically signed with any of the keys listed in
|
||||
{option}`nix.settings.trusted-public-keys`. If disabled, signatures are neither
|
||||
|
@ -582,7 +582,7 @@ in
|
|||
trusted-public-keys = mkOption {
|
||||
type = types.listOf types.str;
|
||||
example = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of public keys used to sign binary caches. If
|
||||
{option}`nix.settings.trusted-public-keys` is enabled,
|
||||
then Nix will use a binary from a binary cache if and only
|
||||
|
@ -596,7 +596,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ "root" ];
|
||||
example = [ "root" "alice" "@admin" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of names of users that have additional rights when
|
||||
connecting to the Nix daemon, such as the ability to specify
|
||||
additional binary caches, or to import unsigned NARs. You
|
||||
|
@ -626,7 +626,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ "*" ];
|
||||
example = [ "@admin" "@builders" "alice" "bob" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of names of users (separated by whitespace) that are
|
||||
allowed to connect to the Nix daemon. As with
|
||||
{option}`nix.settings.trusted-users`, you can specify groups by
|
||||
|
@ -639,7 +639,7 @@ in
|
|||
};
|
||||
};
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configuration for Nix, see
|
||||
<https://nixos.org/manual/nix/stable/#sec-conf-file>
|
||||
for avalaible options.
|
||||
|
|
|
@ -33,13 +33,13 @@ in
|
|||
];
|
||||
|
||||
options.nix.linux-builder = {
|
||||
enable = mkEnableOption (lib.mdDoc "Linux builder");
|
||||
enable = mkEnableOption "Linux builder";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.darwin.linux-builder;
|
||||
defaultText = "pkgs.darwin.linux-builder";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option specifies the Linux builder to use.
|
||||
'';
|
||||
};
|
||||
|
@ -54,7 +54,7 @@ in
|
|||
environment.systemPackages = [ pkgs.neovim ];
|
||||
})
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option specifies extra NixOS configuration for the builder. You should first use the Linux builder
|
||||
without changing the builder configuration otherwise you may not be able to build the Linux builder.
|
||||
'';
|
||||
|
@ -65,7 +65,7 @@ in
|
|||
default = [];
|
||||
defaultText = literalExpression ''[]'';
|
||||
example = literalExpression ''[ "big-parallel" ]'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of features mandatory for the Linux builder. The builder will
|
||||
be ignored for derivations that don't require all features in
|
||||
this list. All mandatory features are automatically included in
|
||||
|
@ -79,7 +79,7 @@ in
|
|||
type = types.ints.positive;
|
||||
default = 1;
|
||||
example = 4;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The number of concurrent jobs the Linux builder machine supports. The
|
||||
build machine will enforce its own limits, but this allows hydra
|
||||
to schedule better since there is no work-stealing between build
|
||||
|
@ -94,7 +94,7 @@ in
|
|||
default = "ssh-ng";
|
||||
defaultText = literalExpression ''"ssh-ng"'';
|
||||
example = literalExpression ''"ssh"'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The protocol used for communicating with the build machine. Use
|
||||
`ssh-ng` if your remote builder and your local Nix version support that
|
||||
improved protocol.
|
||||
|
@ -108,7 +108,7 @@ in
|
|||
type = types.ints.positive;
|
||||
default = 1;
|
||||
defaultText = literalExpression ''1'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The relative speed of the Linux builder. This is an arbitrary integer
|
||||
that indicates the speed of this builder, relative to other
|
||||
builders. Higher is faster.
|
||||
|
@ -122,7 +122,7 @@ in
|
|||
default = [ "kvm" "benchmark" "big-parallel" ];
|
||||
defaultText = literalExpression ''[ "kvm" "benchmark" "big-parallel" ]'';
|
||||
example = literalExpression ''[ "kvm" "big-parallel" ]'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of features supported by the Linux builder. The builder will
|
||||
be ignored for derivations that require features not in this
|
||||
list.
|
||||
|
@ -141,7 +141,7 @@ in
|
|||
"aarch64-linux"
|
||||
]
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option specifies system types the build machine can execute derivations on.
|
||||
|
||||
This sets the corresponding `nix.buildMachines.*.systems` option.
|
||||
|
@ -152,18 +152,18 @@ in
|
|||
workingDirectory = mkOption {
|
||||
type = types.str;
|
||||
default = "/var/lib/darwin-builder";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The working directory of the Linux builder daemon process.
|
||||
'';
|
||||
};
|
||||
|
||||
ephemeral = mkEnableOption (lib.mdDoc ''
|
||||
ephemeral = mkEnableOption ''
|
||||
wipe the builder's filesystem on every restart.
|
||||
|
||||
This is disabled by default as maintaining the builder's Nix Store reduces
|
||||
rebuilds. You can enable this if you don't want your builder to accumulate
|
||||
state.
|
||||
'');
|
||||
'';
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
@ -143,7 +143,7 @@ in
|
|||
pkgs = mkOption {
|
||||
type = pkgsType;
|
||||
example = literalExpression "import <nixpkgs> {}";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If set, the pkgs argument to all nix-darwin modules is the value of
|
||||
this option, extended with `nixpkgs.overlays`, if
|
||||
that is also set. The nix-darwin and Nixpkgs architectures must
|
||||
|
@ -171,7 +171,7 @@ in
|
|||
{ allowBroken = true; allowUnfree = true; }
|
||||
'';
|
||||
type = configType;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The configuration of the Nix Packages collection. (For
|
||||
details, see the Nixpkgs documentation.) It allows you to set
|
||||
package configuration options.
|
||||
|
@ -194,7 +194,7 @@ in
|
|||
]
|
||||
'';
|
||||
type = types.listOf overlayType;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of overlays to use with the Nix Packages collection.
|
||||
(For details, see the Nixpkgs documentation.) It allows
|
||||
you to override packages globally. Each function in the list
|
||||
|
@ -214,7 +214,7 @@ in
|
|||
# Make sure that the final value has all fields for sake of other modules
|
||||
# referring to this. TODO make `lib.systems` itself use the module system.
|
||||
apply = lib.systems.elaborate;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Specifies the platform where the nix-darwin configuration will run.
|
||||
|
||||
To cross-compile, set also `nixpkgs.buildPlatform`.
|
||||
|
@ -232,7 +232,7 @@ in
|
|||
apply = lib.systems.elaborate;
|
||||
defaultText = literalExpression
|
||||
''config.nixpkgs.hostPlatform'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Specifies the platform on which nix-darwin should be built.
|
||||
By default, nix-darwin is built on the system where it runs, but you can
|
||||
change where it's built. Setting this option will cause nix-darwin to be
|
||||
|
@ -266,7 +266,7 @@ in
|
|||
defaultText = lib.literalMD ''
|
||||
Traditionally `builtins.currentSystem`, but unset when invoking nix-darwin through `lib.darwinSystem`.
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Specifies the Nix platform type on which nix-darwin should be built.
|
||||
It is better to specify `nixpkgs.hostPlatform` instead.
|
||||
|
||||
|
@ -281,7 +281,7 @@ in
|
|||
defaultText = literalMD ''
|
||||
`<nixpkgs>` or nix-darwin's `nixpkgs` flake input
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The path to import Nixpkgs from. If you're setting a custom
|
||||
[](#opt-nixpkgs.pkgs) or `_module.args.pkgs`, setting this
|
||||
to something with `rev` and `shortRev` attributes (such as a
|
||||
|
|
|
@ -12,19 +12,19 @@ in
|
|||
programs.bash.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to configure bash as an interactive shell.";
|
||||
description = "Whether to configure bash as an interactive shell.";
|
||||
};
|
||||
|
||||
programs.bash.interactiveShellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc "Shell script code called during interactive bash shell initialisation.";
|
||||
description = "Shell script code called during interactive bash shell initialisation.";
|
||||
type = types.lines;
|
||||
};
|
||||
|
||||
programs.bash.enableCompletion = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable bash completion for all interactive bash shells.
|
||||
|
||||
NOTE. This doesn't work with bash 3.2, which is the default on macOS.
|
||||
|
|
|
@ -11,11 +11,11 @@ in {
|
|||
];
|
||||
options.programs.direnv = {
|
||||
|
||||
enable = lib.mkEnableOption (lib.mdDoc ''
|
||||
enable = lib.mkEnableOption ''
|
||||
direnv integration. Takes care of both installation and
|
||||
setting up the sourcing of the shell. Additionally enables nix-direnv
|
||||
integration.
|
||||
'');
|
||||
'';
|
||||
|
||||
package = lib.mkPackageOptionMD pkgs "direnv" {};
|
||||
|
||||
|
@ -26,17 +26,17 @@ in {
|
|||
export FOO="foo"
|
||||
echo "loaded direnv!"
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Extra lines to append to the sourced direnvrc
|
||||
'';
|
||||
};
|
||||
|
||||
silent = lib.mkEnableOption (lib.mdDoc ''
|
||||
silent = lib.mkEnableOption ''
|
||||
the hiding of direnv logging
|
||||
'');
|
||||
'';
|
||||
|
||||
loadInNixShell =
|
||||
lib.mkEnableOption (lib.mdDoc ''
|
||||
(lib.mkEnableOption ''
|
||||
loading direnv in `nix-shell` `nix shell` or `nix develop`
|
||||
'')
|
||||
// {
|
||||
|
@ -45,9 +45,9 @@ in {
|
|||
|
||||
nix-direnv = {
|
||||
enable =
|
||||
(lib.mkEnableOption (lib.mdDoc ''
|
||||
(lib.mkEnableOption ''
|
||||
a faster, persistent implementation of use_nix and use_flake, to replace the built-in one
|
||||
''))
|
||||
'')
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
|
|
|
@ -51,7 +51,7 @@ in
|
|||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to configure fish as an interactive shell.
|
||||
'';
|
||||
type = types.bool;
|
||||
|
@ -60,7 +60,7 @@ in
|
|||
useBabelfish = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If enabled, the configured environment will be translated to native fish using [babelfish](https://github.com/bouk/babelfish).
|
||||
Otherwise, [foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) will be used.
|
||||
'';
|
||||
|
@ -69,7 +69,7 @@ in
|
|||
babelfishPackage = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.babelfish;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The babelfish package to use when useBabelfish is
|
||||
set to true.
|
||||
'';
|
||||
|
@ -78,7 +78,7 @@ in
|
|||
vendor.config.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether fish should source configuration snippets provided by other packages.
|
||||
'';
|
||||
};
|
||||
|
@ -86,7 +86,7 @@ in
|
|||
vendor.completions.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether fish should use completion files provided by other packages.
|
||||
'';
|
||||
};
|
||||
|
@ -94,14 +94,14 @@ in
|
|||
vendor.functions.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether fish should autoload fish functions provided by other packages.
|
||||
'';
|
||||
};
|
||||
|
||||
shellAliases = mkOption {
|
||||
default = config.environment.shellAliases;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set of aliases for fish shell. See {option}`environment.shellAliases`
|
||||
for an option format description.
|
||||
'';
|
||||
|
@ -110,7 +110,7 @@ in
|
|||
|
||||
shellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during fish shell initialisation.
|
||||
'';
|
||||
type = types.lines;
|
||||
|
@ -118,7 +118,7 @@ in
|
|||
|
||||
loginShellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during fish login shell initialisation.
|
||||
'';
|
||||
type = types.lines;
|
||||
|
@ -126,7 +126,7 @@ in
|
|||
|
||||
interactiveShellInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code called during interactive fish shell initialisation.
|
||||
'';
|
||||
type = types.lines;
|
||||
|
@ -134,7 +134,7 @@ in
|
|||
|
||||
promptInit = mkOption {
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Shell script code used to initialise fish prompt.
|
||||
'';
|
||||
type = types.lines;
|
||||
|
|
|
@ -13,7 +13,7 @@ in
|
|||
agent.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enables GnuPG agent for every user session.
|
||||
'';
|
||||
};
|
||||
|
@ -21,7 +21,7 @@ in
|
|||
agent.enableSSHSupport = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable SSH agent support in GnuPG agent. Also sets SSH_AUTH_SOCK
|
||||
environment variable correctly.
|
||||
'';
|
||||
|
|
|
@ -11,7 +11,7 @@ in
|
|||
programs.info.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to enable info pages and the {command}`info` command.";
|
||||
description = "Whether to enable info pages and the {command}`info` command.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
programs.man.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable manual pages and the {command}`man` command.
|
||||
This also includes "man" outputs of all `systemPackages`.
|
||||
'';
|
||||
|
|
|
@ -11,14 +11,14 @@ in
|
|||
programs.nix-index.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable nix-index and its command-not-found helper.";
|
||||
description = "Whether to enable nix-index and its command-not-found helper.";
|
||||
};
|
||||
|
||||
programs.nix-index.package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.nix-index;
|
||||
defaultText = "pkgs.nix-index";
|
||||
description = lib.mdDoc "This option specifies the nix-index package to use.";
|
||||
description = "This option specifies the nix-index package to use.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ let
|
|||
hostNames = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of host names and/or IP numbers used for accessing
|
||||
the host's ssh service.
|
||||
'';
|
||||
|
@ -23,7 +23,7 @@ let
|
|||
default = null;
|
||||
type = types.nullOr types.str;
|
||||
example = "ecdsa-sha2-nistp521 AAAAE2VjZHN...UEPg==";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The public key data for the host. You can fetch a public key
|
||||
from a running SSH server with the {command}`ssh-keyscan`
|
||||
command. The public key should not include any host names, only
|
||||
|
@ -33,7 +33,7 @@ let
|
|||
publicKeyFile = mkOption {
|
||||
default = null;
|
||||
type = types.nullOr types.path;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The path to the public key file for the host. The public
|
||||
key file is read at build time and saved in the Nix store.
|
||||
You can fetch a public key file from a running SSH server
|
||||
|
@ -54,7 +54,7 @@ let
|
|||
keys = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of verbatim OpenSSH public keys that should be added to the
|
||||
user's authorized keys. The keys are added to a file that the SSH
|
||||
daemon reads in addition to the the user's authorized_keys file.
|
||||
|
@ -68,7 +68,7 @@ let
|
|||
keyFiles = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of files each containing one OpenSSH public key that should be
|
||||
added to the user's authorized keys. The contents of the files are
|
||||
read at build time and added to a file that the SSH daemon reads in
|
||||
|
@ -106,7 +106,7 @@ in
|
|||
services.openssh.authorizedKeysFiles = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Specify the rules for which files to read on the host.
|
||||
|
||||
This is an advanced option. If you're looking to configure user
|
||||
|
@ -122,7 +122,7 @@ in
|
|||
programs.ssh.knownHosts = mkOption {
|
||||
default = {};
|
||||
type = types.attrsOf (types.submodule host);
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The set of system-wide known SSH hosts.
|
||||
'';
|
||||
example = literalExpression ''
|
||||
|
|
|
@ -46,47 +46,47 @@ in
|
|||
programs.tmux.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to configure tmux.";
|
||||
description = "Whether to configure tmux.";
|
||||
};
|
||||
|
||||
programs.tmux.enableSensible = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc "Enable sensible configuration options for tmux.";
|
||||
description = "Enable sensible configuration options for tmux.";
|
||||
};
|
||||
|
||||
programs.tmux.enableMouse = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc "Enable mouse support for tmux.";
|
||||
description = "Enable mouse support for tmux.";
|
||||
};
|
||||
|
||||
programs.tmux.enableFzf = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc "Enable fzf keybindings for selecting tmux sessions and panes.";
|
||||
description = "Enable fzf keybindings for selecting tmux sessions and panes.";
|
||||
};
|
||||
|
||||
programs.tmux.enableVim = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc "Enable vim style keybindings for copy mode, and navigation of tmux panes.";
|
||||
description = "Enable vim style keybindings for copy mode, and navigation of tmux panes.";
|
||||
};
|
||||
|
||||
programs.tmux.iTerm2 = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc "Cater to iTerm2 and its tmux integration, as appropriate.";
|
||||
description = "Cater to iTerm2 and its tmux integration, as appropriate.";
|
||||
};
|
||||
|
||||
programs.tmux.defaultCommand = mkOption {
|
||||
type = types.either types.str types.package;
|
||||
description = lib.mdDoc "The default command to use for tmux panes.";
|
||||
description = "The default command to use for tmux panes.";
|
||||
};
|
||||
|
||||
programs.tmux.tmuxOptions = mkOption {
|
||||
|
@ -98,7 +98,7 @@ in
|
|||
programs.tmux.extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Extra configuration to add to {file}`tmux.conf`.";
|
||||
description = "Extra configuration to add to {file}`tmux.conf`.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -18,14 +18,14 @@ in
|
|||
programs.vim.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to configure vim.";
|
||||
description = "Whether to configure vim.";
|
||||
};
|
||||
|
||||
programs.vim.enableSensible = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc "Enable sensible configuration options for vim.";
|
||||
description = "Enable sensible configuration options for vim.";
|
||||
};
|
||||
|
||||
programs.vim.extraKnownPlugins = mkOption {
|
||||
|
@ -46,14 +46,14 @@ in
|
|||
};
|
||||
}
|
||||
'';
|
||||
description = lib.mdDoc "Custom plugin declarations to add to VAM's knownPlugins.";
|
||||
description = "Custom plugin declarations to add to VAM's knownPlugins.";
|
||||
};
|
||||
|
||||
programs.vim.plugins = mkOption {
|
||||
type = types.listOf types.attrs;
|
||||
default = [];
|
||||
example = [ { names = [ "surround" "vim-nix" ]; } ];
|
||||
description = lib.mdDoc "VAM plugin dictionaries to use for vim_configurable.";
|
||||
description = "VAM plugin dictionaries to use for vim_configurable.";
|
||||
};
|
||||
|
||||
programs.vim.package = mkOption {
|
||||
|
@ -70,7 +70,7 @@ in
|
|||
programs.vim.vimConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Extra vimrcConfig to use for vim_configurable.";
|
||||
description = "Extra vimrcConfig to use for vim_configurable.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -19,13 +19,13 @@ in
|
|||
programs.zsh.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to configure zsh as an interactive shell.";
|
||||
description = "Whether to configure zsh as an interactive shell.";
|
||||
};
|
||||
|
||||
programs.zsh.variables = mkOption {
|
||||
type = types.attrsOf (types.either types.str (types.listOf types.str));
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A set of environment variables used in the global environment.
|
||||
These variables will be set on shell initialisation.
|
||||
The value of each variable can be either a string or a list of
|
||||
|
@ -38,44 +38,44 @@ in
|
|||
programs.zsh.shellInit = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Shell script code called during zsh shell initialisation.";
|
||||
description = "Shell script code called during zsh shell initialisation.";
|
||||
};
|
||||
|
||||
programs.zsh.loginShellInit = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Shell script code called during zsh login shell initialisation.";
|
||||
description = "Shell script code called during zsh login shell initialisation.";
|
||||
};
|
||||
|
||||
programs.zsh.interactiveShellInit = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Shell script code called during interactive zsh shell initialisation.";
|
||||
description = "Shell script code called during interactive zsh shell initialisation.";
|
||||
};
|
||||
|
||||
programs.zsh.promptInit = mkOption {
|
||||
type = types.lines;
|
||||
default = "autoload -U promptinit && promptinit && prompt walters && setopt prompt_sp";
|
||||
description = lib.mdDoc "Shell script code used to initialise the zsh prompt.";
|
||||
description = "Shell script code used to initialise the zsh prompt.";
|
||||
};
|
||||
|
||||
programs.zsh.enableCompletion = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Enable zsh completion for all interactive zsh shells.";
|
||||
description = "Enable zsh completion for all interactive zsh shells.";
|
||||
};
|
||||
|
||||
programs.zsh.enableBashCompletion = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Enable bash completion for all interactive zsh shells.";
|
||||
description = "Enable bash completion for all interactive zsh shells.";
|
||||
};
|
||||
|
||||
programs.zsh.enableGlobalCompInit = mkOption {
|
||||
type = types.bool;
|
||||
default = cfg.enableCompletion;
|
||||
defaultText = literalExpression "config.${opt.enableCompletion}";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable execution of compinit call for all interactive zsh shells.
|
||||
|
||||
This option can be disabled if the user wants to extend its
|
||||
|
@ -87,25 +87,25 @@ in
|
|||
programs.zsh.enableFzfCompletion = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Enable fzf completion.";
|
||||
description = "Enable fzf completion.";
|
||||
};
|
||||
|
||||
programs.zsh.enableFzfGit = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Enable fzf keybindings for C-g git browsing.";
|
||||
description = "Enable fzf keybindings for C-g git browsing.";
|
||||
};
|
||||
|
||||
programs.zsh.enableFzfHistory = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Enable fzf keybinding for Ctrl-r history search.";
|
||||
description = "Enable fzf keybinding for Ctrl-r history search.";
|
||||
};
|
||||
|
||||
programs.zsh.enableSyntaxHighlighting = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Enable zsh-syntax-highlighting.";
|
||||
description = "Enable zsh-syntax-highlighting.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ in
|
|||
{
|
||||
options = {
|
||||
security.pam.enableSudoTouchIdAuth = mkEnableOption "" // {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable sudo authentication with Touch ID.
|
||||
|
||||
When enabled, this option adds the following line to
|
||||
|
|
|
@ -24,7 +24,7 @@ in
|
|||
security.pki.installCACerts = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable certificate management with nix-darwin.
|
||||
'';
|
||||
};
|
||||
|
@ -33,7 +33,7 @@ in
|
|||
type = types.listOf types.path;
|
||||
default = [];
|
||||
example = literalExpression "[ \"\${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt\" ]";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of files containing trusted root certificates in PEM
|
||||
format. These are concatenated to form
|
||||
{file}`/etc/ssl/certs/ca-certificates.crt`, which is
|
||||
|
@ -57,7 +57,7 @@ in
|
|||
'''
|
||||
]
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of trusted root certificates in PEM format.
|
||||
'';
|
||||
};
|
||||
|
@ -70,7 +70,7 @@ in
|
|||
"CA WoSign ECC Root"
|
||||
"Certification Authority of WoSign G2"
|
||||
];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of blacklisted CA certificate names that won't be imported from
|
||||
the Mozilla Trust Store into
|
||||
{file}`/etc/ssl/certs/ca-certificates.crt`. Use the
|
||||
|
|
|
@ -27,37 +27,37 @@ let
|
|||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
apply = paths: pkgs.closureInfo { rootPaths = paths; };
|
||||
description = lib.mdDoc "List of store paths to make accessible.";
|
||||
description = "List of store paths to make accessible.";
|
||||
};
|
||||
|
||||
readablePaths = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [ ];
|
||||
description = lib.mdDoc "List of paths that should be read-only inside the sandbox.";
|
||||
description = "List of paths that should be read-only inside the sandbox.";
|
||||
};
|
||||
|
||||
writablePaths = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [ ];
|
||||
description = lib.mdDoc "List of paths that should be read/write inside the sandbox.";
|
||||
description = "List of paths that should be read/write inside the sandbox.";
|
||||
};
|
||||
|
||||
allowSystemPaths = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to allow read access to FHS paths like /etc and /var.";
|
||||
description = "Whether to allow read access to FHS paths like /etc and /var.";
|
||||
};
|
||||
|
||||
allowLocalNetworking = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to allow localhost network access inside the sandbox.";
|
||||
description = "Whether to allow localhost network access inside the sandbox.";
|
||||
};
|
||||
|
||||
allowNetworking = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to allow network access inside the sandbox.";
|
||||
description = "Whether to allow network access inside the sandbox.";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -133,7 +133,7 @@ in
|
|||
security.sandbox.profiles = mkOption {
|
||||
type = types.attrsOf (types.submodule profile);
|
||||
default = { };
|
||||
description = lib.mdDoc "Definition of sandbox profiles.";
|
||||
description = "Definition of sandbox profiles.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ in
|
|||
security.sudo.extraConfig = mkOption {
|
||||
type = types.nullOr types.lines;
|
||||
default = null;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Extra configuration text appended to {file}`sudoers`.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ in
|
|||
services.activate-system.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to activate system at boot time.";
|
||||
description = "Whether to activate system at boot time.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -22,18 +22,18 @@ in
|
|||
name = mkOption {
|
||||
type = types.str;
|
||||
example = "socks-peer";
|
||||
description = lib.mdDoc "Name of the local AutoSSH session";
|
||||
description = "Name of the local AutoSSH session";
|
||||
};
|
||||
user = mkOption {
|
||||
type = types.str;
|
||||
example = "bill";
|
||||
description = lib.mdDoc "Name of the user the AutoSSH session should run as";
|
||||
description = "Name of the user the AutoSSH session should run as";
|
||||
};
|
||||
monitoringPort = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
example = 20000;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Port to be used by AutoSSH for peer monitoring. Note, that
|
||||
AutoSSH also uses mport+1. Value of 0 disables the keep-alive
|
||||
style monitoring
|
||||
|
@ -42,7 +42,7 @@ in
|
|||
extraArguments = mkOption {
|
||||
type = types.str;
|
||||
example = "-N -D4343 bill@socks.example.net";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Arguments to be passed to AutoSSH and retransmitted to SSH
|
||||
process. Some meaningful options include -N (don't run remote
|
||||
command), -D (open SOCKS proxy on local port), -R (forward
|
||||
|
@ -54,7 +54,7 @@ in
|
|||
});
|
||||
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of AutoSSH sessions to start as systemd services. Each service is
|
||||
named 'autossh-{session.name}'.
|
||||
'';
|
||||
|
|
|
@ -4,14 +4,13 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = config.services.buildkite-agents;
|
||||
mdDoc = lib.mdDoc or (x: "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
|
||||
literalMD = lib.literalMD or (x: lib.literalDocBook "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
|
||||
|
||||
mkHookOption = { name, description, example ? null }: {
|
||||
inherit name;
|
||||
value = mkOption {
|
||||
default = null;
|
||||
description = mdDoc description;
|
||||
description = description;
|
||||
type = types.nullOr types.lines;
|
||||
} // (if example == null then {} else { inherit example; });
|
||||
};
|
||||
|
@ -36,32 +35,32 @@ let
|
|||
enable = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
description = mdDoc "Whether to enable this buildkite agent";
|
||||
description = "Whether to enable this buildkite agent";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.buildkite-agent;
|
||||
defaultText = literalExpression "pkgs.buildkite-agent";
|
||||
description = mdDoc "Which buildkite-agent derivation to use";
|
||||
description = "Which buildkite-agent derivation to use";
|
||||
type = types.package;
|
||||
};
|
||||
|
||||
dataDir = mkOption {
|
||||
default = "/var/lib/buildkite-agent-${name}";
|
||||
description = mdDoc "The workdir for the agent";
|
||||
description = "The workdir for the agent";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
runtimePackages = mkOption {
|
||||
default = [ pkgs.bash pkgs.gnutar pkgs.gzip pkgs.git pkgs.nix ];
|
||||
defaultText = literalExpression "[ pkgs.bash pkgs.gnutar pkgs.gzip pkgs.git pkgs.nix ]";
|
||||
description = mdDoc "Add programs to the buildkite-agent environment";
|
||||
description = "Add programs to the buildkite-agent environment";
|
||||
type = types.listOf (types.either types.package types.path);
|
||||
};
|
||||
|
||||
tokenPath = mkOption {
|
||||
type = types.path;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
The token from your Buildkite "Agents" page.
|
||||
|
||||
A run-time path to the token file, which is supposed to be provisioned
|
||||
|
@ -72,7 +71,7 @@ let
|
|||
name = mkOption {
|
||||
type = types.str;
|
||||
default = "%hostname-${name}-%n";
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
The name of the agent as seen in the buildkite dashboard.
|
||||
'';
|
||||
};
|
||||
|
@ -81,7 +80,7 @@ let
|
|||
type = types.attrsOf (types.either types.str (types.listOf types.str));
|
||||
default = {};
|
||||
example = { queue = "default"; docker = "true"; ruby2 ="true"; };
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Tags for the agent.
|
||||
'';
|
||||
};
|
||||
|
@ -90,7 +89,7 @@ let
|
|||
type = types.lines;
|
||||
default = "";
|
||||
example = "debug=true";
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Extra lines to be added verbatim to the configuration file.
|
||||
'';
|
||||
};
|
||||
|
@ -98,7 +97,7 @@ let
|
|||
preCommands = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Extra commands to run before starting buildkite.
|
||||
'';
|
||||
};
|
||||
|
@ -110,7 +109,7 @@ let
|
|||
## don't end up in the Nix store.
|
||||
apply = final: if final == null then null else toString final;
|
||||
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
OpenSSH private key
|
||||
|
||||
A run-time path to the key file, which is supposed to be provisioned
|
||||
|
@ -179,7 +178,7 @@ let
|
|||
type = types.path;
|
||||
default = hooksDir config;
|
||||
defaultText = literalMD "generated from {option}`services.buildkite-agents.<name>.hooks`";
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Path to the directory storing the hooks.
|
||||
Consider using {option}`services.buildkite-agents.<name>.hooks.<name>`
|
||||
instead.
|
||||
|
@ -190,7 +189,7 @@ let
|
|||
type = types.str;
|
||||
default = "${pkgs.bash}/bin/bash -e -c";
|
||||
defaultText = literalExpression ''"''${pkgs.bash}/bin/bash -e -c"'';
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Command that buildkite-agent 3 will execute when it spawns a shell.
|
||||
'';
|
||||
};
|
||||
|
@ -203,7 +202,7 @@ in
|
|||
options.services.buildkite-agents = mkOption {
|
||||
type = types.attrsOf (types.submodule buildkiteOptions);
|
||||
default = {};
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Attribute set of buildkite agents.
|
||||
The attribute key is combined with the hostname and a unique integer to
|
||||
create the final agent name. This can be overridden by setting the `name`
|
||||
|
|
|
@ -9,7 +9,7 @@ in {
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable to run Cachix Agent as a system service.
|
||||
|
||||
Read [Cachix Deploy](https://docs.cachix.org/deploy/) documentation for more information.
|
||||
|
@ -19,13 +19,13 @@ in {
|
|||
name = mkOption {
|
||||
type = types.str;
|
||||
default = config.networking.hostName;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Agent name, usually the same as the hostname.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Package containing cachix executable.
|
||||
'';
|
||||
type = types.package;
|
||||
|
@ -36,7 +36,7 @@ in {
|
|||
credentialsFile = mkOption {
|
||||
type = types.path;
|
||||
default = "/etc/cachix-agent.token";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Required file that needs to contain:
|
||||
|
||||
export CACHIX_AGENT_TOKEN=...
|
||||
|
@ -46,7 +46,7 @@ in {
|
|||
logFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = "/var/log/cachix-agent.log";
|
||||
description = lib.mdDoc "Absolute path to log all stderr and stdout";
|
||||
description = "Absolute path to log all stderr and stdout";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -12,51 +12,51 @@ in
|
|||
services.chunkwm.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the chunkwm window manager.";
|
||||
description = "Whether to enable the chunkwm window manager.";
|
||||
};
|
||||
|
||||
services.chunkwm.package = mkOption {
|
||||
type = types.package;
|
||||
example = literalExpression "pkgs.chunkwm";
|
||||
description = lib.mdDoc "This option specifies the chunkwm package to use.";
|
||||
description = "This option specifies the chunkwm package to use.";
|
||||
};
|
||||
|
||||
services.chunkwm.hotload = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to enable hotload.";
|
||||
description = "Whether to enable hotload.";
|
||||
};
|
||||
|
||||
services.chunkwm.extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
example = ''chunkc tiling::rule --owner Emacs --state tile'';
|
||||
description = lib.mdDoc "Additional commands for {file}`chunkwmrc`.";
|
||||
description = "Additional commands for {file}`chunkwmrc`.";
|
||||
};
|
||||
|
||||
services.chunkwm.plugins.dir = mkOption {
|
||||
type = types.path;
|
||||
default = "/run/current-system/sw/lib/chunkwm/plugins";
|
||||
description = lib.mdDoc "Chunkwm Plugins directory.";
|
||||
description = "Chunkwm Plugins directory.";
|
||||
};
|
||||
|
||||
services.chunkwm.plugins.list = mkOption {
|
||||
type = types.listOf (types.enum plugins);
|
||||
default = plugins;
|
||||
example = ["tiling"];
|
||||
description = lib.mdDoc "Chunkwm Plugins to enable.";
|
||||
description = "Chunkwm Plugins to enable.";
|
||||
};
|
||||
|
||||
services.chunkwm.plugins."border".config = mkOption {
|
||||
type = types.lines;
|
||||
default = ''chunkc set focused_border_color 0xffc0b18b'';
|
||||
description = lib.mdDoc "Optional border plugin configuration.";
|
||||
description = "Optional border plugin configuration.";
|
||||
};
|
||||
|
||||
services.chunkwm.plugins."tiling".config = mkOption {
|
||||
type = types.lines;
|
||||
example = ''chunkc set global_desktop_mode bsp'';
|
||||
description = lib.mdDoc "Optional tiling plugin configuration.";
|
||||
description = "Optional tiling plugin configuration.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -12,32 +12,32 @@ in
|
|||
services.dnsmasq.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable DNSmasq.";
|
||||
description = "Whether to enable DNSmasq.";
|
||||
};
|
||||
|
||||
services.dnsmasq.package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.dnsmasq;
|
||||
defaultText = "pkgs.dnsmasq";
|
||||
description = lib.mdDoc "This option specifies the dnsmasq package to use.";
|
||||
description = "This option specifies the dnsmasq package to use.";
|
||||
};
|
||||
|
||||
services.dnsmasq.bind = mkOption {
|
||||
type = types.str;
|
||||
default = "127.0.0.1";
|
||||
description = lib.mdDoc "This option specifies the interface on which DNSmasq will listen.";
|
||||
description = "This option specifies the interface on which DNSmasq will listen.";
|
||||
};
|
||||
|
||||
services.dnsmasq.port = mkOption {
|
||||
type = types.int;
|
||||
default = 53;
|
||||
description = lib.mdDoc "This option specifies port on which DNSmasq will listen.";
|
||||
description = "This option specifies port on which DNSmasq will listen.";
|
||||
};
|
||||
|
||||
services.dnsmasq.addresses = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
description = lib.mdDoc "List of domains that will be redirected by the DNSmasq.";
|
||||
description = "List of domains that will be redirected by the DNSmasq.";
|
||||
example = literalExpression ''
|
||||
{ localhost = "127.0.0.1"; }
|
||||
'';
|
||||
|
|
|
@ -12,20 +12,20 @@ in {
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the Emacs Daemon.";
|
||||
description = "Whether to enable the Emacs Daemon.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.emacs;
|
||||
description = lib.mdDoc "This option specifies the emacs package to use.";
|
||||
description = "This option specifies the emacs package to use.";
|
||||
};
|
||||
|
||||
additionalPath = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "/Users/my_user_name" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option specifies additional PATH that the emacs daemon would have.
|
||||
Typically if you have binaries in your home directory that is what you would add your home path here.
|
||||
One caveat is that there won't be shell variable expansion, so you can't use $HOME for example
|
||||
|
@ -35,7 +35,7 @@ in {
|
|||
exec = mkOption {
|
||||
type = types.str;
|
||||
default = "emacs";
|
||||
description = lib.mdDoc "Emacs command/binary to execute.";
|
||||
description = "Emacs command/binary to execute.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -7,20 +7,20 @@ in {
|
|||
options = {
|
||||
services.eternal-terminal = {
|
||||
|
||||
enable = mkEnableOption (lib.mdDoc "Eternal Terminal server");
|
||||
enable = mkEnableOption "Eternal Terminal server";
|
||||
|
||||
package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.eternal-terminal;
|
||||
defaultText = "pkgs.eternal-terminal";
|
||||
description = lib.mdDoc
|
||||
description =
|
||||
"This option specifies the eternal-terminal package to use.";
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
default = 2022;
|
||||
type = types.port;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The port the server should listen on. Will use the server's default (2022) if not specified.
|
||||
|
||||
Make sure to open this port in the firewall if necessary.
|
||||
|
@ -30,7 +30,7 @@ in {
|
|||
verbosity = mkOption {
|
||||
default = 0;
|
||||
type = types.enum (lib.range 0 9);
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The verbosity level (0-9).
|
||||
'';
|
||||
};
|
||||
|
@ -38,7 +38,7 @@ in {
|
|||
silent = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If enabled, disables all logging.
|
||||
'';
|
||||
};
|
||||
|
@ -46,7 +46,7 @@ in {
|
|||
logSize = mkOption {
|
||||
default = 20971520;
|
||||
type = types.int;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The maximum log size.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
with lib;
|
||||
{
|
||||
options.services.github-runners = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Multiple GitHub Runners.
|
||||
|
||||
If `user` and `group` are set to `null`, the module will configure nix-darwin to
|
||||
|
@ -50,7 +50,7 @@ with lib;
|
|||
enable = mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Whether to enable GitHub Actions runner.
|
||||
|
||||
Note: GitHub recommends using self-hosted runners with private repositories only. Learn more here:
|
||||
|
@ -61,7 +61,7 @@ with lib;
|
|||
|
||||
url = mkOption {
|
||||
type = types.str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Repository to add the runner to.
|
||||
|
||||
Changing this option triggers a new runner registration.
|
||||
|
@ -79,7 +79,7 @@ with lib;
|
|||
|
||||
tokenFile = mkOption {
|
||||
type = types.path;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
The full path to a file which contains either
|
||||
|
||||
* a fine-grained personal access token (PAT),
|
||||
|
@ -122,7 +122,7 @@ with lib;
|
|||
|
||||
name = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Name of the runner to configure. If null, defaults to the hostname.
|
||||
|
||||
Changing this option triggers a new runner registration.
|
||||
|
@ -133,7 +133,7 @@ with lib;
|
|||
|
||||
runnerGroup = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Name of the runner group to add this runner to (defaults to the default runner group).
|
||||
|
||||
Changing this option triggers a new runner registration.
|
||||
|
@ -143,7 +143,7 @@ with lib;
|
|||
|
||||
extraLabels = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Extra labels in addition to the default (unless disabled through the `noDefaultLabels` option).
|
||||
|
||||
Changing this option triggers a new runner registration.
|
||||
|
@ -154,7 +154,7 @@ with lib;
|
|||
|
||||
noDefaultLabels = mkOption {
|
||||
type = types.bool;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Disables adding the default labels. Also see the `extraLabels` option.
|
||||
|
||||
Changing this option triggers a new runner registration.
|
||||
|
@ -164,7 +164,7 @@ with lib;
|
|||
|
||||
replace = mkOption {
|
||||
type = types.bool;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Replace any existing runner with the same name.
|
||||
|
||||
Without this flag, registering a new runner with the same name fails.
|
||||
|
@ -174,7 +174,7 @@ with lib;
|
|||
|
||||
extraPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Extra packages to add to `PATH` of the service to make them available to workflows.
|
||||
'';
|
||||
default = [ ];
|
||||
|
@ -182,7 +182,7 @@ with lib;
|
|||
|
||||
extraEnvironment = mkOption {
|
||||
type = types.attrs;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Extra environment variables to set for the runner, as an attrset.
|
||||
'';
|
||||
example = {
|
||||
|
@ -193,7 +193,7 @@ with lib;
|
|||
|
||||
serviceOverrides = mkOption {
|
||||
type = types.attrs;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Modify the service. Can be used to, e.g., adjust the sandboxing options.
|
||||
'';
|
||||
default = { };
|
||||
|
@ -203,7 +203,7 @@ with lib;
|
|||
|
||||
ephemeral = mkOption {
|
||||
type = types.bool;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
If enabled, causes the following behavior:
|
||||
|
||||
- Passes the `--ephemeral` flag to the runner configuration script
|
||||
|
@ -222,7 +222,7 @@ with lib;
|
|||
|
||||
user = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
User under which to run the service.
|
||||
|
||||
If this option and the `group` option is set to `null`, nix-darwin creates
|
||||
|
@ -234,7 +234,7 @@ with lib;
|
|||
|
||||
group = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Group under which to run the service.
|
||||
|
||||
If this option and the `user` option is set to `null`, nix-darwin creates
|
||||
|
@ -246,7 +246,7 @@ with lib;
|
|||
|
||||
workDir = mkOption {
|
||||
type = with types; nullOr str;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Working directory, available as `$GITHUB_WORKSPACE` during workflow runs
|
||||
and used as a default for [repository checkouts](https://github.com/actions/checkout).
|
||||
The service cleans this directory on every service start.
|
||||
|
@ -259,7 +259,7 @@ with lib;
|
|||
nodeRuntimes = mkOption {
|
||||
type = with types; nonEmptyListOf (enum [ "node20" ]);
|
||||
default = [ "node20" ];
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
List of Node.js runtimes the runner should support.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -117,11 +117,11 @@ let
|
|||
in
|
||||
{
|
||||
options.services.gitlab-runner = {
|
||||
enable = mkEnableOption (lib.mdDoc "Gitlab Runner");
|
||||
enable = mkEnableOption "Gitlab Runner";
|
||||
configFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configuration file for gitlab-runner.
|
||||
|
||||
{option}`configFile` takes precedence over {option}`services`.
|
||||
|
@ -137,7 +137,7 @@ in
|
|||
type = types.int;
|
||||
default = 0;
|
||||
example = literalExpression "with lib; (length (attrNames config.services.gitlab-runner.services)) * 3";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Defines the interval length, in seconds, between new jobs check.
|
||||
The default value is 3;
|
||||
if set to 0 or lower, the default value will be used.
|
||||
|
@ -148,7 +148,7 @@ in
|
|||
type = types.int;
|
||||
default = 1;
|
||||
example = literalExpression "config.nix.maxJobs";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Limits how many jobs globally can be run concurrently.
|
||||
The most upper limit of jobs using all defined runners.
|
||||
0 does not mean unlimited.
|
||||
|
@ -158,7 +158,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "https://public:private@host:port/1";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Data Source Name for tracking of all system level errors to Sentry.
|
||||
'';
|
||||
};
|
||||
|
@ -166,7 +166,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "localhost:8080";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Address (<host>:<port>) on which the Prometheus metrics HTTP server
|
||||
should be listening.
|
||||
'';
|
||||
|
@ -178,7 +178,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "0.0.0.0:8093";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
An internal URL to be used for the session server.
|
||||
'';
|
||||
};
|
||||
|
@ -186,7 +186,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "runner-host-name.tld:8093";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The URL that the Runner will expose to GitLab to be used
|
||||
to access the session server.
|
||||
Fallbacks to {option}`listenAddress` if not defined.
|
||||
|
@ -195,7 +195,7 @@ in
|
|||
sessionTimeout = mkOption {
|
||||
type = types.int;
|
||||
default = 1800;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
How long in seconds the session can stay active after
|
||||
the job completes (which will block the job from finishing).
|
||||
'';
|
||||
|
@ -208,7 +208,7 @@ in
|
|||
listenAddress = "0.0.0.0:8093";
|
||||
}
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The session server allows the user to interact with jobs
|
||||
that the Runner is responsible for. A good example of this is the
|
||||
[interactive web terminal](https://docs.gitlab.com/ee/ci/interactive_web_terminal/index.html).
|
||||
|
@ -217,7 +217,7 @@ in
|
|||
gracefulTermination = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Finish all remaining jobs before stopping.
|
||||
If not set gitlab-runner will stop immediatly without waiting
|
||||
for jobs to finish, which will lead to failed builds.
|
||||
|
@ -227,7 +227,7 @@ in
|
|||
type = types.str;
|
||||
default = "infinity";
|
||||
example = "5min 20s";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Time to wait until a graceful shutdown is turned into a forceful one.
|
||||
'';
|
||||
};
|
||||
|
@ -236,17 +236,17 @@ in
|
|||
default = pkgs.gitlab-runner;
|
||||
defaultText = "pkgs.gitlab-runner";
|
||||
example = literalExpression "pkgs.gitlab-runner_1_11";
|
||||
description = lib.mdDoc "Gitlab Runner package to use.";
|
||||
description = "Gitlab Runner package to use.";
|
||||
};
|
||||
extraPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Extra packages to add to PATH for the gitlab-runner process.
|
||||
'';
|
||||
};
|
||||
services = mkOption {
|
||||
description = lib.mdDoc "GitLab Runner services.";
|
||||
description = "GitLab Runner services.";
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
|
@ -328,7 +328,7 @@ in
|
|||
options = {
|
||||
registrationConfigFile = mkOption {
|
||||
type = types.path;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Absolute path to a file with environment variables
|
||||
used for gitlab-runner registration.
|
||||
A list of all supported environment variables can be found in
|
||||
|
@ -345,7 +345,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "--docker-helper-image my/gitlab-runner-helper" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Extra command-line flags passed to
|
||||
`gitlab-runner register`.
|
||||
Execute `gitlab-runner register --help`
|
||||
|
@ -356,7 +356,7 @@ in
|
|||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
example = { NAME = "value"; };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Custom environment variables injected to build environment.
|
||||
For secrets you can use {option}`registrationConfigFile`
|
||||
with `RUNNER_ENV` variable set.
|
||||
|
@ -365,7 +365,7 @@ in
|
|||
executor = mkOption {
|
||||
type = types.str;
|
||||
default = "docker";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Select executor, eg. shell, docker, etc.
|
||||
See [runner documentation](https://docs.gitlab.com/runner/executors/README.html) for more information.
|
||||
'';
|
||||
|
@ -374,7 +374,7 @@ in
|
|||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/var/lib/gitlab-runner/builds";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Absolute path to a directory where builds will be stored
|
||||
in context of selected executor (Locally, Docker, SSH).
|
||||
'';
|
||||
|
@ -383,14 +383,14 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "http://gitlab.example.local";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Overwrite the URL for the GitLab instance. Used if the Runner can’t connect to GitLab on the URL GitLab exposes itself.
|
||||
'';
|
||||
};
|
||||
dockerImage = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Docker image to be used.
|
||||
'';
|
||||
};
|
||||
|
@ -398,7 +398,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "/var/run/docker.sock:/var/run/docker.sock" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Bind-mount a volume and create it
|
||||
if it doesn't exist prior to mounting.
|
||||
'';
|
||||
|
@ -406,14 +406,14 @@ in
|
|||
dockerDisableCache = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Disable all container caching.
|
||||
'';
|
||||
};
|
||||
dockerPrivileged = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Give extended privileges to container.
|
||||
'';
|
||||
};
|
||||
|
@ -421,7 +421,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "other-host:127.0.0.1" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Add a custom host-to-IP mapping.
|
||||
'';
|
||||
};
|
||||
|
@ -429,7 +429,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "ruby:*" "python:*" "php:*" "my.registry.tld:5000/*:*" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whitelist allowed images.
|
||||
'';
|
||||
};
|
||||
|
@ -437,21 +437,21 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "postgres:9" "redis:*" "mysql:*" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whitelist allowed services.
|
||||
'';
|
||||
};
|
||||
preCloneScript = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Runner-specific command script executed before code is pulled.
|
||||
'';
|
||||
};
|
||||
preBuildScript = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Runner-specific command script executed after code is pulled,
|
||||
just before build executes.
|
||||
'';
|
||||
|
@ -459,7 +459,7 @@ in
|
|||
postBuildScript = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Runner-specific command script executed after code is pulled
|
||||
and just after build executes.
|
||||
'';
|
||||
|
@ -467,14 +467,14 @@ in
|
|||
tagList = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Tag list.
|
||||
'';
|
||||
};
|
||||
runUntagged = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Register to run untagged builds; defaults to
|
||||
`true` when {option}`tagList` is empty.
|
||||
'';
|
||||
|
@ -482,7 +482,7 @@ in
|
|||
limit = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Limit how many jobs can be handled concurrently by this service.
|
||||
0 (default) simply means don't limit.
|
||||
'';
|
||||
|
@ -490,14 +490,14 @@ in
|
|||
requestConcurrency = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Limit number of concurrent requests for new jobs from GitLab.
|
||||
'';
|
||||
};
|
||||
maximumTimeout = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
What is the maximum timeout (in seconds) that will be set for
|
||||
job when using this Runner. 0 (default) simply means don't limit.
|
||||
'';
|
||||
|
@ -505,7 +505,7 @@ in
|
|||
protected = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
When set to true Runner will only run on pipelines
|
||||
triggered on protected branches.
|
||||
'';
|
||||
|
@ -513,7 +513,7 @@ in
|
|||
debugTraceDisabled = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
When set to true Runner will disable the possibility of
|
||||
using the `CI_DEBUG_TRACE` feature.
|
||||
'';
|
||||
|
|
|
@ -18,7 +18,6 @@ let
|
|||
types
|
||||
;
|
||||
literalMD = lib.literalMD or (x: lib.literalDocBook "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
|
||||
mdDoc = lib.mdDoc or (x: "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
|
||||
|
||||
cfg = config.services.hercules-ci-agent;
|
||||
|
||||
|
@ -37,7 +36,7 @@ in
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Enable to run Hercules CI Agent as a system service.
|
||||
|
||||
[Hercules CI](https://hercules-ci.com) is a
|
||||
|
@ -47,7 +46,7 @@ in
|
|||
'';
|
||||
};
|
||||
package = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Package containing the bin/hercules-ci-agent executable.
|
||||
'';
|
||||
type = types.package;
|
||||
|
@ -55,7 +54,7 @@ in
|
|||
defaultText = literalExpression "pkgs.hercules-ci-agent";
|
||||
};
|
||||
settings = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
These settings are written to the `agent.toml` file.
|
||||
|
||||
Not all settings are listed as options, can be set nonetheless.
|
||||
|
@ -75,7 +74,7 @@ in
|
|||
type = types.path;
|
||||
internal = true;
|
||||
defaultText = literalMD "generated `hercules-ci-agent.toml`";
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
The fully assembled config file.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -17,7 +17,7 @@ in
|
|||
logFile = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/log/hercules-ci-agent.log";
|
||||
description = lib.mdDoc "Stdout and sterr of hercules-ci-agent process.";
|
||||
description = "Stdout and sterr of hercules-ci-agent process.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ let
|
|||
mkOption
|
||||
;
|
||||
literalMD = lib.literalMD or (x: lib.literalDocBook "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
|
||||
mdDoc = lib.mdDoc or (x: "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
|
||||
|
||||
format = pkgs.formats.toml { };
|
||||
|
||||
|
@ -15,7 +14,7 @@ let
|
|||
freeformType = format.type;
|
||||
options = {
|
||||
apiBaseUrl = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
API base URL that the agent will connect to.
|
||||
|
||||
When using Hercules CI Enterprise, set this to the URL where your
|
||||
|
@ -27,12 +26,12 @@ let
|
|||
baseDirectory = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/lib/hercules-ci-agent";
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
State directory (secrets, work directory, etc) for agent
|
||||
'';
|
||||
};
|
||||
concurrentTasks = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Number of tasks to perform simultaneously.
|
||||
|
||||
A task is a single derivation build, an evaluation or an effect run.
|
||||
|
@ -56,7 +55,7 @@ let
|
|||
'';
|
||||
};
|
||||
labels = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
A key-value map of user data.
|
||||
|
||||
This data will be available to organization members in the dashboard and API.
|
||||
|
@ -75,7 +74,7 @@ let
|
|||
'';
|
||||
};
|
||||
workDirectory = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
The directory in which temporary subdirectories are created for task state. This includes sources for Nix evaluation.
|
||||
'';
|
||||
type = types.path;
|
||||
|
@ -83,7 +82,7 @@ let
|
|||
defaultText = literalExpression ''baseDirectory + "/work"'';
|
||||
};
|
||||
staticSecretsDirectory = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
This is the default directory to look for statically configured secrets like `cluster-join-token.key`.
|
||||
|
||||
See also `clusterJoinTokenPath` and `binaryCachesPath` for fine-grained configuration.
|
||||
|
@ -93,7 +92,7 @@ let
|
|||
defaultText = literalExpression ''baseDirectory + "/secrets"'';
|
||||
};
|
||||
clusterJoinTokenPath = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Location of the cluster-join-token.key file.
|
||||
|
||||
You can retrieve the contents of the file when creating a new agent via
|
||||
|
@ -110,7 +109,7 @@ let
|
|||
defaultText = literalExpression ''staticSecretsDirectory + "/cluster-join-token.key"'';
|
||||
};
|
||||
binaryCachesPath = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Path to a JSON file containing binary cache secret keys.
|
||||
|
||||
As these values are confidential, they should not be in the store, but
|
||||
|
@ -124,7 +123,7 @@ let
|
|||
defaultText = literalExpression ''staticSecretsDirectory + "/binary-caches.json"'';
|
||||
};
|
||||
secretsJsonPath = mkOption {
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Path to a JSON file containing secrets for effects.
|
||||
|
||||
As these values are confidential, they should not be in the store, but
|
||||
|
|
|
@ -14,14 +14,14 @@ in
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the ipfs daemon.";
|
||||
description = "Whether to enable the ipfs daemon.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.kubo;
|
||||
# defaultText = "pkgs.kubo";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The ipfs package to use.
|
||||
'';
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ in
|
|||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/var/tmp/ipfs.log";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The logfile to use for the ipfs service. Alternatively
|
||||
{command}`sudo launchctl debug system/org.nixos.ipfs --stderr`
|
||||
can be used to stream the logs to a shell after restarting the service with
|
||||
|
@ -41,13 +41,13 @@ in
|
|||
ipfsPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc "Set the IPFS_PATH environment variable.";
|
||||
description = "Set the IPFS_PATH environment variable.";
|
||||
};
|
||||
|
||||
enableGarbageCollection = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Passes --enable-gc flag to ipfs daemon.";
|
||||
description = "Passes --enable-gc flag to ipfs daemon.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ in
|
|||
|
||||
{
|
||||
options = {
|
||||
services.karabiner-elements.enable = mkEnableOption (lib.mdDoc "Karabiner-Elements");
|
||||
services.karabiner-elements.enable = mkEnableOption "Karabiner-Elements";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
@ -13,27 +13,27 @@ in
|
|||
services.khd.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the khd hotkey daemon.";
|
||||
description = "Whether to enable the khd hotkey daemon.";
|
||||
};
|
||||
|
||||
services.khd.package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.khd;
|
||||
defaultText = "pkgs.khd";
|
||||
description = lib.mdDoc "This option specifies the khd package to use.";
|
||||
description = "This option specifies the khd package to use.";
|
||||
};
|
||||
|
||||
services.khd.khdConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
example = "alt + shift - r : kwmc quit";
|
||||
description = lib.mdDoc "Config to use for {file}`khdrc`.";
|
||||
description = "Config to use for {file}`khdrc`.";
|
||||
};
|
||||
|
||||
services.khd.i3Keybindings = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Wether to configure i3 style keybindings for kwm.";
|
||||
description = "Wether to configure i3 style keybindings for kwm.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -11,21 +11,21 @@ in
|
|||
services.kwm.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the khd window manager.";
|
||||
description = "Whether to enable the khd window manager.";
|
||||
};
|
||||
|
||||
services.kwm.package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.kwm;
|
||||
defaultText = "pkgs.kwm";
|
||||
description = lib.mdDoc "This option specifies the kwm package to use.";
|
||||
description = "This option specifies the kwm package to use.";
|
||||
};
|
||||
|
||||
services.kwm.kwmConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
example = ''kwmc rule owner="iTerm2" properties={role="AXDialog"}'';
|
||||
description = lib.mdDoc "Config to use for {file}`kwmrc`.";
|
||||
description = "Config to use for {file}`kwmrc`.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -11,14 +11,14 @@ in
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the lorri service.";
|
||||
description = "Whether to enable the lorri service.";
|
||||
};
|
||||
|
||||
logFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/var/tmp/lorri.log";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The logfile to use for the lorri service. Alternatively
|
||||
{command}`sudo launchctl debug system/org.nixos.lorri --stderr`
|
||||
can be used to stream the logs to a shell after restarting the service with
|
||||
|
|
|
@ -7,32 +7,32 @@ let
|
|||
in {
|
||||
|
||||
options.services.offlineimap = {
|
||||
enable = mkEnableOption (lib.mdDoc "Offlineimap, a software to dispose your mailbox(es) as a local Maildir(s)");
|
||||
enable = mkEnableOption "Offlineimap, a software to dispose your mailbox(es) as a local Maildir(s)";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.offlineimap;
|
||||
defaultText = "pkgs.offlineimap";
|
||||
description = lib.mdDoc "Offlineimap derivation to use.";
|
||||
description = "Offlineimap derivation to use.";
|
||||
};
|
||||
|
||||
path = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [];
|
||||
example = literalExpression "[ pkgs.pass pkgs.bash pkgs.notmuch ]";
|
||||
description = lib.mdDoc "List of derivations to put in Offlineimap's path.";
|
||||
description = "List of derivations to put in Offlineimap's path.";
|
||||
};
|
||||
|
||||
startInterval = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = 300;
|
||||
description = lib.mdDoc "Optional key to start offlineimap services each N seconds";
|
||||
description = "Optional key to start offlineimap services each N seconds";
|
||||
};
|
||||
|
||||
runQuick = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Run only quick synchronizations.
|
||||
Ignore any flag updates on IMAP servers. If a flag on the remote IMAP changes, and we have the message locally, it will be left untouched in a quick run.
|
||||
'';
|
||||
|
@ -41,7 +41,7 @@ in {
|
|||
extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Additional text to be appended to {file}`offlineimaprc`.";
|
||||
description = "Additional text to be appended to {file}`offlineimaprc`.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -10,12 +10,12 @@ let
|
|||
in {
|
||||
options = {
|
||||
services.telegraf = {
|
||||
enable = mkEnableOption (lib.mdDoc "telegraf agent");
|
||||
enable = mkEnableOption "telegraf agent";
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.telegraf;
|
||||
defaultText = lib.literalExpression "pkgs.telegraf";
|
||||
description = lib.mdDoc "Which telegraf derivation to use";
|
||||
description = "Which telegraf derivation to use";
|
||||
type = types.package;
|
||||
};
|
||||
|
||||
|
@ -23,7 +23,7 @@ in {
|
|||
type = types.listOf types.path;
|
||||
default = [ ];
|
||||
example = [ "/run/keys/telegraf.env" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
File to load as environment file.
|
||||
This is useful to avoid putting secrets into the nix store.
|
||||
'';
|
||||
|
@ -31,7 +31,7 @@ in {
|
|||
|
||||
extraConfig = mkOption {
|
||||
default = { };
|
||||
description = lib.mdDoc "Extra configuration options for telegraf";
|
||||
description = "Extra configuration options for telegraf";
|
||||
type = settingsFormat.type;
|
||||
example = {
|
||||
outputs.influxdb = {
|
||||
|
@ -47,7 +47,7 @@ in {
|
|||
|
||||
configUrl = mkOption {
|
||||
default = null;
|
||||
description = lib.mdDoc "Url to fetch config from";
|
||||
description = "Url to fetch config from";
|
||||
type = types.nullOr types.str;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,27 +11,27 @@ in
|
|||
services.mopidy.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the Mopidy Daemon.";
|
||||
description = "Whether to enable the Mopidy Daemon.";
|
||||
};
|
||||
|
||||
services.mopidy.package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.mopidy;
|
||||
defaultText = "pkgs.mopidy";
|
||||
description = lib.mdDoc "This option specifies the mopidy package to use.";
|
||||
description = "This option specifies the mopidy package to use.";
|
||||
};
|
||||
|
||||
services.mopidy.mediakeys.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the Mopidy OSX Media Keys support daemon.";
|
||||
description = "Whether to enable the Mopidy OSX Media Keys support daemon.";
|
||||
};
|
||||
|
||||
services.mopidy.mediakeys.package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.pythonPackages.osxmpdkeys;
|
||||
defaultText = "pkgs.pythonPackages.osxmpdkeys";
|
||||
description = lib.mdDoc "This option specifies the mediakeys package to use.";
|
||||
description = "This option specifies the mediakeys package to use.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@ let
|
|||
in
|
||||
{
|
||||
options.services.netbird = {
|
||||
enable = mkEnableOption (lib.mdDoc "Netbird daemon");
|
||||
enable = mkEnableOption "Netbird daemon";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.netbird;
|
||||
defaultText = literalExpression "pkgs.netbird";
|
||||
description = lib.mdDoc "The package to use for netbird";
|
||||
description = "The package to use for netbird";
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
@ -13,13 +13,13 @@ in {
|
|||
type = types.bool;
|
||||
default = false;
|
||||
description =
|
||||
lib.mdDoc "Whether to enable the NextDNS DNS/53 to DoH Proxy service.";
|
||||
"Whether to enable the NextDNS DNS/53 to DoH Proxy service.";
|
||||
};
|
||||
arguments = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "-config" "10.0.3.0/24=abcdef" ];
|
||||
description = lib.mdDoc "Additional arguments to be passed to nextdns run.";
|
||||
description = "Additional arguments to be passed to nextdns run.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,20 +11,20 @@ in
|
|||
services.nix-daemon.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the nix-daemon service.";
|
||||
description = "Whether to enable the nix-daemon service.";
|
||||
};
|
||||
|
||||
services.nix-daemon.enableSocketListener = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to make the nix-daemon service socket activated.";
|
||||
description = "Whether to make the nix-daemon service socket activated.";
|
||||
};
|
||||
|
||||
services.nix-daemon.logFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/var/log/nix-daemon.log";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The logfile to use for the nix-daemon service. Alternatively
|
||||
{command}`sudo launchctl debug system/org.nixos.nix-daemon --stderr`
|
||||
can be used to stream the logs to a shell after restarting the service with
|
||||
|
@ -35,7 +35,7 @@ in
|
|||
services.nix-daemon.tempDir = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc "The TMPDIR to use for nix-daemon.";
|
||||
description = "The TMPDIR to use for nix-daemon.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -24,27 +24,27 @@ in
|
|||
automatic = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = lib.mdDoc "Automatically run the garbage collector at a specific time.";
|
||||
description = "Automatically run the garbage collector at a specific time.";
|
||||
};
|
||||
|
||||
# Not in NixOS module
|
||||
user = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc "User that runs the garbage collector.";
|
||||
description = "User that runs the garbage collector.";
|
||||
};
|
||||
|
||||
interval = mkOption {
|
||||
type = types.attrs;
|
||||
default = { Hour = 3; Minute = 15; };
|
||||
description = lib.mdDoc "The time interval at which the garbage collector will run.";
|
||||
description = "The time interval at which the garbage collector will run.";
|
||||
};
|
||||
|
||||
options = mkOption {
|
||||
default = "";
|
||||
example = "--max-freed $((64 * 1024**3))";
|
||||
type = types.str;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Options given to {file}`nix-collect-garbage` when the
|
||||
garbage collector is run automatically.
|
||||
'';
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
let
|
||||
inherit (lib)
|
||||
mdDoc
|
||||
mkIf
|
||||
mkOption
|
||||
mkRemovedOptionModule
|
||||
|
@ -31,20 +30,20 @@ in
|
|||
automatic = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = mdDoc "Automatically run the nix store optimiser at a specific time.";
|
||||
description = "Automatically run the nix store optimiser at a specific time.";
|
||||
};
|
||||
|
||||
# Not in NixOS module
|
||||
user = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = mdDoc "User that runs the store optimisation.";
|
||||
description = "User that runs the store optimisation.";
|
||||
};
|
||||
|
||||
interval = mkOption {
|
||||
type = types.attrs;
|
||||
default = { Hour = 3; Minute = 15; };
|
||||
description = mdDoc "The time interval at which the optimiser will run.";
|
||||
description = "The time interval at which the optimiser will run.";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
@ -12,13 +12,13 @@ in
|
|||
services.ofborg.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the ofborg builder service.";
|
||||
description = "Whether to enable the ofborg builder service.";
|
||||
};
|
||||
|
||||
services.ofborg.package = mkOption {
|
||||
type = types.package;
|
||||
example = literalExpression "pkgs.ofborg";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option specifies the ofborg package to use. eg.
|
||||
|
||||
(import <ofborg> {}).ofborg.rs
|
||||
|
@ -30,7 +30,7 @@ in
|
|||
|
||||
services.ofborg.configFile = mkOption {
|
||||
type = types.path;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configuration file to use for ofborg.
|
||||
|
||||
WARNING Don't use a path literal or derivation for this,
|
||||
|
@ -41,7 +41,7 @@ in
|
|||
services.ofborg.logFile = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/log/ofborg.log";
|
||||
description = lib.mdDoc "The logfile to use for the ofborg service.";
|
||||
description = "The logfile to use for the ofborg service.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@ in
|
|||
|
||||
services.postgresql = {
|
||||
|
||||
enable = mkEnableOption (lib.mdDoc "PostgreSQL Server");
|
||||
enable = mkEnableOption "PostgreSQL Server";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
example = literalExpression "pkgs.postgresql_11";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
PostgreSQL package to use.
|
||||
'';
|
||||
};
|
||||
|
@ -53,7 +53,7 @@ in
|
|||
port = mkOption {
|
||||
type = types.int;
|
||||
default = 5432;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The port on which PostgreSQL listens.
|
||||
'';
|
||||
};
|
||||
|
@ -61,14 +61,14 @@ in
|
|||
checkConfig = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Check the syntax of the configuration file at compile time";
|
||||
description = "Check the syntax of the configuration file at compile time";
|
||||
};
|
||||
|
||||
dataDir = mkOption {
|
||||
type = types.path;
|
||||
defaultText = literalExpression ''"/var/lib/postgresql/''${config.services.postgresql.package.psqlSchema}"'';
|
||||
example = "/var/lib/postgresql/11";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The data directory for PostgreSQL. If left as the default value
|
||||
this directory will automatically be created before the PostgreSQL server starts, otherwise
|
||||
the sysadmin is responsible for ensuring the directory exists with appropriate ownership
|
||||
|
@ -79,7 +79,7 @@ in
|
|||
authentication = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Defines how users authenticate themselves to the server. See the
|
||||
[
|
||||
PostgreSQL documentation for pg_hba.conf](https://www.postgresql.org/docs/current/auth-pg-hba-conf.html)
|
||||
|
@ -96,7 +96,7 @@ in
|
|||
identMap = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Defines the mapping from system users to database users.
|
||||
|
||||
The general form is:
|
||||
|
@ -109,7 +109,7 @@ in
|
|||
type = with types; listOf str;
|
||||
default = [];
|
||||
example = [ "--data-checksums" "--allow-group-access" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Additional arguments passed to `initdb` during data dir
|
||||
initialisation.
|
||||
'';
|
||||
|
@ -118,7 +118,7 @@ in
|
|||
initialScript = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A file containing SQL statements to execute on first startup.
|
||||
'';
|
||||
};
|
||||
|
@ -126,7 +126,7 @@ in
|
|||
ensureDatabases = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Ensures that the specified databases exist.
|
||||
This option will never delete existing databases, especially not when the value of this
|
||||
option is changed. This means that databases created once through this option or
|
||||
|
@ -143,14 +143,14 @@ in
|
|||
options = {
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Name of the user to ensure.
|
||||
'';
|
||||
};
|
||||
ensurePermissions = mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Permissions to ensure for the user, specified as an attribute set.
|
||||
The attribute names specify the database and tables to grant the permissions for.
|
||||
The attribute values specify the permissions to grant. You may specify one or
|
||||
|
@ -171,7 +171,7 @@ in
|
|||
};
|
||||
});
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Ensures that the specified users exist and have at least the ensured permissions.
|
||||
The PostgreSQL users will be identified using peer authentication. This authenticates the Unix user with the
|
||||
same name only, and that without the need for a password.
|
||||
|
@ -200,7 +200,7 @@ in
|
|||
enableTCPIP = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether PostgreSQL should listen on all network interfaces.
|
||||
If disabled, the database can only be accessed via its Unix
|
||||
domain socket or via TCP connections to localhost.
|
||||
|
@ -211,7 +211,7 @@ in
|
|||
type = types.str;
|
||||
default = "[%p] ";
|
||||
example = "%m [%p] ";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A printf-style string that is output at the beginning of each log line.
|
||||
Upstream default is `'%m [%p] '`, i.e. it includes the timestamp. We do
|
||||
not include the timestamp, because journal has it anyway.
|
||||
|
@ -222,7 +222,7 @@ in
|
|||
type = types.listOf types.path;
|
||||
default = [];
|
||||
example = literalExpression "with pkgs.postgresql_11.pkgs; [ postgis pg_repack ]";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of PostgreSQL plugins. PostgreSQL version for each plugin should
|
||||
match version for `services.postgresql.package` value.
|
||||
'';
|
||||
|
@ -231,7 +231,7 @@ in
|
|||
settings = mkOption {
|
||||
type = with types; attrsOf (oneOf [ bool float int str ]);
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
PostgreSQL configuration. Refer to
|
||||
<https://www.postgresql.org/docs/11/config-setting.html#CONFIG-SETTING-CONFIGURATION-FILE>
|
||||
for an overview of `postgresql.conf`.
|
||||
|
@ -257,7 +257,7 @@ in
|
|||
recoveryConfig = mkOption {
|
||||
type = types.nullOr types.lines;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Contents of the {file}`recovery.conf` file.
|
||||
'';
|
||||
};
|
||||
|
@ -267,7 +267,7 @@ in
|
|||
default = "postgres";
|
||||
internal = true;
|
||||
readOnly = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
PostgreSQL superuser account to use for various operations. Internal since changing
|
||||
this value would lead to breakage while setting up databases.
|
||||
'';
|
||||
|
|
|
@ -10,40 +10,40 @@ in
|
|||
services.privoxy.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the privoxy proxy service.";
|
||||
description = "Whether to enable the privoxy proxy service.";
|
||||
};
|
||||
|
||||
services.privoxy.listenAddress = mkOption {
|
||||
type = types.str;
|
||||
default = "127.0.0.1:8118";
|
||||
description = lib.mdDoc "The address and TCP port on which privoxy will listen.";
|
||||
description = "The address and TCP port on which privoxy will listen.";
|
||||
};
|
||||
|
||||
services.privoxy.package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.privoxy;
|
||||
example = literalExpression "pkgs.privoxy";
|
||||
description = lib.mdDoc "This option specifies the privoxy package to use.";
|
||||
description = "This option specifies the privoxy package to use.";
|
||||
};
|
||||
|
||||
services.privoxy.config = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
example = "forward / upstream.proxy:8080";
|
||||
description = lib.mdDoc "Config to use for privoxy";
|
||||
description = "Config to use for privoxy";
|
||||
};
|
||||
|
||||
services.privoxy.templdir = mkOption {
|
||||
type = types.path;
|
||||
default = "${pkgs.privoxy}/etc/templates";
|
||||
defaultText = "\${pkgs.privoxy}/etc/templates";
|
||||
description = lib.mdDoc "Directory for privoxy template files.";
|
||||
description = "Directory for privoxy template files.";
|
||||
};
|
||||
|
||||
services.privoxy.confdir = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc "Directory for privoxy files such as .action and .filter.";
|
||||
description = "Directory for privoxy files such as .action and .filter.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -11,52 +11,52 @@ in
|
|||
services.redis.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the redis database service.";
|
||||
description = "Whether to enable the redis database service.";
|
||||
};
|
||||
|
||||
services.redis.package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.redis;
|
||||
defaultText = "pkgs.redis";
|
||||
description = lib.mdDoc "This option specifies the redis package to use";
|
||||
description = "This option specifies the redis package to use";
|
||||
};
|
||||
|
||||
services.redis.dataDir = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = "/var/lib/redis";
|
||||
description = lib.mdDoc "Data directory for the redis database.";
|
||||
description = "Data directory for the redis database.";
|
||||
};
|
||||
|
||||
services.redis.port = mkOption {
|
||||
type = types.int;
|
||||
default = 6379;
|
||||
description = lib.mdDoc "The port for Redis to listen to.";
|
||||
description = "The port for Redis to listen to.";
|
||||
};
|
||||
|
||||
services.redis.bind = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null; # All interfaces
|
||||
description = lib.mdDoc "The IP interface to bind to.";
|
||||
description = "The IP interface to bind to.";
|
||||
example = "127.0.0.1";
|
||||
};
|
||||
|
||||
services.redis.unixSocket = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = lib.mdDoc "The path to the socket to bind to.";
|
||||
description = "The path to the socket to bind to.";
|
||||
example = "/var/run/redis.sock";
|
||||
};
|
||||
|
||||
services.redis.appendOnly = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "By default data is only periodically persisted to disk, enable this option to use an append-only file for improved persistence.";
|
||||
description = "By default data is only periodically persisted to disk, enable this option to use an append-only file for improved persistence.";
|
||||
};
|
||||
|
||||
services.redis.extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "Additional text to be appended to {file}`redis.conf`.";
|
||||
description = "Additional text to be appended to {file}`redis.conf`.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) literalExpression maintainers mdDoc mkEnableOption mkIf mkPackageOptionMD mkOption optionals types;
|
||||
inherit (lib) literalExpression maintainers mkEnableOption mkIf mkPackageOptionMD mkOption optionals types;
|
||||
|
||||
cfg = config.services.sketchybar;
|
||||
|
||||
|
@ -15,7 +15,7 @@ in
|
|||
];
|
||||
|
||||
options.services.sketchybar = {
|
||||
enable = mkEnableOption (mdDoc "sketchybar");
|
||||
enable = mkEnableOption "sketchybar";
|
||||
|
||||
package = mkPackageOptionMD pkgs "sketchybar" { };
|
||||
|
||||
|
@ -23,7 +23,7 @@ in
|
|||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
example = literalExpression "[ pkgs.jq ]";
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Extra packages to add to PATH.
|
||||
'';
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ in
|
|||
sketchybar --update
|
||||
echo "sketchybar configuration loaded.."
|
||||
'';
|
||||
description = mdDoc ''
|
||||
description = ''
|
||||
Contents of sketchybar's configuration file. If empty (the default), the configuration file won't be managed.
|
||||
|
||||
See [documentation](https://felixkratz.github.io/SketchyBar/)
|
||||
|
|
|
@ -11,20 +11,20 @@ in
|
|||
services.skhd.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the skhd hotkey daemon.";
|
||||
description = "Whether to enable the skhd hotkey daemon.";
|
||||
};
|
||||
|
||||
services.skhd.package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.skhd;
|
||||
description = lib.mdDoc "This option specifies the skhd package to use.";
|
||||
description = "This option specifies the skhd package to use.";
|
||||
};
|
||||
|
||||
services.skhd.skhdConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
example = "alt + shift - r : chunkc quit";
|
||||
description = lib.mdDoc "Config to use for {file}`skhdrc`.";
|
||||
description = "Config to use for {file}`skhdrc`.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@ in
|
|||
services.spacebar.enable = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the spacebar spacebar.";
|
||||
description = "Whether to enable the spacebar spacebar.";
|
||||
};
|
||||
|
||||
services.spacebar.package = mkOption {
|
||||
type = path;
|
||||
description = lib.mdDoc "The spacebar package to use.";
|
||||
description = "The spacebar package to use.";
|
||||
};
|
||||
|
||||
services.spacebar.config = mkOption {
|
||||
|
@ -40,7 +40,7 @@ in
|
|||
foreground_color = "0xffa8a8a8";
|
||||
}
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Key/Value pairs to pass to spacebar's 'config' domain, via the configuration file.
|
||||
'';
|
||||
};
|
||||
|
@ -51,7 +51,7 @@ in
|
|||
example = literalExpression ''
|
||||
echo "spacebar config loaded..."
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Extra arbitrary configuration to append to the configuration file.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -19,7 +19,7 @@ in
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable the spotifyd service.
|
||||
'';
|
||||
};
|
||||
|
@ -28,7 +28,7 @@ in
|
|||
type = types.path;
|
||||
default = pkgs.spotifyd;
|
||||
defaultText = "pkgs.spotifyd";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The spotifyd package to use.
|
||||
'';
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ in
|
|||
bitrate = 160;
|
||||
volume_normalisation = true;
|
||||
};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configuration for spotifyd, see <https://spotifyd.github.io/spotifyd/config/File.html>
|
||||
for supported values.
|
||||
'';
|
||||
|
|
|
@ -26,32 +26,32 @@ in
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to run Synapse BitTorrent Daemon.";
|
||||
description = "Whether to run Synapse BitTorrent Daemon.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.synapse-bt;
|
||||
defaultText = "pkgs.synapse-bt";
|
||||
description = lib.mdDoc "Synapse BitTorrent package to use.";
|
||||
description = "Synapse BitTorrent package to use.";
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
default = 16384;
|
||||
description = lib.mdDoc "The port on which Synapse BitTorrent listens.";
|
||||
description = "The port on which Synapse BitTorrent listens.";
|
||||
};
|
||||
|
||||
downloadDir = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/lib/synapse-bt";
|
||||
example = "/var/lib/synapse-bt/downloads";
|
||||
description = lib.mdDoc "Download directory for Synapse BitTorrent.";
|
||||
description = "Download directory for Synapse BitTorrent.";
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
default = {};
|
||||
description = lib.mdDoc "Extra configuration options for Synapse BitTorrent.";
|
||||
description = "Extra configuration options for Synapse BitTorrent.";
|
||||
type = types.attrs;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -16,28 +16,28 @@ in
|
|||
default = pkgs.synergy;
|
||||
defaultText = "pkgs.synergy";
|
||||
type = types.package;
|
||||
description = lib.mdDoc "The package used for the synergy client and server.";
|
||||
description = "The package used for the synergy client and server.";
|
||||
};
|
||||
|
||||
client = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable the Synergy client (receive keyboard and mouse events from a Synergy server).
|
||||
'';
|
||||
};
|
||||
screenName = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Use the given name instead of the hostname to identify
|
||||
ourselves to the server.
|
||||
'';
|
||||
};
|
||||
serverAddress = mkOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The server address is of the form: [hostname][:port]. The
|
||||
hostname must be the address or hostname of the server. The
|
||||
port overrides the default port, 24800.
|
||||
|
@ -46,20 +46,20 @@ in
|
|||
autoStart = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
description = lib.mdDoc "Whether the Synergy client should be started automatically.";
|
||||
description = "Whether the Synergy client should be started automatically.";
|
||||
};
|
||||
tls = {
|
||||
enable = mkEnableOption (lib.mdDoc ''
|
||||
enable = mkEnableOption ''
|
||||
Whether TLS encryption should be used.
|
||||
|
||||
Using this requires a TLS certificate that can be
|
||||
generated by starting the Synergy GUI once and entering
|
||||
a valid product key'');
|
||||
a valid product key'';
|
||||
cert = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "~/.synergy/SSL/Synergy.pem";
|
||||
description = lib.mdDoc "The TLS certificate to use for encryption.";
|
||||
description = "The TLS certificate to use for encryption.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -68,19 +68,19 @@ in
|
|||
enable = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable the Synergy server (send keyboard and mouse events).
|
||||
'';
|
||||
};
|
||||
configFile = mkOption {
|
||||
default = "/etc/synergy-server.conf";
|
||||
type = types.str;
|
||||
description = lib.mdDoc "The Synergy server configuration file.";
|
||||
description = "The Synergy server configuration file.";
|
||||
};
|
||||
screenName = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Use the given name instead of the hostname to identify
|
||||
this screen in the configuration.
|
||||
'';
|
||||
|
@ -88,25 +88,25 @@ in
|
|||
address = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
description = lib.mdDoc "Address on which to listen for clients.";
|
||||
description = "Address on which to listen for clients.";
|
||||
};
|
||||
autoStart = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
description = lib.mdDoc "Whether the Synergy server should be started automatically.";
|
||||
description = "Whether the Synergy server should be started automatically.";
|
||||
};
|
||||
tls = {
|
||||
enable = mkEnableOption (lib.mdDoc ''
|
||||
enable = mkEnableOption ''
|
||||
Whether TLS encryption should be used.
|
||||
|
||||
Using this requires a TLS certificate that can be
|
||||
generated by starting the Synergy GUI once and entering
|
||||
a valid product key'');
|
||||
a valid product key'';
|
||||
cert = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "~/.synergy/SSL/Synergy.pem";
|
||||
description = lib.mdDoc "The TLS certificate to use for encryption.";
|
||||
description = "The TLS certificate to use for encryption.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -13,20 +13,20 @@ in
|
|||
];
|
||||
|
||||
options.services.tailscale = {
|
||||
enable = mkEnableOption (lib.mdDoc "Tailscale client daemon");
|
||||
enable = mkEnableOption "Tailscale client daemon";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.tailscale;
|
||||
defaultText = literalExpression "pkgs.tailscale";
|
||||
description = lib.mdDoc "The package to use for tailscale";
|
||||
description = "The package to use for tailscale";
|
||||
};
|
||||
|
||||
overrideLocalDns = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option implements `Override local DNS` as it is not yet implemented in Tailscaled-on-macOS.
|
||||
|
||||
To use this option, in the Tailscale control panel:
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable Trezor bridge daemon, for use with Trezor hardware wallets.
|
||||
'';
|
||||
};
|
||||
|
@ -19,7 +19,7 @@ in {
|
|||
emulator.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable Trezor emulator support.
|
||||
'';
|
||||
};
|
||||
|
@ -27,7 +27,7 @@ in {
|
|||
emulator.port = mkOption {
|
||||
type = types.port;
|
||||
default = 21324;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Listening port for the Trezor emulator.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -10,32 +10,32 @@ let
|
|||
allowedIPs = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = lib.mdDoc "List of IP addresses associated with this peer.";
|
||||
description = "List of IP addresses associated with this peer.";
|
||||
};
|
||||
|
||||
endpoint = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc "IP and port to connect to this peer at.";
|
||||
description = "IP and port to connect to this peer at.";
|
||||
};
|
||||
|
||||
persistentKeepalive = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc "Interval in seconds to send keepalive packets";
|
||||
description = "Interval in seconds to send keepalive packets";
|
||||
};
|
||||
|
||||
presharedKeyFile = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description =
|
||||
lib.mdDoc "Optional, path to file containing the pre-shared key for this peer.";
|
||||
"Optional, path to file containing the pre-shared key for this peer.";
|
||||
};
|
||||
|
||||
publicKey = mkOption {
|
||||
default = null;
|
||||
type = types.str;
|
||||
description = lib.mdDoc "The public key for this peer.";
|
||||
description = "The public key for this peer.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -45,75 +45,75 @@ let
|
|||
address = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = [ ];
|
||||
description = lib.mdDoc "List of IP addresses for this interface.";
|
||||
description = "List of IP addresses for this interface.";
|
||||
};
|
||||
|
||||
autostart = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description =
|
||||
lib.mdDoc "Whether to bring up this interface automatically during boot.";
|
||||
"Whether to bring up this interface automatically during boot.";
|
||||
};
|
||||
|
||||
dns = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = lib.mdDoc "List of DNS servers for this interface.";
|
||||
description = "List of DNS servers for this interface.";
|
||||
};
|
||||
|
||||
listenPort = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc "Port to listen on, randomly selected if not specified.";
|
||||
description = "Port to listen on, randomly selected if not specified.";
|
||||
};
|
||||
|
||||
mtu = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description =
|
||||
lib.mdDoc "MTU to set for this interface, automatically set if not specified";
|
||||
"MTU to set for this interface, automatically set if not specified";
|
||||
};
|
||||
|
||||
peers = mkOption {
|
||||
type = types.listOf (types.submodule peerOpts);
|
||||
default = [ ];
|
||||
description = lib.mdDoc "List of peers associated with this interface.";
|
||||
description = "List of peers associated with this interface.";
|
||||
};
|
||||
|
||||
preDown = mkOption {
|
||||
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "List of commadns to run before interface shutdown.";
|
||||
description = "List of commadns to run before interface shutdown.";
|
||||
};
|
||||
|
||||
preUp = mkOption {
|
||||
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "List of commands to run before interface setup.";
|
||||
description = "List of commands to run before interface setup.";
|
||||
};
|
||||
|
||||
postDown = mkOption {
|
||||
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "List of commands to run after interface shutdown";
|
||||
description = "List of commands to run after interface shutdown";
|
||||
};
|
||||
|
||||
postUp = mkOption {
|
||||
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
|
||||
default = "";
|
||||
description = lib.mdDoc "List of commands to run after interface setup.";
|
||||
description = "List of commands to run after interface setup.";
|
||||
};
|
||||
|
||||
privateKeyFile = mkOption {
|
||||
type = types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc "Path to file containing this interface's private key.";
|
||||
description = "Path to file containing this interface's private key.";
|
||||
};
|
||||
|
||||
table = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Controls the routing table to which routes are added. There are two
|
||||
special values: `off` disables the creation of routes altogether,
|
||||
and `auto` (the default) adds routes to the default table and
|
||||
|
@ -208,13 +208,13 @@ in {
|
|||
interfaces = mkOption {
|
||||
type = types.attrsOf (types.submodule interfaceOpts);
|
||||
default = { };
|
||||
description = lib.mdDoc "Set of wg-quick interfaces.";
|
||||
description = "Set of wg-quick interfaces.";
|
||||
};
|
||||
|
||||
logDir = mkOption {
|
||||
type = types.str;
|
||||
default = "/var/log";
|
||||
description = lib.mdDoc "Directory to save wg-quick logs to.";
|
||||
description = "Directory to save wg-quick logs to.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -23,19 +23,19 @@ in
|
|||
services.yabai.enable = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable the yabai window manager.";
|
||||
description = "Whether to enable the yabai window manager.";
|
||||
};
|
||||
|
||||
services.yabai.package = mkOption {
|
||||
type = path;
|
||||
default = pkgs.yabai;
|
||||
description = lib.mdDoc "The yabai package to use.";
|
||||
description = "The yabai package to use.";
|
||||
};
|
||||
|
||||
services.yabai.enableScriptingAddition = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable yabai's scripting-addition.
|
||||
SIP must be disabled for this to work.
|
||||
'';
|
||||
|
@ -57,7 +57,7 @@ in
|
|||
window_gap = 10;
|
||||
}
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Key/Value pairs to pass to yabai's 'config' domain, via the configuration file.
|
||||
'';
|
||||
};
|
||||
|
@ -68,7 +68,7 @@ in
|
|||
example = literalExpression ''
|
||||
yabai -m rule --add app='System Preferences' manage=off
|
||||
'';
|
||||
description = lib.mdDoc "Extra arbitrary configuration to append to the configuration file";
|
||||
description = "Extra arbitrary configuration to append to the configuration file";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ in
|
|||
internal = true;
|
||||
type = types.attrsOf (types.submodule script);
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A set of shell script fragments that are executed when a NixOS
|
||||
system configuration is activated. Examples are updating
|
||||
/etc, creating accounts, and so on. Since these are executed
|
||||
|
|
|
@ -209,19 +209,19 @@ in
|
|||
system.checks.verifyNixPath = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to run the NIX_PATH validation checks.";
|
||||
description = "Whether to run the NIX_PATH validation checks.";
|
||||
};
|
||||
|
||||
system.checks.verifyNixChannels = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to run the nix-channels validation checks.";
|
||||
description = "Whether to run the nix-channels validation checks.";
|
||||
};
|
||||
|
||||
system.checks.verifyBuildUsers = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc "Whether to run the Nix build users validation checks.";
|
||||
description = "Whether to run the Nix build users validation checks.";
|
||||
};
|
||||
|
||||
system.checks.text = mkOption {
|
||||
|
|
|
@ -22,7 +22,7 @@ in
|
|||
internal = true;
|
||||
type = types.attrsOf types.unspecified;
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Attribute set of derivation used to setup the system.
|
||||
'';
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ in
|
|||
system.path = mkOption {
|
||||
internal = true;
|
||||
type = types.package;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The packages you want in the system environment.
|
||||
'';
|
||||
};
|
||||
|
@ -38,7 +38,7 @@ in
|
|||
system.profile = mkOption {
|
||||
type = types.path;
|
||||
default = "/nix/var/nix/profiles/system";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Profile to use for the system.
|
||||
'';
|
||||
};
|
||||
|
@ -56,7 +56,7 @@ in
|
|||
internal = true;
|
||||
type = types.attrsOf types.unspecified;
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
`lib.mkDerivation` attributes that will be passed to the top level system builder.
|
||||
'';
|
||||
};
|
||||
|
@ -66,7 +66,7 @@ in
|
|||
internal = true;
|
||||
default = [];
|
||||
example = [ { assertion = false; message = "you can't enable this for that reason"; } ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option allows modules to express conditions that must
|
||||
hold for the evaluation of the system configuration to
|
||||
succeed, along with associated error messages for the user.
|
||||
|
@ -78,7 +78,7 @@ in
|
|||
default = [];
|
||||
type = types.listOf types.str;
|
||||
example = [ "The `foo' service is deprecated and will go away soon!" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
This option allows modules to show warnings to users during
|
||||
the evaluation of the system configuration.
|
||||
'';
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.ActivityMonitor.ShowCategory = mkOption {
|
||||
type = types.nullOr (types.enum [100 101 102 103 104 105 106 107]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Change which processes to show.
|
||||
* 100: All Processes
|
||||
* 101: All Processes, Hierarchally
|
||||
|
@ -25,7 +25,7 @@ with lib;
|
|||
system.defaults.ActivityMonitor.IconType = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Change the icon in the dock when running.
|
||||
* 0: Application Icon
|
||||
* 2: Network Usage
|
||||
|
@ -39,7 +39,7 @@ with lib;
|
|||
system.defaults.ActivityMonitor.SortColumn = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Which column to sort the main activity page (such as "CPUUsage"). Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -47,7 +47,7 @@ with lib;
|
|||
system.defaults.ActivityMonitor.SortDirection = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The sort direction of the sort column (0 is decending). Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -55,7 +55,7 @@ with lib;
|
|||
system.defaults.ActivityMonitor.OpenMainWindow = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Open the main window when opening Activity Monitor. Default is true.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@ with lib;
|
|||
true;
|
||||
};
|
||||
};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets custom user preferences
|
||||
'';
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ with lib;
|
|||
true;
|
||||
};
|
||||
};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets custom system preferences
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
mkOption {
|
||||
type = types.nullOr (types.path);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the system-wide alert sound. Found under "Sound Effects" in the
|
||||
"Sound" section of "System Preferences". Look in
|
||||
"/System/Library/Sounds" for possible candidates.
|
||||
|
@ -23,7 +23,7 @@ in {
|
|||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
example = -1.0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the mouse tracking speed. Found in the "Mouse" section of
|
||||
"System Preferences". Set to -1.0 to disable mouse acceleration.
|
||||
'';
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.LaunchServices.LSQuarantine = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable quarantine for downloaded applications. The default is true.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleShowAllFiles = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to always show hidden files. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -19,7 +19,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enables swiping left or right with two fingers to navigate backward or forward. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -27,7 +27,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleEnableSwipeNavigateWithScrolls = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enables swiping left or right with two fingers to navigate backward or forward. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -35,7 +35,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleFontSmoothing = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 2 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the level of font smoothing (sub-pixel font rendering).
|
||||
'';
|
||||
};
|
||||
|
@ -43,7 +43,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleInterfaceStyle = mkOption {
|
||||
type = types.nullOr (types.enum [ "Dark" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set to 'Dark' to enable dark mode, or leave unset for normal mode.
|
||||
'';
|
||||
};
|
||||
|
@ -51,7 +51,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleInterfaceStyleSwitchesAutomatically = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to automatically switch between light and dark mode. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -59,7 +59,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = mkOption {
|
||||
type = types.nullOr (types.enum [ 3 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configures the keyboard control behavior. Mode 3 enables full keyboard control.
|
||||
'';
|
||||
};
|
||||
|
@ -67,7 +67,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable the press-and-hold feature. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -75,7 +75,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleShowAllExtensions = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to show all file extensions in Finder. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -83,7 +83,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleShowScrollBars = mkOption {
|
||||
type = types.nullOr (types.enum [ "WhenScrolling" "Automatic" "Always" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
When to show the scrollbars. Options are 'WhenScrolling', 'Automatic' and 'Always'.
|
||||
'';
|
||||
};
|
||||
|
@ -91,7 +91,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleScrollerPagingBehavior = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Jump to the spot that's clicked on the scroll bar. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -99,7 +99,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable automatic capitalization. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -107,7 +107,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable smart dash substitution. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -115,7 +115,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable smart period substitution. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -123,7 +123,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable smart quote substitution. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -131,7 +131,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable automatic spelling correction. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -139,7 +139,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to animate opening and closing of windows and popovers. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -147,7 +147,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to disable the automatic termination of inactive apps.
|
||||
'';
|
||||
};
|
||||
|
@ -155,7 +155,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to save new documents to iCloud by default. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -163,7 +163,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleWindowTabbingMode = mkOption {
|
||||
type = types.nullOr (types.enum [ "manual" "always" "fullscreen" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the window tabbing when opening a new document: 'manual', 'always', or 'fullscreen'. The default is 'fullscreen'.
|
||||
'';
|
||||
};
|
||||
|
@ -171,7 +171,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use expanded save panel by default. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -179,7 +179,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use expanded save panel by default. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -187,7 +187,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSTableViewDefaultSizeMode = mkOption {
|
||||
type = types.nullOr (types.enum [ 1 2 3 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the size of the finder sidebar icons: 1 (small), 2 (medium) or 3 (large). The default is 3.
|
||||
'';
|
||||
};
|
||||
|
@ -195,7 +195,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSTextShowsControlCharacters = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to display ASCII control characters using caret notation in standard text views. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -203,7 +203,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSUseAnimatedFocusRing = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable the focus ring animation. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -211,7 +211,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSScrollAnimationEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable smooth scrolling. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -220,7 +220,7 @@ in {
|
|||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
example = 0.20;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the speed speed of window resizing. The default is given in the example.
|
||||
'';
|
||||
};
|
||||
|
@ -228,7 +228,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable moving window by holding anywhere on it like on Linux. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -236,7 +236,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Keyboard
|
||||
|
||||
If you press and hold certain keyboard keys when in a text area, the key’s character begins to repeat.
|
||||
|
@ -249,7 +249,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.KeyRepeat = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Keyboard
|
||||
|
||||
If you press and hold certain keyboard keys when in a text area, the key’s character begins to repeat.
|
||||
|
@ -262,7 +262,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use the expanded print panel by default. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -270,7 +270,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint2 = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use the expanded print panel by default. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -278,7 +278,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.keyboard.fnState" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Use F1, F2, etc. keys as standard function keys.
|
||||
'';
|
||||
};
|
||||
|
@ -286,7 +286,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = mkOption {
|
||||
type = types.nullOr (types.enum [ 1 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configures the trackpad tap behavior. Mode 1 enables tap to click.
|
||||
'';
|
||||
};
|
||||
|
@ -294,7 +294,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.sound.beep.volume" = mkOption {
|
||||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Sound
|
||||
|
||||
Sets the beep/alert volume level from 0.000 (muted) to 1.000 (100% volume).
|
||||
|
@ -310,7 +310,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.sound.beep.feedback" = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Sound
|
||||
|
||||
Make a feedback sound when the system volume changed. This setting accepts
|
||||
|
@ -321,7 +321,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable trackpad secondary click. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -329,7 +329,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = mkOption {
|
||||
type = types.nullOr (types.enum [ 1 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configures the trackpad corner click behavior. Mode 1 enables right click.
|
||||
'';
|
||||
};
|
||||
|
@ -337,7 +337,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.trackpad.scaling" = mkOption {
|
||||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Configures the trackpad tracking speed (0 to 3). The default is "1".
|
||||
'';
|
||||
};
|
||||
|
@ -345,7 +345,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.springing.enabled" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable spring loading (expose) for directories.
|
||||
'';
|
||||
};
|
||||
|
@ -354,7 +354,7 @@ in {
|
|||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
example = 1.0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set the spring loading delay for directories. The default is given in the example.
|
||||
'';
|
||||
};
|
||||
|
@ -362,7 +362,7 @@ in {
|
|||
system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable "Natural" scrolling direction. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -370,7 +370,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleMeasurementUnits = mkOption {
|
||||
type = types.nullOr (types.enum [ "Centimeters" "Inches" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use centimeters (metric) or inches (US, UK) as the measurement unit. The default is based on region settings.
|
||||
'';
|
||||
};
|
||||
|
@ -378,7 +378,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleMetricUnits = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use the metric system. The default is based on region settings.
|
||||
'';
|
||||
};
|
||||
|
@ -386,7 +386,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleTemperatureUnit = mkOption {
|
||||
type = types.nullOr (types.enum [ "Celsius" "Fahrenheit" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use Celsius or Fahrenheit. The default is based on region settings.
|
||||
'';
|
||||
};
|
||||
|
@ -394,7 +394,7 @@ in {
|
|||
system.defaults.NSGlobalDomain.AppleICUForce24HourTime = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to use 24-hour or 12-hour time. The default is based on region settings.
|
||||
'';
|
||||
};
|
||||
|
@ -402,7 +402,7 @@ in {
|
|||
system.defaults.NSGlobalDomain._HIHideMenuBar = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to autohide the menu bar. The default is false.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@ with lib;
|
|||
system.defaults.SoftwareUpdate.AutomaticallyInstallMacOSUpdates = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Automatically install Mac OS software updates. Defaults to false.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@ with lib;
|
|||
system.defaults.alf.globalstate = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Security and Privacy > Firewall
|
||||
|
||||
Enable the internal firewall to prevent unauthorised applications, programs
|
||||
|
@ -22,7 +22,7 @@ with lib;
|
|||
system.defaults.alf.allowsignedenabled = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Security and Privacy > Firewall
|
||||
|
||||
Allows any signed Application to accept incoming requests. Default is true.
|
||||
|
@ -35,7 +35,7 @@ with lib;
|
|||
system.defaults.alf.allowdownloadsignedenabled = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Security and Privacy > Firewall
|
||||
|
||||
Allows any downloaded Application that has been signed to accept incoming requests. Default is 0.
|
||||
|
@ -48,7 +48,7 @@ with lib;
|
|||
system.defaults.alf.loggingenabled = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Security and Privacy > Firewall
|
||||
|
||||
Enable logging of requests made to the firewall. Default is 0.
|
||||
|
@ -61,7 +61,7 @@ with lib;
|
|||
system.defaults.alf.stealthenabled = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Security and firewall
|
||||
|
||||
Drops incoming requests via ICMP such as ping requests. Default is 0.
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.IsAnalog = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show an analog clock instead of a digital one. Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.Show24Hour = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show a 24-hour clock, instead of a 12-hour clock. Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.ShowAMPM = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show the AM/PM label. Useful if Show24Hour is false. Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -32,7 +32,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.ShowDayOfMonth = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show the day of the month. Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.ShowDayOfWeek = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show the day of the week. Default is null.
|
||||
'';
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.ShowDate = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 2 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show the full date. Default is null.
|
||||
|
||||
0 = Show the date
|
||||
|
@ -62,7 +62,7 @@ with lib;
|
|||
system.defaults.menuExtraClock.ShowSeconds = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show the clock with second precision, instead of minutes. Default is null.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
system.defaults.dock.appswitcher-all-displays = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to display the appswitcher on all displays or only the main one. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -19,7 +19,7 @@ in {
|
|||
system.defaults.dock.autohide = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to automatically hide and show the dock. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -28,7 +28,7 @@ in {
|
|||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
example = 0.24;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the speed of the autohide delay. The default is given in the example.
|
||||
'';
|
||||
};
|
||||
|
@ -37,7 +37,7 @@ in {
|
|||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
example = 1.0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the speed of the animation when hiding/showing the Dock. The default is given in the example.
|
||||
'';
|
||||
};
|
||||
|
@ -45,7 +45,7 @@ in {
|
|||
system.defaults.dock.dashboard-in-overlay = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to hide Dashboard as a Space. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -53,7 +53,7 @@ in {
|
|||
system.defaults.dock.enable-spring-load-actions-on-all-items = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable spring loading for all Dock items. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -62,7 +62,7 @@ in {
|
|||
type = types.nullOr floatWithDeprecationError;
|
||||
default = null;
|
||||
example = 1.0;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Sets the speed of the Mission Control animations. The default is given in the example.
|
||||
'';
|
||||
};
|
||||
|
@ -70,7 +70,7 @@ in {
|
|||
system.defaults.dock.expose-group-by-app = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to group windows by application in Mission Control's Exposé. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -78,7 +78,7 @@ in {
|
|||
system.defaults.dock.launchanim = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Animate opening applications from the Dock. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -86,7 +86,7 @@ in {
|
|||
system.defaults.dock.mineffect = mkOption {
|
||||
type = types.nullOr (types.enum [ "genie" "suck" "scale" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set the minimize/maximize window effect. The default is genie.
|
||||
'';
|
||||
};
|
||||
|
@ -94,7 +94,7 @@ in {
|
|||
system.defaults.dock.minimize-to-application = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to minimize windows into their application icon. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -102,7 +102,7 @@ in {
|
|||
system.defaults.dock.mouse-over-hilite-stack = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Enable highlight hover effect for the grid view of a stack in the Dock.
|
||||
'';
|
||||
};
|
||||
|
@ -110,7 +110,7 @@ in {
|
|||
system.defaults.dock.mru-spaces = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to automatically rearrange spaces based on most recent use. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -118,7 +118,7 @@ in {
|
|||
system.defaults.dock.orientation = mkOption {
|
||||
type = types.nullOr (types.enum [ "bottom" "left" "right" ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Position of the dock on screen. The default is "bottom".
|
||||
'';
|
||||
};
|
||||
|
@ -127,7 +127,7 @@ in {
|
|||
type = types.nullOr (types.listOf (types.either types.path types.str));
|
||||
default = null;
|
||||
example = [ "/Applications/Safari.app" "/System/Applications/Utilities/Terminal.app" ];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Persistent applications in the dock.
|
||||
'';
|
||||
apply = value:
|
||||
|
@ -139,7 +139,7 @@ in {
|
|||
system.defaults.dock.show-process-indicators = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show indicator lights for open applications in the Dock. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -147,7 +147,7 @@ in {
|
|||
system.defaults.dock.showhidden = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to make icons of hidden applications tranclucent. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -155,7 +155,7 @@ in {
|
|||
system.defaults.dock.show-recents = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show recent applications in the dock. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -163,7 +163,7 @@ in {
|
|||
system.defaults.dock.static-only = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show only open applications in the Dock. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -171,7 +171,7 @@ in {
|
|||
system.defaults.dock.tilesize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Size of the icons in the dock. The default is 64.
|
||||
'';
|
||||
};
|
||||
|
@ -179,7 +179,7 @@ in {
|
|||
system.defaults.dock.magnification = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Magnify icon on hover. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -187,7 +187,7 @@ in {
|
|||
system.defaults.dock.largesize = mkOption {
|
||||
type = types.nullOr (types.ints.between 16 128);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Magnified icon size on hover. The default is 16.
|
||||
'';
|
||||
};
|
||||
|
@ -196,7 +196,7 @@ in {
|
|||
system.defaults.dock.wvous-tl-corner = mkOption {
|
||||
type = types.nullOr types.ints.positive;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Hot corner action for top left corner. Valid values include:
|
||||
|
||||
* `1`: Disabled
|
||||
|
@ -217,7 +217,7 @@ in {
|
|||
system.defaults.dock.wvous-bl-corner = mkOption {
|
||||
type = types.nullOr types.ints.positive;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Hot corner action for bottom left corner. Valid values include:
|
||||
|
||||
* `1`: Disabled
|
||||
|
@ -238,7 +238,7 @@ in {
|
|||
system.defaults.dock.wvous-tr-corner = mkOption {
|
||||
type = types.nullOr types.ints.positive;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Hot corner action for top right corner. Valid values include:
|
||||
|
||||
* `1`: Disabled
|
||||
|
@ -259,7 +259,7 @@ in {
|
|||
system.defaults.dock.wvous-br-corner = mkOption {
|
||||
type = types.nullOr types.ints.positive;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Hot corner action for bottom right corner. Valid values include:
|
||||
|
||||
* `1`: Disabled
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.finder.AppleShowAllFiles = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to always show hidden files. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ with lib;
|
|||
system.defaults.finder.ShowStatusBar = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show status bar at bottom of finder windows with item/disk space stats. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ with lib;
|
|||
system.defaults.finder.ShowPathbar = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Show path breadcrumbs in finder windows. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -32,7 +32,7 @@ with lib;
|
|||
system.defaults.finder.FXDefaultSearchScope = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Change the default search scope. Use "SCcf" to default to current folder.
|
||||
The default is unset ("This Mac").
|
||||
'';
|
||||
|
@ -41,7 +41,7 @@ with lib;
|
|||
system.defaults.finder.FXPreferredViewStyle = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Change the default finder view.
|
||||
"icnv" = Icon view, "Nlsv" = List view, "clmv" = Column View, "Flwv" = Gallery View
|
||||
The default is icnv.
|
||||
|
@ -51,7 +51,7 @@ with lib;
|
|||
system.defaults.finder.AppleShowAllExtensions = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to always show file extensions. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -59,7 +59,7 @@ with lib;
|
|||
system.defaults.finder.CreateDesktop = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to show icons on the desktop or not. The default is true.
|
||||
'';
|
||||
};
|
||||
|
@ -67,7 +67,7 @@ with lib;
|
|||
system.defaults.finder.QuitMenuItem = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to allow quitting of the Finder. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -75,7 +75,7 @@ with lib;
|
|||
system.defaults.finder._FXShowPosixPathInTitle = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to show the full POSIX filepath in the window title. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -83,7 +83,7 @@ with lib;
|
|||
system.defaults.finder.FXEnableExtensionChangeWarning = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to show warnings when change the file extension of files. The default is true.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@ with lib;
|
|||
system.defaults.loginwindow.SHOWFULLNAME = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Displays login window as a name and password field instead of a list of users.
|
||||
|
@ -18,7 +18,7 @@ with lib;
|
|||
system.defaults.loginwindow.autoLoginUser = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Auto login the supplied user on boot. Default is Off.
|
||||
|
@ -28,7 +28,7 @@ with lib;
|
|||
system.defaults.loginwindow.GuestEnabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Allow users to login to the machine as guests using the Guest account. Default is true.
|
||||
|
@ -38,7 +38,7 @@ with lib;
|
|||
system.defaults.loginwindow.LoginwindowText = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Text to be shown on the login window. Default is "\\\\U03bb".
|
||||
'';
|
||||
};
|
||||
|
@ -46,7 +46,7 @@ with lib;
|
|||
system.defaults.loginwindow.ShutDownDisabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Hides the Shut Down button on the login screen. Default is false.
|
||||
|
@ -56,7 +56,7 @@ with lib;
|
|||
system.defaults.loginwindow.SleepDisabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Hides the Sleep button on the login screen. Default is false.
|
||||
|
@ -66,7 +66,7 @@ with lib;
|
|||
system.defaults.loginwindow.RestartDisabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Hides the Restart button on the login screen. Default is false.
|
||||
|
@ -76,7 +76,7 @@ with lib;
|
|||
system.defaults.loginwindow.ShutDownDisabledWhileLoggedIn = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Disables the "Shutdown" option when users are logged in. Default is false.
|
||||
|
@ -86,7 +86,7 @@ with lib;
|
|||
system.defaults.loginwindow.PowerOffDisabledWhileLoggedIn = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
If set to true, the Power Off menu item will be disabled when the user is logged in. Default is false.
|
||||
|
@ -96,7 +96,7 @@ with lib;
|
|||
system.defaults.loginwindow.RestartDisabledWhileLoggedIn = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Users and Groups > Login Options
|
||||
|
||||
Disables the “Restart” option when users are logged in. Default is false.
|
||||
|
@ -106,7 +106,7 @@ with lib;
|
|||
system.defaults.loginwindow.DisableConsoleAccess = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Disables the ability for a user to access the console by typing “>console”
|
||||
for a username at the login window. Default is false.
|
||||
'';
|
||||
|
|
|
@ -11,7 +11,7 @@ with lib;
|
|||
"TwoButton"
|
||||
]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
"OneButton": any tap is a left click. "TwoButton": allow left-
|
||||
and right-clicking.
|
||||
'';
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.screencapture.location = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The filesystem path to which screencaptures should be written.
|
||||
'';
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ with lib;
|
|||
system.defaults.screencapture.type = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The image format to use, such as "jpg".
|
||||
'';
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ with lib;
|
|||
system.defaults.screencapture.disable-shadow = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Disable drop shadow border around screencaptures. The default is false.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.screensaver.askForPassword = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
If true, the user is prompted for a password when the screen saver is unlocked or stopped. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ with lib;
|
|||
system.defaults.screensaver.askForPasswordDelay = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The number of seconds to delay before the password will be required to unlock or stop the screen saver (the grace period).
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -7,13 +7,13 @@ with lib;
|
|||
system.defaults.smb.NetBIOSName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc "Hostname to use for NetBIOS.";
|
||||
description = "Hostname to use for NetBIOS.";
|
||||
};
|
||||
|
||||
system.defaults.smb.ServerDescription = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc "Hostname to use for sharing services.";
|
||||
description = "Hostname to use for sharing services.";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ with lib;
|
|||
system.defaults.spaces.spans-displays = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Apple menu > System Preferences > Mission Control
|
||||
|
||||
Displays have separate Spaces (note a logout is required before
|
||||
|
|
|
@ -8,7 +8,7 @@ with lib;
|
|||
system.defaults.trackpad.Clicking = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable trackpad tap to click. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ with lib;
|
|||
system.defaults.trackpad.Dragging = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable tap-to-drag. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ with lib;
|
|||
system.defaults.trackpad.TrackpadRightClick = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable trackpad right click. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -32,7 +32,7 @@ with lib;
|
|||
system.defaults.trackpad.TrackpadThreeFingerDrag = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable three finger drag. The default is false.
|
||||
'';
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ with lib;
|
|||
system.defaults.trackpad.ActuationStrength = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
0 to enable Silent Clicking, 1 to disable. The default is 1.
|
||||
'';
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ with lib;
|
|||
system.defaults.trackpad.FirstClickThreshold = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 2 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
For normal click: 0 for light clicking, 1 for medium, 2 for firm.
|
||||
The default is 1.
|
||||
'';
|
||||
|
@ -57,7 +57,7 @@ with lib;
|
|||
system.defaults.trackpad.SecondClickThreshold = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 2 ]);
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
For force touch: 0 for light clicking, 1 for medium, 2 for firm.
|
||||
The default is 1.
|
||||
'';
|
||||
|
|
|
@ -9,7 +9,7 @@ with lib;
|
|||
type = types.nullOr types.float;
|
||||
default = null;
|
||||
example = 1.5;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set the size of cursor. 1 for normal, 4 for maximum.
|
||||
The default is 1.
|
||||
'';
|
||||
|
@ -18,7 +18,7 @@ with lib;
|
|||
system.defaults.universalaccess.reduceMotion = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Disable animation when switching screens or opening apps
|
||||
'';
|
||||
};
|
||||
|
@ -26,7 +26,7 @@ with lib;
|
|||
system.defaults.universalaccess.reduceTransparency = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Disable transparency in the menu bar and elsewhere.
|
||||
Requires macOS Yosemite or later.
|
||||
The default is false.
|
||||
|
@ -36,7 +36,7 @@ with lib;
|
|||
system.defaults.universalaccess.closeViewScrollWheelToggle = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Use scroll gesture with the Ctrl (^) modifier key to zoom.
|
||||
The default is false.
|
||||
'';
|
||||
|
@ -45,7 +45,7 @@ with lib;
|
|||
system.defaults.universalaccess.closeViewZoomFollowsFocus = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Follow the keyboard focus while zoomed in.
|
||||
Without setting `closeViewScrollWheelToggle` this has no effect.
|
||||
The default is false.
|
||||
|
|
|
@ -20,7 +20,7 @@ in
|
|||
environment.etc = mkOption {
|
||||
type = types.attrsOf (types.submodule text);
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set of files that have to be linked in {file}`/etc`.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -11,38 +11,38 @@ in
|
|||
system.keyboard.enableKeyMapping = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to enable keyboard mappings.";
|
||||
description = "Whether to enable keyboard mappings.";
|
||||
};
|
||||
|
||||
system.keyboard.remapCapsLockToControl = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to remap the Caps Lock key to Control.";
|
||||
description = "Whether to remap the Caps Lock key to Control.";
|
||||
};
|
||||
|
||||
system.keyboard.remapCapsLockToEscape = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to remap the Caps Lock key to Escape.";
|
||||
description = "Whether to remap the Caps Lock key to Escape.";
|
||||
};
|
||||
|
||||
system.keyboard.nonUS.remapTilde = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to remap the Tilde key on non-us keyboards.";
|
||||
description = "Whether to remap the Tilde key on non-us keyboards.";
|
||||
};
|
||||
|
||||
system.keyboard.swapLeftCommandAndLeftAlt = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Whether to swap the left Command key and left Alt key.";
|
||||
description = "Whether to swap the left Command key and left Alt key.";
|
||||
};
|
||||
|
||||
system.keyboard.userKeyMapping = mkOption {
|
||||
internal = true;
|
||||
type = types.listOf (types.attrsOf types.int);
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of keyboard mappings to apply, for more information see
|
||||
<https://developer.apple.com/library/content/technotes/tn2450/_index.html>.
|
||||
'';
|
||||
|
|
|
@ -59,7 +59,7 @@ in
|
|||
environment.launchAgents = mkOption {
|
||||
type = types.attrsOf (types.submodule text);
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set of files that have to be linked in {file}`/Library/LaunchAgents`.
|
||||
'';
|
||||
};
|
||||
|
@ -67,7 +67,7 @@ in
|
|||
environment.launchDaemons = mkOption {
|
||||
type = types.attrsOf (types.submodule text);
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set of files that have to be linked in {file}`/Library/LaunchDaemons`.
|
||||
'';
|
||||
};
|
||||
|
@ -75,7 +75,7 @@ in
|
|||
environment.userLaunchAgents = mkOption {
|
||||
type = types.attrsOf (types.submodule text);
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set of files that have to be linked in {file}`~/Library/LaunchAgents`.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@ in
|
|||
example = {
|
||||
"StartupMute" = "%01";
|
||||
};
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Non-volatile RAM variables to set. Removing a key-value pair from this
|
||||
list will **not** return the variable to its previous value, but will
|
||||
no longer set its value on system configuration activations.
|
||||
|
|
|
@ -26,7 +26,7 @@ in
|
|||
'''')
|
||||
]
|
||||
'';
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Set of patches to apply to {file}`/`.
|
||||
|
||||
::: {.warning}
|
||||
|
|
|
@ -12,7 +12,7 @@ in
|
|||
type = types.listOf (types.either types.shellPackage types.path);
|
||||
default = [];
|
||||
example = literalExpression "[ pkgs.bashInteractive pkgs.zsh ]";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
A list of permissible login shells for user accounts.
|
||||
No need to mention `/bin/sh`
|
||||
and other shells that are available by default on
|
||||
|
|
|
@ -14,7 +14,7 @@ in
|
|||
type = with lib.types; nullOr bool;
|
||||
default = null;
|
||||
example = false;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Whether to enable the startup chime.
|
||||
|
||||
By default, this option does not affect your system configuration in any way.
|
||||
|
|
|
@ -36,7 +36,7 @@ in
|
|||
system.stateVersion = mkOption {
|
||||
type = types.int;
|
||||
default = 4;
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
Every once in a while, a new NixOS release may change
|
||||
configuration defaults in a way incompatible with stateful
|
||||
data. For instance, if the default version of PostgreSQL
|
||||
|
@ -51,14 +51,14 @@ in
|
|||
|
||||
system.darwinLabel = mkOption {
|
||||
type = types.str;
|
||||
description = lib.mdDoc "Label to be used in the names of generated outputs.";
|
||||
description = "Label to be used in the names of generated outputs.";
|
||||
};
|
||||
|
||||
system.darwinVersion = mkOption {
|
||||
internal = true;
|
||||
type = types.str;
|
||||
default = "darwin${toString cfg.stateVersion}${cfg.darwinVersionSuffix}";
|
||||
description = lib.mdDoc "The full darwin version (e.g. `darwin4.2abdb5a`).";
|
||||
description = "The full darwin version (e.g. `darwin4.2abdb5a`).";
|
||||
};
|
||||
|
||||
system.darwinVersionSuffix = mkOption {
|
||||
|
@ -67,28 +67,28 @@ in
|
|||
default = if cfg.darwinRevision != null
|
||||
then ".${substring 0 7 cfg.darwinRevision}"
|
||||
else "";
|
||||
description = lib.mdDoc "The short darwin version suffix (e.g. `.2abdb5a`).";
|
||||
description = "The short darwin version suffix (e.g. `.2abdb5a`).";
|
||||
};
|
||||
|
||||
system.darwinRevision = mkOption {
|
||||
internal = true;
|
||||
type = types.nullOr types.str;
|
||||
default = gitRevision (toString ../..);
|
||||
description = lib.mdDoc "The darwin git revision from which this configuration was built.";
|
||||
description = "The darwin git revision from which this configuration was built.";
|
||||
};
|
||||
|
||||
system.nixpkgsRelease = mkOption {
|
||||
readOnly = true;
|
||||
type = types.str;
|
||||
default = lib.trivial.release;
|
||||
description = lib.mdDoc "The nixpkgs release (e.g. `16.03`).";
|
||||
description = "The nixpkgs release (e.g. `16.03`).";
|
||||
};
|
||||
|
||||
system.nixpkgsVersion = mkOption {
|
||||
internal = true;
|
||||
type = types.str;
|
||||
default = cfg.nixpkgsRelease + cfg.nixpkgsVersionSuffix;
|
||||
description = lib.mdDoc "The full nixpkgs version (e.g. `16.03.1160.f2d4ee1`).";
|
||||
description = "The full nixpkgs version (e.g. `16.03.1160.f2d4ee1`).";
|
||||
};
|
||||
|
||||
system.nixpkgsVersionSuffix = mkOption {
|
||||
|
@ -97,7 +97,7 @@ in
|
|||
default = if useSourceRevision
|
||||
then ".${lib.substring 0 8 (nixpkgsSrc.lastModifiedDate or nixpkgsSrc.lastModified or "19700101")}.${nixpkgsSrc.shortRev or "dirty"}"
|
||||
else lib.trivial.versionSuffix;
|
||||
description = lib.mdDoc "The short nixpkgs version suffix (e.g. `.1160.f2d4ee1`).";
|
||||
description = "The short nixpkgs version suffix (e.g. `.1160.f2d4ee1`).";
|
||||
};
|
||||
|
||||
system.nixpkgsRevision = mkOption {
|
||||
|
@ -106,13 +106,13 @@ in
|
|||
default = if useSourceRevision && nixpkgsSrc ? rev
|
||||
then nixpkgsSrc.rev
|
||||
else lib.trivial.revisionWithDefault null;
|
||||
description = lib.mdDoc "The nixpkgs git revision from which this configuration was built.";
|
||||
description = "The nixpkgs git revision from which this configuration was built.";
|
||||
};
|
||||
|
||||
system.configurationRevision = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = lib.mdDoc "The Git revision of the top-level flake from which this configuration was built.";
|
||||
description = "The Git revision of the top-level flake from which this configuration was built.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ in
|
|||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "America/New_York";
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
The time zone used when displaying times and dates. See <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>
|
||||
or run {command}`sudo systemsetup -listtimezones`
|
||||
for a comprehensive list of possible values for this setting.
|
||||
|
|
|
@ -39,7 +39,7 @@ in
|
|||
users.knownGroups = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of groups owned and managed by nix-darwin. Used to indicate
|
||||
what users are safe to create/delete based on the configuration.
|
||||
Don't add system groups to this.
|
||||
|
@ -49,7 +49,7 @@ in
|
|||
users.knownUsers = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = lib.mdDoc ''
|
||||
description = ''
|
||||
List of users owned and managed by nix-darwin. Used to indicate
|
||||
what users are safe to create/delete based on the configuration.
|
||||
Don't add the admin user or other system users to this.
|
||||
|
@ -59,13 +59,13 @@ in
|
|||
users.groups = mkOption {
|
||||
type = types.attrsOf (types.submodule group);
|
||||
default = {};
|
||||
description = lib.mdDoc "Configuration for groups.";
|
||||
description = "Configuration for groups.";
|
||||
};
|
||||
|
||||
users.users = mkOption {
|
||||
type = types.attrsOf (types.submodule user);
|
||||
default = {};
|
||||
description = lib.mdDoc "Configuration for users.";
|
||||
description = "Configuration for users.";
|
||||
};
|
||||
|
||||
users.gids = mkOption {
|
||||
|
@ -84,7 +84,7 @@ in
|
|||
internal = true;
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Remove and recreate existing groups/users.";
|
||||
description = "Remove and recreate existing groups/users.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue