nixos-config/home/secrets/default.nix

20 lines
365 B
Nix
Raw Normal View History

{ lib, ... }:
2022-01-11 16:08:21 +01:00
let
inherit (lib)
fileContents
mkOption
types
;
in
{
options.my.secrets = mkOption {
type = types.attrs;
};
config.my.secrets = {
# I'm not sure hiding this is very important, but it *seems* like a bad idea
# to expose this
bluetooth-mouse-mac-address = fileContents ./bluetooth-mouse-mac-address.secret;
};
}