Added MySQL service to NixOS

svn path=/nixos/trunk/; revision=10305
This commit is contained in:
Sander van der Burg 2008-01-28 14:30:18 +00:00
parent e5025996ca
commit a73c26875a
2 changed files with 40 additions and 0 deletions

View file

@ -1519,6 +1519,40 @@
};
mysql = {
enable = mkOption {
default = false;
description = "
Whether to enable the MySQL server.
";
};
port = mkOption {
default = "3306";
description = "Port of MySQL";
};
user = mkOption {
default = "nobody";
description = "User account under which MySQL runs";
};
datadir = mkOption {
default = "/var/mysql";
description = "Location where MySQL stores its table files";
};
log_error = mkOption {
default = "/var/log/mysql_err.log";
description = "Location of the MySQL error logfile";
};
pid_file = mkOption {
default = "/var/mysql/mysql.pid";
description = "Location of the file which stores the PID of the MySQL server";
};
};
installer = {

View file

@ -168,6 +168,12 @@ let
})
*/
# MySQL server
++ optional config.services.mysql.enable
(import ../upstart-jobs/mysql.nix {
inherit config pkgs;
})
# Postgres SQL server
++ optional config.services.postgresql.enable
(import ../upstart-jobs/postgresql.nix {