nixos-config/secrets/default.nix

22 lines
601 B
Nix

{ pkgs, lib, config, ... }:
let
inherit (lib)
fileContents
mkOption
;
in {
options.my.secrets = let inherit (lib) types; in mkOption {
type = types.attrs;
};
config.my.secrets = {
miniflux-admin-credentials = fileContents ./miniflux-admin-credentials.secret;
transmission-password = fileContents ./transmission.secret;
nextcloud-admin-pass = ./nextcloud-admin-pass.secret;
nextcloud-admin-user = fileContents ./nextcloud-admin-user.secret;
paperless = import ./paperless { inherit lib; };
restic-backup = import ./restic-backup { inherit lib; };
};
}