nixos-config/secrets/default.nix

30 lines
1.1 KiB
Nix
Raw Normal View History

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
matrix-registration-shared-secret = fileContents ./matrix-registration-shared-secret.secret;
shadow-hashed-password-alarsyo = fileContents ./shadow-hashed-password-alarsyo.secret;
shadow-hashed-password-root = fileContents ./shadow-hashed-password-root.secret;
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;
gandiKey = fileContents ./gandi-api-key.secret;
2021-02-22 18:59:37 +01:00
2021-04-23 19:24:54 +02:00
borg-backup = import ./borg-backup { inherit lib; };
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
};
}