list concatenation

This commit is contained in:
2024-12-18 13:30:55 -06:00
parent e05e6fcb45
commit 181babfa2a
4 changed files with 77 additions and 90 deletions

View File

@@ -10,28 +10,27 @@
home-manager.users.jawz.xdg.configFile."python/pythonrc".source = ../../dotfiles/pythonrc;
environment.variables.PYTHONSTARTUP = "\${XDG_CONFIG_HOME}/python/pythonrc";
users.users.jawz.packages =
let
packages = builtins.attrValues {
inherit (pkgs)
pipenv # python development workflow for humans
pyright # LSP
;
};
pythonPackages = builtins.attrValues {
inherit (pkgs.python3Packages)
black # Python code formatter
editorconfig # follow rules of contributin
flake8 # wraper for pyflakes, pycodestyle and mccabe
isort # sort Python imports
pyflakes # checks source code for errors
pylint # bug and style checker for python
speedtest-cli # check internet speed from the comand line
;
};
in
packages
builtins.attrValues {
inherit (pkgs)
pipenv # python development workflow for humans
pyright # LSP
;
}
++ [
(pkgs.python3.withPackages (_ps: pythonPackages))
(pkgs.python3.withPackages (
_ps:
builtins.attrValues {
inherit (pkgs.python3Packages)
black # Python code formatter
editorconfig # follow rules of contributin
flake8 # wraper for pyflakes, pycodestyle and mccabe
isort # sort Python imports
pyflakes # checks source code for errors
pylint # bug and style checker for python
speedtest-cli # check internet speed from the comand line
;
}
))
];
};
}