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" ];
auto-optimise-store = true;
};
nix.registry.nixpkgs.flake = inputs.nixpkgs;
nix.registry = {
hd.flake = inputs.self;
nixpkgs.flake = inputs.nixpkgs;
};
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,12 +132,14 @@
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
colmena.packages.${system}.colmena
agenix.packages.${system}.default
pkgs.openssl
];
devShells = import ./devshells { inherit pkgs; } // {
default = pkgs.mkShell {
buildInputs = [
colmena.packages.${system}.colmena
agenix.packages.${system}.default
pkgs.openssl
];
};
};
formatter = pkgs.nixfmt-tree;
}