nixos-config/secrets/default.nix

20 lines
476 B
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
miniflux-admin-credentials = fileContents ./miniflux-admin-credentials.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;
2021-02-22 18:59:37 +01:00
paperless = import ./paperless { inherit lib; };
2021-02-14 13:42:43 +01:00
};
}