Compare commits

..

6 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
c5e728ff50 inkeeping with oh my posh 2026-04-01 14:41:51 +01:00
274f92ef10 added ignore for lock files 2026-04-01 14:20:48 +01:00
fd7f8e7748 fixed it 2026-04-01 14:19:21 +01:00
6 changed files with 107 additions and 8 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
flake.lock

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

@@ -1,14 +1,19 @@
{
description = "A very basic flake";
description = "Provides nix flakes for development";
outputs =
{ self }:
{
templates = {
rust = {
path = ./rust-template;
path = ./rust;
description = "A standard Rust development environment";
};
bun = {
path = ./bun;
description = "Flake for making a bun project";
};
};
};
}

View File

@@ -20,7 +20,7 @@
{
devShells.default = pkgs.mkShell {
name = "rustshell";
name = "flake-rustshell";
buildInputs = with pkgs; [
# Rust toolchain
@@ -38,6 +38,8 @@
# Environment variables
shellHook = ''
export RUST_BACKTRACE=1
export DEVSHELL_NAME="󱄅 flake/#89dceb|🦀 rustproject/red"
# Trigger zsh if not already in it
if [[ -z "$ZSH_VERSION" ]]; then

41
shell/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";
buildInputs = with pkgs; [
# Add packages
];
# Environment variables
shellHook = ''
export DEVSHELL_NAME="󱄅 flake/#89dceb"
# Trigger zsh
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
'';
};
}
);
}