mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
started refactoring
This commit is contained in:
parent
729050b005
commit
f61d2eedef
36 changed files with 12 additions and 10 deletions
32
hosts/sisyphe/features/services/freshrss.nix
Normal file
32
hosts/sisyphe/features/services/freshrss.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ 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 = { };
|
||||
freshrss_password = { };
|
||||
};
|
||||
|
||||
services.freshrss = {
|
||||
enable = true;
|
||||
language = "fr";
|
||||
defaultUser = "";
|
||||
baseUrl = cfg.url;
|
||||
passwordFile = config.sops.secrets.freshrss_password.path;
|
||||
database = {
|
||||
type = "sqlite";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue