Compare commits

..

3 Commits

Author SHA1 Message Date
0bfd4cfbd8 added readme so i dont forget anymore 2026-05-03 17:47:32 +01:00
b0ec23c2c6 added bun flake 2026-05-03 17:37:16 +01:00
79ccd11b5b added new thingys 2026-04-01 20:27:10 +01:00
5 changed files with 67 additions and 9 deletions

9
README.md Normal file
View 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
View 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
'';
};
}
);
}

View File

@@ -10,6 +10,10 @@
path = ./rust;
description = "A standard Rust development environment";
};
bun = {
path = ./bun;
description = "Flake for making a bun project";
};
};
};
}

View File

@@ -37,13 +37,15 @@
# Environment variables
shellHook = ''
export RUST_BACKTRACE=1
export RUST_BACKTRACE=1
export DEVSHELL_NAME="󱄅 flake/#89dceb|🦀 rustproject/red"
# Trigger zsh if not already in it
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
'';
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
'';
};
}
);

View File

@@ -28,10 +28,12 @@
# Environment variables
shellHook = ''
# Trigger zsh
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
export DEVSHELL_NAME="󱄅 flake/#89dceb"
# Trigger zsh
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
'';
};
}