summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix1
-rw-r--r--lib/devShell.nix13
2 files changed, 14 insertions, 0 deletions
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;
+}