Add dev shells

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-09-30 12:52:21 +04:00
parent 83d9007145
commit 41b417309d
6 changed files with 73 additions and 3 deletions

View File

@@ -45,6 +45,10 @@
url = "github:nix-community/NUR";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
ags = {
url = "github:Aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
@@ -68,7 +72,19 @@
modules = [ ./hosts/eirene ];
};
};
}
// inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells = {
nix = import ./hosts/common/system/shells/nix { inherit pkgs; };
python = import ./hosts/common/system/shells/python { inherit pkgs; };
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
};
formatter = pkgs.nixfmt-rfc-style;
}
);
}