diff options
author | JosephTheEngineer <jiuzzolino@outlook.com> | 2019-09-22 13:32:37 +0000 |
---|---|---|
committer | Robin Raymond <robin@robinraymond.de> | 2019-09-22 13:32:37 +0000 |
commit | b866182532df0a4f1a33059a6589edebc848da52 (patch) | |
tree | 8e9b64fd9b5360febb9bc30617031f0a2e6be349 /default.nix | |
parent | ab33e87cea1e3b980b5da258ef6d75d93a39e05e (diff) |
Remove use of the deprecated string type
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/default.nix b/default.nix index e4d8785..0c6271c 100644 --- a/default.nix +++ b/default.nix @@ -244,7 +244,7 @@ in }; hierarchySeparator = mkOption { - type = types.string; + type = types.str; default = "."; description = '' The hierarchy separator for mailboxes used by dovecot for the namespace 'inbox'. @@ -489,14 +489,14 @@ in enable = mkEnableOption "monitoring via monit"; alertAddress = mkOption { - type = types.string; + type = types.str; description = '' The email address to send alerts to. ''; }; config = mkOption { - type = types.string; + type = types.str; default = '' set daemon 120 with start delay 60 set mailserver @@ -548,7 +548,7 @@ in enable = mkEnableOption "backup via borgbackup"; repoLocation = mkOption { - type = types.string; + type = types.str; default = "/var/borgbackup"; description = '' The location where borg saves the backups. @@ -558,19 +558,19 @@ in }; startAt = mkOption { - type = types.string; + type = types.str; default = "hourly"; description = "When or how often the backup should run. Must be in the format described in systemd.time 7."; }; user = mkOption { - type = types.string; + type = types.str; default = "virtualMail"; description = "The user borg and its launch script is run as."; }; group = mkOption { - type = types.string; + type = types.str; default = "virtualMail"; description = "The group borg and its launch script is run as."; }; @@ -624,7 +624,7 @@ in }; name = mkOption { - type = types.string; + type = types.str; default = "{hostname}-{user}-{now}"; description = '' The name of the individual backups as used by borg. @@ -639,19 +639,19 @@ in }; extraArgumentsForInit = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = ["--critical"]; description = "Additional arguments to add to the borg init command line."; }; extraArgumentsForCreate = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = [ ]; description = "Additional arguments to add to the borg create command line e.g. '--stats'."; }; cmdPreexec = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; description = '' The command to be executed before each backup operation. @@ -662,7 +662,7 @@ in }; cmdPostexec = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; description = '' The command to be executed after each backup operation. @@ -706,7 +706,7 @@ in }; cmdPreexec = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; description = '' The command to be executed before each backup operation. This is wrapped in a shell script to be called by rsnapshot. @@ -714,7 +714,7 @@ in }; cmdPostexec = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; description = "The command to be executed after each backup operation. This is wrapped in a shell script to be called by rsnapshot."; }; @@ -738,7 +738,7 @@ in }; cronIntervals = mkOption { - type = types.attrsOf types.string; + type = types.attrsOf types.str; default = { # minute, hour, day-in-month, month, weekday (0 = sunday) hourly = " 0 * * * *"; # Every full hour |