summaryrefslogtreecommitdiffstats
path: root/lib/devShell.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2025-09-06 16:40:55 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2025-09-06 16:41:04 +0200
commit3010bb10e3b23ea3bec47048775aaf9c325b51a9 (patch)
tree60f95e51e9c813dd49906c6b0ed415f39a469f30 /lib/devShell.nix
parent6b0580e4add23addb567478bc51dc8e2d3226aa3 (diff)
add `shellHook` to `devShell`
Diffstat (limited to 'lib/devShell.nix')
-rw-r--r--lib/devShell.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/devShell.nix b/lib/devShell.nix
index 617210a..185907b 100644
--- a/lib/devShell.nix
+++ b/lib/devShell.nix
@@ -1,9 +1,15 @@
{ config, lib, pkgs, ... }:
{
options = {
- devShell.packages = lib.mkOption {
- type = lib.types.listOf lib.types.package;
- default = [ pkgs.npins ];
+ devShell = {
+ packages = lib.mkOption {
+ type = lib.types.listOf lib.types.package;
+ default = [ pkgs.npins ];
+ };
+ shellHook = lib.mkOption {
+ type = lib.types.str;
+ default = "";
+ };
};
outputs.devShell = lib.mkOption {
type = lib.types.package;