From 7af8e0246287076b59dba0e5d9f63b5be4a917f3 Mon Sep 17 00:00:00 2001 From: cswimr Date: Wed, 20 Nov 2024 12:33:59 -0500 Subject: [PATCH] chore(repo): flake formatting --- flake.nix | 52 +++++++++++++++++++++++----------------------------- 1 file changed, 23 insertions(+), 29 deletions(-) diff --git a/flake.nix b/flake.nix index f0ed09f..224293f 100644 --- a/flake.nix +++ b/flake.nix @@ -9,44 +9,38 @@ }; 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"; }; - outputs = { self, nixpkgs, devenv, systems, ... } @ inputs: - let - forEachSystem = nixpkgs.lib.genAttrs (import systems); - in - { + outputs = { self, nixpkgs, devenv, systems, ... }@inputs: + let forEachSystem = nixpkgs.lib.genAttrs (import systems); + in { packages = forEachSystem (system: { devenv-up = self.devShells.${system}.default.config.procfileScript; devenv-test = self.devShells.${system}.default.config.test; }); - devShells = forEachSystem - (system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in - { - default = devenv.lib.mkShell { - inherit inputs pkgs; - modules = [ - { - languages.python = { + devShells = forEachSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { + default = devenv.lib.mkShell { + inherit inputs pkgs; + modules = [{ + languages.python = { + enable = true; + version = "3.11"; + uv = { + enable = true; + sync = { enable = true; - version = "3.11"; - uv = { - enable = true; - sync = { - enable = true; - allExtras = true; - }; - }; + allExtras = true; }; - } - ]; - }; - }); + }; + }; + }]; + }; + }); }; }