diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-10-05 19:02:48 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-10-05 19:02:48 +0200 |
commit | 30f551d8b25782611f869369e54539efe745f5ea (patch) | |
tree | 73187d1c515078f33bfdaa5088ac41dc3f1ea2ce /nixos | |
parent | d067b7bd3502a64b852ad8511502ed35d20cbc1b (diff) | |
parent | 529a4050cdaf0f659534c2ba2d2565c43735ceb8 (diff) | |
download | nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.tar nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.tar.gz nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.tar.bz2 nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.tar.lz nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.tar.xz nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.tar.zst nixpkgs-30f551d8b25782611f869369e54539efe745f5ea.zip |
Merge branch 'master' into staging
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/development/reviewing-contributions.xml | 2 | ||||
-rw-r--r-- | nixos/modules/services/databases/mysql.nix | 18 | ||||
-rw-r--r-- | nixos/modules/services/editors/emacs.xml | 2 | ||||
-rw-r--r-- | nixos/modules/services/web-servers/phpfpm/default.nix | 9 |
4 files changed, 21 insertions, 10 deletions
diff --git a/nixos/doc/manual/development/reviewing-contributions.xml b/nixos/doc/manual/development/reviewing-contributions.xml index d13b40baeb6..f86928bcd5d 100644 --- a/nixos/doc/manual/development/reviewing-contributions.xml +++ b/nixos/doc/manual/development/reviewing-contributions.xml @@ -212,7 +212,7 @@ $ nix-shell -p nox --run "nox-review -k pr PRNUMBER" - [ ] build time only dependencies are declared in `nativeBuildInputs` - [ ] source is fetched using the appropriate function - [ ] phases are respected -- [ ] patches that are remotely available are fetched with `fetchPatch` +- [ ] patches that are remotely available are fetched with `fetchpatch` ##### Possible improvements diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 0b2f99f8fff..e5e8a57f4b0 100644 --- a/nixos/modules/services/databases/mysql.nix +++ b/nixos/modules/services/databases/mysql.nix @@ -43,6 +43,7 @@ in services.mysql = { enable = mkOption { + type = types.bool; default = false; description = " Whether to enable the MySQL server. @@ -51,6 +52,7 @@ in package = mkOption { type = types.package; + default = pkgs.mysql; example = literalExample "pkgs.mysql"; description = " Which MySQL derivation to use. @@ -58,16 +60,19 @@ in }; port = mkOption { - default = "3306"; + type = types.int; + default = 3306; description = "Port of MySQL"; }; user = mkOption { + type = types.str; default = "mysql"; description = "User account under which MySQL runs"; }; dataDir = mkOption { + type = types.path; default = "/var/mysql"; # !!! should be /var/db/mysql description = "Location where MySQL stores its table files"; }; @@ -78,6 +83,7 @@ in }; extraOptions = mkOption { + type = types.lines; default = ""; example = '' key_buffer_size = 6G @@ -115,32 +121,39 @@ in replication = { role = mkOption { + type = types.enum [ "master" "slave" "none" ]; default = "none"; - description = "Role of the MySQL server instance. Can be either: master, slave or none"; + description = "Role of the MySQL server instance."; }; serverId = mkOption { + type = types.int; default = 1; description = "Id of the MySQL server instance. This number must be unique for each instance"; }; masterHost = mkOption { + type = types.str; description = "Hostname of the MySQL master server"; }; slaveHost = mkOption { + type = types.str; description = "Hostname of the MySQL slave server"; }; masterUser = mkOption { + type = types.str; description = "Username of the MySQL replication user"; }; masterPassword = mkOption { + type = types.str; description = "Password of the MySQL replication user"; }; masterPort = mkOption { + type = types.int; default = 3306; description = "Port number on which the MySQL master server runs"; }; @@ -167,6 +180,7 @@ in systemd.services.mysql = { description = "MySQL Server"; + after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; unitConfig.RequiresMountsFor = "${cfg.dataDir}"; diff --git a/nixos/modules/services/editors/emacs.xml b/nixos/modules/services/editors/emacs.xml index 618460953a1..544e4a1076f 100644 --- a/nixos/modules/services/editors/emacs.xml +++ b/nixos/modules/services/editors/emacs.xml @@ -72,7 +72,7 @@ <term><varname>emacs25-nox</varname></term> <listitem> <para> - Emacs 24 built without any dependency on X11 + Emacs 25 built without any dependency on X11 libraries. </para> </listitem> diff --git a/nixos/modules/services/web-servers/phpfpm/default.nix b/nixos/modules/services/web-servers/phpfpm/default.nix index a3a23b222fb..787eed1c0ca 100644 --- a/nixos/modules/services/web-servers/phpfpm/default.nix +++ b/nixos/modules/services/web-servers/phpfpm/default.nix @@ -7,8 +7,6 @@ let stateDir = "/run/phpfpm"; - pidFile = "${stateDir}/phpfpm.pid"; - mkPool = n: p: '' [${n}] listen = ${p.listen} @@ -17,9 +15,8 @@ let cfgFile = pkgs.writeText "phpfpm.conf" '' [global] - pid = ${pidFile} error_log = syslog - daemonize = yes + daemonize = no ${cfg.extraConfig} ${concatStringsSep "\n" (mapAttrsToList mkPool cfg.pools)} @@ -43,7 +40,7 @@ in { description = '' Extra configuration that should be put in the global section of the PHP-FPM configuration file. Do not specify the options - <literal>pid</literal>, <literal>error_log</literal> or + <literal>error_log</literal> or <literal>daemonize</literal> here, since they are generated by NixOS. ''; @@ -129,8 +126,8 @@ in { mkdir -p "${stateDir}" ''; serviceConfig = { + Type = "notify"; ExecStart = "${cfg.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${phpIni}"; - PIDFile = pidFile; }; }; |