2021-02-22 18:59:37 +01:00
|
|
|
{ pkgs, lib, config, ... }:
|
2022-01-11 16:08:21 +01:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
fileContents
|
|
|
|
mkOption
|
|
|
|
;
|
|
|
|
in {
|
|
|
|
options.my.secrets = let inherit (lib) types; in mkOption {
|
2021-02-14 13:42:43 +01:00
|
|
|
type = types.attrs;
|
|
|
|
};
|
|
|
|
|
|
|
|
config.my.secrets = {
|
2022-01-11 16:08:21 +01:00
|
|
|
miniflux-admin-credentials = fileContents ./miniflux-admin-credentials.secret;
|
|
|
|
transmission-password = fileContents ./transmission.secret;
|
2021-11-17 00:58:54 +01:00
|
|
|
nextcloud-admin-pass = ./nextcloud-admin-pass.secret;
|
2022-01-11 16:08:21 +01:00
|
|
|
nextcloud-admin-user = fileContents ./nextcloud-admin-user.secret;
|
|
|
|
lohr-shared-secret = fileContents ./lohr-shared-secret.secret;
|
2021-02-22 18:59:37 +01:00
|
|
|
|
2021-12-22 19:17:16 +01:00
|
|
|
paperless = import ./paperless { inherit lib; };
|
2021-08-09 19:34:23 +02:00
|
|
|
restic-backup = import ./restic-backup { inherit lib; };
|
2021-04-23 19:24:54 +02:00
|
|
|
|
2021-06-09 14:53:11 +02:00
|
|
|
matrixEmailConfig = import ./matrix-email-config.nix;
|
2021-02-14 13:42:43 +01:00
|
|
|
};
|
|
|
|
}
|