Added dev environments through flakes + edit and flake nushell commands

This commit is contained in:
max_ag 2025-07-21 10:03:04 +02:00
parent 84bc5de209
commit b85918d3b1
10 changed files with 179 additions and 309 deletions

48
flakes/flake.lock generated Normal file
View file

@ -0,0 +1,48 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1752950548,
"narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c87b95e25065c028d31a94f06a62927d18763fdf",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1752979888,
"narHash": "sha256-qRRP3QavbwW0o+LOh31QNEfCgPlzK5SKlWALUJL6T7E=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "95719de18aefa63a624bf75a1ff98744b089ec12",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

47
flakes/flake.nix Normal file
View file

@ -0,0 +1,47 @@
{
description = "My rust development shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {nixpkgs, ...} @ inputs: let
system = "x86_64-linux";
overlays = [(import inputs.rust-overlay)];
pkgs = import nixpkgs {
inherit system overlays;
};
in {
devShells."${system}" = {
c = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
];
};
rust = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
rust-bin.beta.latest.default
];
};
c-sharp = pkgs.mkShell {
buildInputs = with pkgs; [
dotnetCorePackages.sdk_9_0-bin
]
}
rice = pkgs.mkShell {
buildInputs = with pkgs; [
cmatrix
asciiquarium
lavat
cbonsai
pipes
];
};
};
};
}