mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #153219 from symphorien/doc-miniflux
nixos/miniflux: improve docs
This commit is contained in:
commit
d5ddafd0fa
1 changed files with 7 additions and 2 deletions
|
@ -4,6 +4,8 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.services.miniflux;
|
cfg = config.services.miniflux;
|
||||||
|
|
||||||
|
defaultAddress = "localhost:8080";
|
||||||
|
|
||||||
dbUser = "miniflux";
|
dbUser = "miniflux";
|
||||||
dbPassword = "miniflux";
|
dbPassword = "miniflux";
|
||||||
dbHost = "localhost";
|
dbHost = "localhost";
|
||||||
|
@ -31,7 +33,7 @@ in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
services.miniflux = {
|
services.miniflux = {
|
||||||
enable = mkEnableOption "miniflux";
|
enable = mkEnableOption "miniflux and creates a local postgres database for it";
|
||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
|
@ -45,6 +47,9 @@ in
|
||||||
Configuration for Miniflux, refer to
|
Configuration for Miniflux, refer to
|
||||||
<link xlink:href="https://miniflux.app/docs/configuration.html"/>
|
<link xlink:href="https://miniflux.app/docs/configuration.html"/>
|
||||||
for documentation on the supported values.
|
for documentation on the supported values.
|
||||||
|
|
||||||
|
Correct configuration for the database is already provided.
|
||||||
|
By default, listens on ${defaultAddress}.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,7 +69,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
services.miniflux.config = {
|
services.miniflux.config = {
|
||||||
LISTEN_ADDR = mkDefault "localhost:8080";
|
LISTEN_ADDR = mkDefault defaultAddress;
|
||||||
DATABASE_URL = "postgresql://${dbUser}:${dbPassword}@${dbHost}/${dbName}?sslmode=disable";
|
DATABASE_URL = "postgresql://${dbUser}:${dbPassword}@${dbHost}/${dbName}?sslmode=disable";
|
||||||
RUN_MIGRATIONS = "1";
|
RUN_MIGRATIONS = "1";
|
||||||
CREATE_ADMIN = "1";
|
CREATE_ADMIN = "1";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue