fixed stupid typo

This commit is contained in:
chloe 2024-07-17 14:43:03 +02:00
parent 296f0547a5
commit 488c4af6a0

View file

@ -1,24 +1,36 @@
{ config, lib, ... }: { config, lib, ... }:
with lib;
let
cfg = config.freshrss;
in
{ {
options = {
freshrss.url = mkOption {
type = types.str;
default = "http://192.168.1.177:3005";
};
};
config = {
sops.secrets = { sops.secrets = {
freshrss_username = { freshrss_username = {
path = ../secrets/freshrss.json; path = ../secrets/freshrss.json;
format = "json";
}; };
freshrss_password = { freshrss_password = {
path = ../secrets/freshrss.json; path = ../secrets/freshrss.json;
format = "json";
}; };
}; };
services.freshrss = { services.freshrss = {
enable = true; enable = true;
language = "fr"; language = "fr";
defaultUser = builtins.toString config.sops.secrets.freshrss_username; defaultUser = config.sops.secrets.freshrss_username;
baseUrl = "http://localhost:3005"; baseUrl = cfg.url;
passwordFile = "/run/secrets/freshrss_password"; passwordFile = config.sops.secrets.freshrss_password.path;
database = { database = {
type = "sqlite"; type = "sqlite";
}; };
}; };
};
} }