Add vale
This commit is contained in:
parent
ee618c1846
commit
c82df269e2
2 changed files with 26 additions and 0 deletions
|
@ -1 +1,4 @@
|
||||||
# Erwin's NixOS config
|
# Erwin's NixOS config
|
||||||
|
|
||||||
|
This configures my machines.
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,15 @@ with lib; let
|
||||||
mimeTypes = [ "x-scheme-handler/org-protocol" ];
|
mimeTypes = [ "x-scheme-handler/org-protocol" ];
|
||||||
startupWMClass = "Emacs";
|
startupWMClass = "Emacs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
valeToINI = generators.toINIWithGlobalSection {
|
||||||
|
mkKeyValue = generators.mkKeyValueDefault
|
||||||
|
{
|
||||||
|
mkValueString = v:
|
||||||
|
if builtins.isList v then builtins.concatStringsSep ", " v
|
||||||
|
else generators.mkValueStringDefault { } v;
|
||||||
|
} " = ";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.eboskma.programs.emacs = {
|
options.eboskma.programs.emacs = {
|
||||||
|
@ -50,6 +59,20 @@ in
|
||||||
})
|
})
|
||||||
orgProtocolDesktop
|
orgProtocolDesktop
|
||||||
nodePackages.bash-language-server
|
nodePackages.bash-language-server
|
||||||
|
vale
|
||||||
|
vale.data
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.file.".vale.ini".text = valeToINI {
|
||||||
|
globalSection = {
|
||||||
|
StylesPath = "${pkgs.vale.data}/share/vale/styles";
|
||||||
|
MinAlertLevel = "suggestion";
|
||||||
|
};
|
||||||
|
sections = {
|
||||||
|
"*" = {
|
||||||
|
BasedOnStyles = [ "vale" "proselint" "write-good" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue