chore(repo): flake formatting
This commit is contained in:
parent
a40f78e88f
commit
7af8e02462
1 changed files with 23 additions and 29 deletions
52
flake.nix
52
flake.nix
|
@ -9,44 +9,38 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
extra-trusted-public-keys =
|
||||||
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
||||||
extra-substituters = "https://devenv.cachix.org";
|
extra-substituters = "https://devenv.cachix.org";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, devenv, systems, ... } @ inputs:
|
outputs = { self, nixpkgs, devenv, systems, ... }@inputs:
|
||||||
let
|
let forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||||
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: {
|
||||||
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
||||||
devenv-test = self.devShells.${system}.default.config.test;
|
devenv-test = self.devShells.${system}.default.config.test;
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forEachSystem
|
devShells = forEachSystem (system:
|
||||||
(system:
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
let
|
in {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
default = devenv.lib.mkShell {
|
||||||
in
|
inherit inputs pkgs;
|
||||||
{
|
modules = [{
|
||||||
default = devenv.lib.mkShell {
|
languages.python = {
|
||||||
inherit inputs pkgs;
|
enable = true;
|
||||||
modules = [
|
version = "3.11";
|
||||||
{
|
uv = {
|
||||||
languages.python = {
|
enable = true;
|
||||||
|
sync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
version = "3.11";
|
allExtras = true;
|
||||||
uv = {
|
|
||||||
enable = true;
|
|
||||||
sync = {
|
|
||||||
enable = true;
|
|
||||||
allExtras = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
}];
|
||||||
});
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue