Compare commits
3 Commits
c5e728ff50
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0bfd4cfbd8 | |||
| b0ec23c2c6 | |||
| 79ccd11b5b |
9
README.md
Normal file
9
README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Flakes for stuff idk
|
||||||
|
Pull using following command:
|
||||||
|
```
|
||||||
|
nix flake init -t "git+https://git.voidarc.co.uk/voidarc/flakes#module"
|
||||||
|
```
|
||||||
|
or if you've added the registry then
|
||||||
|
```
|
||||||
|
nix flake init -t voidarc#module
|
||||||
|
```
|
||||||
41
bun/flake.nix
Normal file
41
bun/flake.nix
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
description = "A simple Rust development environment";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
utils,
|
||||||
|
}:
|
||||||
|
utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.default = pkgs.mkShell {
|
||||||
|
|
||||||
|
name = "flake-bunshell";
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
bun
|
||||||
|
];
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
shellHook = ''
|
||||||
|
export DEVSHELL_NAME=" flake/#89dceb| Bun/yellow"
|
||||||
|
|
||||||
|
# Trigger zsh
|
||||||
|
if [[ -z "$ZSH_VERSION" ]]; then
|
||||||
|
exec zsh
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -10,6 +10,10 @@
|
|||||||
path = ./rust;
|
path = ./rust;
|
||||||
description = "A standard Rust development environment";
|
description = "A standard Rust development environment";
|
||||||
};
|
};
|
||||||
|
bun = {
|
||||||
|
path = ./bun;
|
||||||
|
description = "Flake for making a bun project";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,8 @@
|
|||||||
# Environment variables
|
# Environment variables
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
|
export DEVSHELL_NAME=" flake/#89dceb|🦀 rustproject/red"
|
||||||
|
|
||||||
|
|
||||||
# Trigger zsh if not already in it
|
# Trigger zsh if not already in it
|
||||||
if [[ -z "$ZSH_VERSION" ]]; then
|
if [[ -z "$ZSH_VERSION" ]]; then
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
export DEVSHELL_NAME=" flake/#89dceb"
|
||||||
|
|
||||||
# Trigger zsh
|
# Trigger zsh
|
||||||
if [[ -z "$ZSH_VERSION" ]]; then
|
if [[ -z "$ZSH_VERSION" ]]; then
|
||||||
exec zsh
|
exec zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user