add readme to modules/dev and add black formatter for python
This commit is contained in:
parent
d8be9e4bbe
commit
2152b0e919
|
@ -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
4
modules/dev/README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
# READ THIS!!
|
||||
|
||||
Do not add any dependencies to this!
|
||||
Only add the native buildInputs/Required software (linters, lsp, compilers)
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue