initial
This commit is contained in:
28
config/utils/cloak.nix
Normal file
28
config/utils/cloak.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
cloak.enable = lib.mkEnableOption "Enable cloak module";
|
||||
};
|
||||
config = lib.mkIf config.cloak.enable {
|
||||
plugins.cloak = {
|
||||
enable = true;
|
||||
settings = {
|
||||
cloak_character = "*";
|
||||
highlight_group = "Comment";
|
||||
patterns = [
|
||||
{
|
||||
file_pattern = [
|
||||
".env*"
|
||||
"wrangler.toml"
|
||||
".dev.vars"
|
||||
];
|
||||
cloak_pattern = "=.+";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user