mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 23:20:18 +02:00
(feat): reformatted code for flakes usage
This commit is contained in:
parent
d29d6f0133
commit
c3956d6fa4
40 changed files with 130 additions and 76 deletions
36
features/server/services/freshrss.nix
Normal file
36
features/server/services/freshrss.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ 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