mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 22:43:28 +01:00
disko2: Set up dev environment for python
This commit is contained in:
1 parent
0e55423bf8
commit
b102aeb547
4 files changed
+29
No files matched your search
@@ -1,4 +1,6 @@
|
|||||||
result
|
result
|
||||||
|
|
||||||
|
.direnv
|
||||||
|
|
||||||
# Created by the NixOS interactive test driver
|
# Created by the NixOS interactive test driver
|
||||||
.nixos-test-history
|
.nixos-test-history
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"mkhl.direnv",
|
||||||
|
"jnoortheen.nix-ide",
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.debugpy",
|
||||||
|
"ms-python.black-formatter",
|
||||||
|
"ms-python.isort"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -72,6 +72,22 @@
|
|||||||
inherit (self.packages.${system}) disko-doc;
|
inherit (self.packages.${system}) disko-doc;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
devShells = forAllSystems (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
name = "disko-dev";
|
||||||
|
packages = with pkgs; [
|
||||||
|
(python3.withPackages (ps: [
|
||||||
|
ps.black # Code formatter
|
||||||
|
ps.isort # Import sorter
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
nixosConfigurations.testmachine = lib.nixosSystem {
|
nixosConfigurations.testmachine = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
Reference in new issue
Block a user