mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
disko2: Set up dev environment for python
This commit is contained in:
parent
0e55423bf8
commit
b102aeb547
4 changed files with 29 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
|||
result
|
||||
|
||||
.direnv
|
||||
|
||||
# Created by the NixOS interactive test driver
|
||||
.nixos-test-history
|
10
.vscode/extensions.json
vendored
Normal file
10
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"mkhl.direnv",
|
||||
"jnoortheen.nix-ide",
|
||||
"ms-python.python",
|
||||
"ms-python.debugpy",
|
||||
"ms-python.black-formatter",
|
||||
"ms-python.isort"
|
||||
]
|
||||
}
|
16
flake.nix
16
flake.nix
|
@ -72,6 +72,22 @@
|
|||
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 {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
|
|
Loading…
Reference in a new issue