nixos/jenkins: remove use of types.string (it's deprecated)

Changed files
+7 -7
nixos
modules
services
continuous-integration
+4 -4
nixos/modules/services/continuous-integration/jenkins/default.nix
···
user = mkOption {
default = "jenkins";
-
type = with types; string;
description = ''
User the jenkins server should execute under.
'';
···
group = mkOption {
default = "jenkins";
-
type = with types; string;
description = ''
If the default user "jenkins" is configured then this is the primary
group of that user.
···
home = mkOption {
default = "/var/lib/jenkins";
-
type = with types; string;
description = ''
The path to use as JENKINS_HOME. If the default user "jenkins" is configured then
this is the home of the "jenkins" user.
···
environment = mkOption {
default = { NIX_REMOTE = "daemon"; };
-
type = with types; attrsOf string;
description = ''
Additional environment variables to be passed to the jenkins process.
The environment will always include JENKINS_HOME.
···
user = mkOption {
default = "jenkins";
+
type = types.str;
description = ''
User the jenkins server should execute under.
'';
···
group = mkOption {
default = "jenkins";
+
type = types.str;
description = ''
If the default user "jenkins" is configured then this is the primary
group of that user.
···
home = mkOption {
default = "/var/lib/jenkins";
+
type = types.path;
description = ''
The path to use as JENKINS_HOME. If the default user "jenkins" is configured then
this is the home of the "jenkins" user.
···
environment = mkOption {
default = { NIX_REMOTE = "daemon"; };
+
type = with types; attrsOf str;
description = ''
Additional environment variables to be passed to the jenkins process.
The environment will always include JENKINS_HOME.
+3 -3
nixos/modules/services/continuous-integration/jenkins/slave.nix
···
user = mkOption {
default = "jenkins";
-
type = with types; string;
description = ''
User the jenkins slave agent should execute under.
'';
···
group = mkOption {
default = "jenkins";
-
type = with types; string;
description = ''
If the default slave agent user "jenkins" is configured then this is
the primary group of that user.
···
home = mkOption {
default = "/var/lib/jenkins";
-
type = with types; string;
description = ''
The path to use as JENKINS_HOME. If the default user "jenkins" is configured then
this is the home of the "jenkins" user.
···
user = mkOption {
default = "jenkins";
+
type = types.str;
description = ''
User the jenkins slave agent should execute under.
'';
···
group = mkOption {
default = "jenkins";
+
type = types.str;
description = ''
If the default slave agent user "jenkins" is configured then this is
the primary group of that user.
···
home = mkOption {
default = "/var/lib/jenkins";
+
type = types.path;
description = ''
The path to use as JENKINS_HOME. If the default user "jenkins" is configured then
this is the home of the "jenkins" user.