Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: add types to boolean / enable options #86104

Merged
merged 1 commit into from Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions nixos/modules/config/fonts/fontdir.nix
Expand Up @@ -25,6 +25,7 @@ in
fonts = {

enableFontDir = mkOption {
type = types.bool;
default = false;
description = ''
Whether to create a directory with links to all fonts in
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/config/fonts/ghostscript.nix
Expand Up @@ -9,6 +9,7 @@ with lib;
fonts = {

enableGhostscriptFonts = mkOption {
type = types.bool;
default = false;
description = ''
Whether to add the fonts provided by Ghostscript (such as
Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/config/ldap.nix
Expand Up @@ -88,6 +88,7 @@ in
};

useTLS = mkOption {
type = types.bool;
default = false;
description = ''
If enabled, use TLS (encryption) over an LDAP (port 389)
Expand All @@ -109,6 +110,7 @@ in

daemon = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to let the nslcd daemon (nss-pam-ldapd) handle the
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/security/apparmor-suid.nix
Expand Up @@ -9,6 +9,7 @@ with lib;
];

options.security.apparmor.confineSUIDApplications = mkOption {
type = types.bool;
default = true;
description = ''
Install AppArmor profiles for commonly-used SUID application
Expand Down
15 changes: 3 additions & 12 deletions nixos/modules/security/pam.nix
Expand Up @@ -545,6 +545,7 @@ in
};

security.pam.enableSSHAgentAuth = mkOption {
type = types.bool;
default = false;
description =
''
Expand All @@ -555,12 +556,7 @@ in
'';
};

security.pam.enableOTPW = mkOption {
default = false;
description = ''
Enable the OTPW (one-time password) PAM module.
'';
};
security.pam.enableOTPW = mkEnableOption "the OTPW (one-time password) PAM module";

security.pam.u2f = {
enable = mkOption {
Expand Down Expand Up @@ -719,12 +715,7 @@ in
};
};

security.pam.enableEcryptfs = mkOption {
default = false;
description = ''
Enable eCryptfs PAM module (mounting ecryptfs home directory on login).
'';
};
security.pam.enableEcryptfs = mkEnableOption "eCryptfs PAM module (mounting ecryptfs home directory on login)";

users.motd = mkOption {
default = null;
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/mail/postfix.nix
Expand Up @@ -269,6 +269,7 @@ in
};

enableSmtp = mkOption {
type = types.bool;
default = true;
description = "Whether to enable smtp in master.cf.";
};
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/mail/spamassassin.nix
Expand Up @@ -15,6 +15,7 @@ in
enable = mkEnableOption "the SpamAssassin daemon";

debug = mkOption {
type = types.bool;
default = false;
description = "Whether to run the SpamAssassin daemon in debug mode";
};
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/misc/autofs.nix
Expand Up @@ -57,6 +57,7 @@ in
};

debug = mkOption {
type = types.bool;
default = false;
description = ''
Pass -d and -7 to automount and write log to the system journal.
Expand Down
5 changes: 1 addition & 4 deletions nixos/modules/services/misc/disnix.nix
Expand Up @@ -25,10 +25,7 @@ in
description = "Whether to support multi-user mode by enabling the Disnix D-Bus service";
};

useWebServiceInterface = mkOption {
default = false;
description = "Whether to enable the DisnixWebService interface running on Apache Tomcat";
};
useWebServiceInterface = mkEnableOption "the DisnixWebService interface running on Apache Tomcat";

package = mkOption {
type = types.path;
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/gogoclient.nix
Expand Up @@ -19,6 +19,7 @@ in
'';
};
autorun = mkOption {
type = types.bool;
default = true;
description = ''
Whether to automatically start the tunnel.
Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/services/networking/hostapd.nix
Expand Up @@ -72,6 +72,7 @@ in
};

noScan = mkOption {
type = types.bool;
default = false;
description = ''
Do not scan for overlapping BSSs in HT40+/- mode.
Expand Down Expand Up @@ -127,6 +128,7 @@ in
};

wpa = mkOption {
type = types.bool;
default = true;
description = ''
Enable WPA (IEEE 802.11i/D3.0) to authenticate with the access point.
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/openfire.nix
Expand Up @@ -12,6 +12,7 @@ with lib;
enable = mkEnableOption "OpenFire XMPP server";

usePostgreSQL = mkOption {
type = types.bool;
default = true;
description = "
Whether you use PostgreSQL service for your storage back-end.
Expand Down
6 changes: 6 additions & 0 deletions nixos/modules/services/networking/ssh/lshd.nix
Expand Up @@ -54,21 +54,25 @@ in
};

syslog = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable syslog output.'';
};

passwordAuthentication = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable password authentication.'';
};

publicKeyAuthentication = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable public key authentication.'';
};

rootLogin = mkOption {
type = types.bool;
default = false;
description = ''Whether to enable remote root login.'';
};
Expand All @@ -90,11 +94,13 @@ in
};

tcpForwarding = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable TCP/IP forwarding.'';
};

x11Forwarding = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable X11 forwarding.'';
};
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/tcpcrypt.nix
Expand Up @@ -15,6 +15,7 @@ in
options = {

networking.tcpcrypt.enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable opportunistic TCP encryption. If the other end
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/wicd.nix
Expand Up @@ -9,6 +9,7 @@ with lib;
options = {

networking.wicd.enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to start <command>wicd</command>. Wired and
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/web-servers/jboss/default.nix
Expand Up @@ -60,6 +60,7 @@ in
};

useJK = mkOption {
type = types.bool;
default = false;
description = "Whether to use to connector to the Apache HTTP server";
};
Expand Down
3 changes: 2 additions & 1 deletion nixos/modules/services/x11/display-managers/gdm.nix
Expand Up @@ -93,16 +93,17 @@ in
};

wayland = mkOption {
type = types.bool;
default = true;
description = ''
Allow GDM to run on Wayland instead of Xserver.
Note to enable Wayland with Nvidia you need to
enable the <option>nvidiaWayland</option>.
'';
type = types.bool;
};

nvidiaWayland = mkOption {
type = types.bool;
default = false;
description = ''
Whether to allow wayland to be used with the proprietary
Expand Down
7 changes: 1 addition & 6 deletions nixos/modules/services/x11/hardware/digimend.nix
Expand Up @@ -16,12 +16,7 @@ in

services.xserver.digimend = {

enable = mkOption {
default = false;
description = ''
Whether to enable the digimend drivers for Huion/XP-Pen/etc. tablets.
'';
};
enable = mkEnableOption "the digimend drivers for Huion/XP-Pen/etc. tablets";

};

Expand Down
11 changes: 3 additions & 8 deletions nixos/modules/virtualisation/xen-dom0.nix
Expand Up @@ -103,6 +103,7 @@ in
};

forwardDns = mkOption {
type = types.bool;
default = false;
description = ''
If set to <literal>true</literal>, the DNS queries from the
Expand Down Expand Up @@ -135,14 +136,8 @@ in
};
};

virtualisation.xen.trace =
mkOption {
default = false;
description =
''
Enable Xen tracing.
'';
};
virtualisation.xen.trace = mkEnableOption "Xen tracing";

};


Expand Down