diff --git a/README.md b/README.md index 43c7a97..53f1880 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ # Erwin's NixOS config + +This configures my machines. + diff --git a/home-manager/modules/emacs/default.nix b/home-manager/modules/emacs/default.nix index 8a5d2da..d28ef2a 100644 --- a/home-manager/modules/emacs/default.nix +++ b/home-manager/modules/emacs/default.nix @@ -19,6 +19,15 @@ with lib; let mimeTypes = [ "x-scheme-handler/org-protocol" ]; startupWMClass = "Emacs"; }; + + valeToINI = generators.toINIWithGlobalSection { + mkKeyValue = generators.mkKeyValueDefault + { + mkValueString = v: + if builtins.isList v then builtins.concatStringsSep ", " v + else generators.mkValueStringDefault { } v; + } " = "; + }; in { options.eboskma.programs.emacs = { @@ -50,6 +59,20 @@ in }) orgProtocolDesktop 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" ]; + }; + }; + }; }; }