Add fteshrss config
This commit is contained in:
parent
afa6f360d5
commit
821dec50c7
|
@ -3,6 +3,7 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
|
./profiles/freshrss.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
|
|
23
hosts/kamoshi/profiles/freshrss.nix
Normal file
23
hosts/kamoshi/profiles/freshrss.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
address = "rss.kamoshi.org";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
freshrss = {
|
||||||
|
defaultUser = "kamov";
|
||||||
|
passwordFile = "/root/secrets/freshrss/password";
|
||||||
|
baseUrl = "https://${address}";
|
||||||
|
virtualHost = address;
|
||||||
|
database.type = "sqlite";
|
||||||
|
};
|
||||||
|
nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts."${address}" = {
|
||||||
|
addSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue