add readme to modules/dev and add black formatter for python

This commit is contained in:
Sakooooo 2023-08-06 19:00:02 +03:00
parent d8be9e4bbe
commit 2152b0e919
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 16 additions and 5 deletions

View file

@ -11,6 +11,7 @@ null_ls.setup({
formatting.stylua,
formatting.csharpier,
formatting.alejandra,
formatting.black,
diagnostics.cpplint,
},
on_attach = function(client, bufnr)

4
modules/dev/README.md Normal file
View file

@ -0,0 +1,4 @@
# READ THIS!!
Do not add any dependencies to this!
Only add the native buildInputs/Required software (linters, lsp, compilers)

View file

@ -1,9 +1,14 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.python;
in
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.dev.python;
in {
options.modules.dev.python = {
enable = mkEnableOption false;
};
@ -11,6 +16,7 @@ in
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
python3
black
python310Packages.pip
];
};