morn: add miniflux
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
../../common/auto-upgrade.nix
|
||||
./hardware-configuration.nix
|
||||
|
||||
./services/nginx.nix
|
||||
./services/glance
|
||||
./services/miniflux.nix
|
||||
./services/nginx.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
@@ -23,7 +24,7 @@
|
||||
hostId = "89b7722d";
|
||||
};
|
||||
|
||||
sops.defaultSopsFile = ../../secrets/burnham/burnham.yaml;
|
||||
sops.defaultSopsFile = ../../secrets/morn/morn.yaml;
|
||||
|
||||
environment.variables = { EDITOR = "vim"; };
|
||||
|
||||
|
||||
23
hosts/morn/services/miniflux.nix
Normal file
23
hosts/morn/services/miniflux.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
domain = "rss.home.feal.no";
|
||||
listen_addr = "127.0.1.2:5051";
|
||||
in {
|
||||
sops.secrets."miniflux/env" = { };
|
||||
|
||||
services.miniflux = {
|
||||
enable = true;
|
||||
adminCredentialsFile = config.sops.secrets."miniflux/env".path;
|
||||
config = {
|
||||
CREATE_ADMIN = "1";
|
||||
|
||||
LISTEN_ADDR = listen_addr;
|
||||
BASE_URL = "http://${domain}";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
locations."/".proxyPass = "http://${listen_addr}";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user