summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2025-09-06 14:58:08 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2025-09-06 15:05:13 +0200
commit294ab87d692889cbf7536af37523053b83fb7bf4 (patch)
treeaa12354ef049976f54adfee9e2f34dc8d49ddceb
parenteba6e440861a9f94f6837bb6b37fd2ef7e4e0446 (diff)
add lib/devShell.nix
-rw-r--r--.envrc1
-rw-r--r--lib/default.nix1
-rw-r--r--lib/devShell.nix13
-rw-r--r--shell.nix1
4 files changed, 16 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..1d953f4
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use nix
diff --git a/lib/default.nix b/lib/default.nix
index 430d6ec..bf756b1 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -12,6 +12,7 @@ in
lib.evalModules {
modules = [
config
+ ./devShell.nix
./machines.nix
./nixosModules.nix
];
diff --git a/lib/devShell.nix b/lib/devShell.nix
new file mode 100644
index 0000000..110b857
--- /dev/null
+++ b/lib/devShell.nix
@@ -0,0 +1,13 @@
+{ config, lib, pkgs, ... }:
+{
+ options = {
+ devShell = lib.mkOption {
+ type = lib.types.attrsOf lib.types.unspecified;
+ default = pkgs.mkShell {};
+ };
+ outputs.devShell = lib.mkOption {
+ type = lib.types.package;
+ };
+ };
+ config.outputs.devShell = config.devShell;
+}
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..a41f858
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1 @@
+(import ./. {}).config.outputs.devShell