Commit for generation 91
This commit is contained in:
61
devflakes/rust/flake.lock
generated
61
devflakes/rust/flake.lock
generated
@@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1726560853,
|
|
||||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1726937504,
|
|
||||||
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "9357f4f23713673f310988025d9dc261c20e70c6",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
description = "A flake for a clean Rust development environment";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
|
||||||
let
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
overlays = [
|
|
||||||
(self: super: {
|
|
||||||
inherit (super) nixvim zsh git;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in rec {
|
|
||||||
devShell = pkgs.mkShell {
|
|
||||||
name = "rust-dev-env";
|
|
||||||
buildInputs = [
|
|
||||||
pkgs.rustup # Rust toolchain manager
|
|
||||||
pkgs.cargo # Cargo package manager
|
|
||||||
pkgs.rustc # Rust compiler
|
|
||||||
pkgs.cargo-watch # Automatically rebuilds Cargo project on change
|
|
||||||
pkgs.clippy # Linter for Rust
|
|
||||||
pkgs.rustfmt # Rust code formatting
|
|
||||||
pkgs.pkg-config # Needed for many Rust dependencies
|
|
||||||
pkgs.openssl # OpenSSL (common Rust dependency)
|
|
||||||
];
|
|
||||||
|
|
||||||
shellHook = ''
|
|
||||||
echo "Rust dev environment initialized"
|
|
||||||
export SHELL=$(which zsh)
|
|
||||||
[ -f $HOME/.zshrc ] && source $HOME/.zshrc
|
|
||||||
rustup default stable
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -59,6 +59,8 @@
|
|||||||
alsa-utils
|
alsa-utils
|
||||||
alsa-lib
|
alsa-lib
|
||||||
zsh
|
zsh
|
||||||
|
rustc
|
||||||
|
cargo
|
||||||
git
|
git
|
||||||
kitty
|
kitty
|
||||||
xwaylandvideobridge
|
xwaylandvideobridge
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
nil-ls.enable = true;
|
nil-ls.enable = true;
|
||||||
pyright.enable = true;
|
pyright.enable = true;
|
||||||
sqls.enable = true;
|
sqls.enable = true;
|
||||||
|
rust-analyzer.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
wifi = "nmtui-connect";
|
enterwifi = "nmtui-connect";
|
||||||
grep = "grep --color=auto";
|
grep = "grep --color=auto";
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
mv = "mv -v";
|
mv = "mv -v";
|
||||||
|
|||||||
Reference in New Issue
Block a user