mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 07:00:21 +02:00
huge refactoring
This commit is contained in:
parent
fffcee128e
commit
7a2fba99cd
30 changed files with 246 additions and 201 deletions
|
@ -1,36 +0,0 @@
|
|||
{ 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 = {
|
||||
freshrss_username = {
|
||||
sopsFile = ../secrets/freshrss.yaml;
|
||||
};
|
||||
freshrss_password = {
|
||||
sopsFile = ../secrets/freshrss.yaml;
|
||||
};
|
||||
};
|
||||
|
||||
services.freshrss = {
|
||||
enable = true;
|
||||
language = "fr";
|
||||
defaultUser = config.sops.secrets.freshrss_username;
|
||||
baseUrl = cfg.url;
|
||||
passwordFile = config.sops.secrets.freshrss_password.path;
|
||||
database = {
|
||||
type = "sqlite";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue