From 6eadb16022b6e52f3cdb2167aaa7b82e221bfc1a Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Mon, 17 Aug 2015 17:52:45 +0000 Subject: nixos: fix some types --- nixos/modules/programs/venus.nix | 14 +++++++------- nixos/modules/programs/wvdial.nix | 4 ++-- nixos/modules/programs/xfs_quota.nix | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'nixos/modules/programs') diff --git a/nixos/modules/programs/venus.nix b/nixos/modules/programs/venus.nix index 3b5ae07e82f7..ca3188b18199 100644 --- a/nixos/modules/programs/venus.nix +++ b/nixos/modules/programs/venus.nix @@ -41,7 +41,7 @@ in dates = mkOption { default = "*:0/15"; - type = types.string; + type = types.str; description = '' Specification (in the format described by systemd.time @@ -52,7 +52,7 @@ in user = mkOption { default = "root"; - type = types.string; + type = types.str; description = '' User for running venus script. ''; @@ -60,7 +60,7 @@ in group = mkOption { default = "root"; - type = types.string; + type = types.str; description = '' Group for running venus script. ''; @@ -68,7 +68,7 @@ in name = mkOption { default = "NixOS Planet"; - type = types.string; + type = types.str; description = '' Your planet's name. ''; @@ -76,7 +76,7 @@ in link = mkOption { default = "http://planet.nixos.org"; - type = types.string; + type = types.str; description = '' Link to the main page. ''; @@ -84,7 +84,7 @@ in ownerName = mkOption { default = "Rok Garbas"; - type = types.string; + type = types.str; description = '' Your name. ''; @@ -92,7 +92,7 @@ in ownerEmail = mkOption { default = "some@example.com"; - type = types.string; + type = types.str; description = '' Your e-mail address. ''; diff --git a/nixos/modules/programs/wvdial.nix b/nixos/modules/programs/wvdial.nix index 8e7d0e51a4e0..1ed929ed4afa 100644 --- a/nixos/modules/programs/wvdial.nix +++ b/nixos/modules/programs/wvdial.nix @@ -24,7 +24,7 @@ in dialerDefaults = mkOption { default = ""; - type = types.string; + type = types.str; example = ''Init1 = AT+CGDCONT=1,"IP","internet.t-mobile"''; description = '' Contents of the "Dialer Defaults" section of @@ -40,7 +40,7 @@ in persist noauth ''; - type = types.string; + type = types.str; description = "Default ppp settings for wvdial."; }; diff --git a/nixos/modules/programs/xfs_quota.nix b/nixos/modules/programs/xfs_quota.nix index d30a85922cff..90b6304fa999 100644 --- a/nixos/modules/programs/xfs_quota.nix +++ b/nixos/modules/programs/xfs_quota.nix @@ -32,25 +32,25 @@ in }; fileSystem = mkOption { - type = types.string; + type = types.str; description = "XFS filesystem hosting the xfs_quota project."; default = "/"; }; path = mkOption { - type = types.string; + type = types.str; description = "Project directory."; }; sizeSoftLimit = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; example = "30g"; description = "Soft limit of the project size"; }; sizeHardLimit = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; example = "50g"; description = "Hard limit of the project size."; -- cgit 1.4.1