feat: added devshell support

This commit is contained in:
Patrick Großmann 2023-05-22 20:38:10 +09:00
parent c659b85f23
commit 54c733b378
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
5 changed files with 24 additions and 5 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv

2
default/.envrc Normal file
View file

@ -0,0 +1,2 @@
nix_direnv_watch_file ./flake.nix
use flake

1
default/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv

12
default/devshell.toml Normal file
View file

@ -0,0 +1,12 @@
[devshell]
name = "Patricks tolle devshell"
packages = [
"nil",
"sl"
]
[[env]]
name = "lol"
value = "lel"

View file

@ -4,20 +4,23 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
devshell.url = "github:numtide/devshell";
}; };
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
devshell,
}: }:
flake-utils.lib.eachDefaultSystem (system: let flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;}; pkgs = import nixpkgs {
inherit system;
overlays = [devshell.overlays.default];
};
in { in {
devShells.default = pkgs.mkShell { devShell = pkgs.devshell.mkShell {
packages = with pkgs; [ imports = [(pkgs.devshell.importTOML ./devshell.toml)];
st
];
}; };
}); });
} }