mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/freshrss: fix phpfpm.pool
This commit is contained in:
parent
01b7c60b9c
commit
6290926fed
1 changed files with 4 additions and 6 deletions
|
@ -4,8 +4,6 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.services.freshrss;
|
cfg = config.services.freshrss;
|
||||||
|
|
||||||
poolName = "freshrss";
|
|
||||||
|
|
||||||
extension-env = pkgs.buildEnv {
|
extension-env = pkgs.buildEnv {
|
||||||
name = "freshrss-extensions";
|
name = "freshrss-extensions";
|
||||||
paths = cfg.extensions;
|
paths = cfg.extensions;
|
||||||
|
@ -141,8 +139,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
pool = mkOption {
|
pool = mkOption {
|
||||||
type = types.str;
|
type = types.nullOr types.str;
|
||||||
default = poolName;
|
default = "freshrss";
|
||||||
description = ''
|
description = ''
|
||||||
Name of the php-fpm pool to use and setup. If not specified, a pool will be created
|
Name of the php-fpm pool to use and setup. If not specified, a pool will be created
|
||||||
with default values.
|
with default values.
|
||||||
|
@ -235,8 +233,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set up phpfpm pool
|
# Set up phpfpm pool
|
||||||
services.phpfpm.pools = mkIf (cfg.pool == poolName) {
|
services.phpfpm.pools = mkIf (cfg.pool != null) {
|
||||||
${poolName} = {
|
${cfg.pool} = {
|
||||||
user = "freshrss";
|
user = "freshrss";
|
||||||
settings = {
|
settings = {
|
||||||
"listen.owner" = "nginx";
|
"listen.owner" = "nginx";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue