aboutsummaryrefslogtreecommitdiff
path: root/hosts/laurel
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-04-15 16:35:14 +0100
committerAkshay <[email protected]>2024-04-15 16:35:14 +0100
commit002cb50ba3bff816beffc0a679217738d0d8fea9 (patch)
tree69035f3745bb985aa3a28c55bda23c33749c8aa5 /hosts/laurel
parent52c6c494cadea419a468532714d486292d90470c (diff)
laurel: add miniflux
Diffstat (limited to 'hosts/laurel')
-rw-r--r--hosts/laurel/configuration.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix
index a40dafd..541f185 100644
--- a/hosts/laurel/configuration.nix
+++ b/hosts/laurel/configuration.nix
@@ -115,15 +115,32 @@
115 }; 115 };
116 }; 116 };
117 117
118 services.miniflux = {
119 enable = true;
120 adminCredentialsFile = "/etc/miniflux/admin";
121 config = {
122 FETCH_YOUTUBE_WATCH_TIME = 1;
123 PORT = 8383;
124 BASE_URL = "http://rss.laurel";
125 };
126 };
127 services.nginx.virtualHosts."rss.laurel" = {
128 listen = [{ port = 80; addr = "0.0.0.0"; }];
129 locations."/" = {
130 proxyPass = "http://127.0.0.1:${builtins.toString config.services.miniflux.config.PORT}";
131 };
132 };
133
118 services.nginx.virtualHosts."oppi.li" = { 134 services.nginx.virtualHosts."oppi.li" = {
119 listen = [{ port = 8282; addr = "0.0.0.0"; }]; 135 listen = [{ port = 8282; addr = "0.0.0.0"; }];
120 root = "/home/op/site/docs"; 136 root = "/www/site/docs";
121 locations."/" = { 137 locations."/" = {
122 tryFiles = "$uri $uri/ =404"; 138 tryFiles = "$uri $uri/ =404";
123 index = "index.html"; 139 index = "index.html";
124 }; 140 };
125 }; 141 };
126 142
143
127 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 144 nix.settings.experimental-features = [ "nix-command" "flakes" ];
128 145
129 # This option defines the first version of NixOS you have installed on this particular machine, 146 # This option defines the first version of NixOS you have installed on this particular machine,