Merge pull request #153219 from symphorien/doc-miniflux

nixos/miniflux: improve docs

authored by Guillaume Girol and committed by GitHub d5ddafd0 55ec2d9e

+7 -2
+7 -2
nixos/modules/services/web-apps/miniflux.nix
··· 4 4 let 5 5 cfg = config.services.miniflux; 6 6 7 + defaultAddress = "localhost:8080"; 8 + 7 9 dbUser = "miniflux"; 8 10 dbPassword = "miniflux"; 9 11 dbHost = "localhost"; ··· 31 33 { 32 34 options = { 33 35 services.miniflux = { 34 - enable = mkEnableOption "miniflux"; 36 + enable = mkEnableOption "miniflux and creates a local postgres database for it"; 35 37 36 38 config = mkOption { 37 39 type = types.attrsOf types.str; ··· 45 47 Configuration for Miniflux, refer to 46 48 <link xlink:href="https://miniflux.app/docs/configuration.html"/> 47 49 for documentation on the supported values. 50 + 51 + Correct configuration for the database is already provided. 52 + By default, listens on ${defaultAddress}. 48 53 ''; 49 54 }; 50 55 ··· 64 69 config = mkIf cfg.enable { 65 70 66 71 services.miniflux.config = { 67 - LISTEN_ADDR = mkDefault "localhost:8080"; 72 + LISTEN_ADDR = mkDefault defaultAddress; 68 73 DATABASE_URL = "postgresql://${dbUser}:${dbPassword}@${dbHost}/${dbName}?sslmode=disable"; 69 74 RUN_MIGRATIONS = "1"; 70 75 CREATE_ADMIN = "1";