feat(direnv): init #11
3
direnv/.envrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
this is very annoying for anyone who uses direnv but not nix(-direnv) ```suggestion
if has nix_direnv_version; then
use flake
fi
```
this is very annoying for anyone who uses direnv but not nix(-direnv)
|
||||
if has nix_direnv_version; then
|
||||
this is very annoying for anyone who uses direnv but not nix(-direnv) ```suggestion
if has nix_direnv_version; then
use flake
fi
```
this is very annoying for anyone who uses direnv but not nix(-direnv)
|
||||
use flake
|
||||
this is very annoying for anyone who uses direnv but not nix(-direnv) ```suggestion
if has nix_direnv_version; then
use flake
fi
```
this is very annoying for anyone who uses direnv but not nix(-direnv)
|
||||
fi
|
||||
this is very annoying for anyone who uses direnv but not nix(-direnv) ```suggestion
if has nix_direnv_version; then
use flake
fi
```
this is very annoying for anyone who uses direnv but not nix(-direnv)
|
29
direnv/flake.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
{
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
description = "An empty devshell with direnv support";
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixpkgs-unstable";
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
outputs =
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
{ nixpkgs, ... }:
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
let
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
forAllSystems =
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
function:
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
nixpkgs.lib.genAttrs [
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
"x86_64-linux"
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
"aarch64-linux"
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
"x86_64-darwin"
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
"aarch64-darwin"
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
] (system: function nixpkgs.legacyPackages.${system});
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
in
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
{
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
devShells = forAllSystems (pkgs: {
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
default = pkgs.mkShellNoCC {
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
packages = [ pkgs.hello ];
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
EXAMPLE_VAR = "inside the direnv template";
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
shellHook = ''
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
echo "Hello from $EXAMPLE_VAR, $(whoami)!"
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
'';
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
};
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
});
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
};
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
||||
}
|
||||
we can follow our own flake here. ```suggestion
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
```
we can follow our own flake here. `mkShellNoCC` should also be used as to avoid any massive download of toolchains. as for the env var, we could put the command `echo $IN_SHELL` in a tutorial
|
|
@ -17,7 +17,7 @@
|
|||
in
|
||||
{
|
||||
templates = {
|
||||
default = self.templates.direnv;
|
||||
default = self.templates.system;
|
||||
system = {
|
||||
path = ./system;
|
||||
description = "";
|
||||
|
@ -30,6 +30,10 @@
|
|||
path = ./darwin;
|
||||
description = "";
|
||||
};
|
||||
direnv = {
|
||||
path = ./direnv;
|
||||
description = "An empty devshell with direnv support";
|
||||
};
|
||||
};
|
||||
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
||||
};
|
||||
|
|
this is very annoying for anyone who uses direnv but not nix(-direnv)