Compare commits

..

3 Commits

Author SHA1 Message Date
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
4 changed files with 44 additions and 3 deletions

1
.gitignore vendored Normal file
View File

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

View File

@@ -1,12 +1,13 @@
{ {
description = "A very basic flake"; description = "Provides nix flakes for development";
outputs = outputs =
{ self }: { self }:
{ {
templates = { templates = {
rust = { rust = {
path = ./rust-template; path = ./rust;
description = "A standard Rust development environment"; description = "A standard Rust development environment";
}; };
}; };

View File

@@ -20,7 +20,7 @@
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
name = "rustshell"; name = "flake-rustshell";
buildInputs = with pkgs; [ buildInputs = with pkgs; [
# Rust toolchain # Rust toolchain

39
shell/flake.nix Normal file
View File

@@ -0,0 +1,39 @@
{
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 = ''
# Trigger zsh
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
'';
};
}
);
}