add devshells

This commit is contained in:
Henri Dohmen 2025-10-26 10:32:39 +01:00
parent 2fce8c3c13
commit 2bb2a97377
Signed by: hd
GPG key ID: AB79213B044674AE
3 changed files with 18 additions and 7 deletions

View file

@ -13,6 +13,9 @@
trusted-users = [ "root" ]; trusted-users = [ "root" ];
auto-optimise-store = true; auto-optimise-store = true;
}; };
nix.registry.nixpkgs.flake = inputs.nixpkgs; nix.registry = {
hd.flake = inputs.self;
nixpkgs.flake = inputs.nixpkgs;
};
nixpkgs.config.allowUnfree = false; nixpkgs.config.allowUnfree = false;
} }

6
devshells/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs }:
{
agda = pkgs.mkShell {
buildINputs = with pkgs; [ agda ];
};
}

View file

@ -132,13 +132,15 @@
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in in
{ {
devShells.default = pkgs.mkShell { devShells = import ./devshells { inherit pkgs; } // {
default = pkgs.mkShell {
buildInputs = [ buildInputs = [
colmena.packages.${system}.colmena colmena.packages.${system}.colmena
agenix.packages.${system}.default agenix.packages.${system}.default
pkgs.openssl pkgs.openssl
]; ];
}; };
};
formatter = pkgs.nixfmt-tree; formatter = pkgs.nixfmt-tree;
} }
); );