JHOTQEAZM26AZEYLC3IZVPCZZMXCL7K6V2UEGE3ABGO4GL67AT6QC
"fenix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1654410272,
"narHash": "sha256-C1VD8lzbKdWVesiromwzhK89r8jkOSTsXwfsyHkvGOQ=",
"owner": "nix-community",
"repo": "fenix",
"rev": "e4248359f88fd5b421b7ab6a3e73de4d955b018f",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1654386005,
"narHash": "sha256-/YL7bqjFoCT64UcfLmgDIvTqWWYxegm6UZOYNNQ64xI=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "815b43429d85b6c6739f01c3b2ae689f5747a2e8",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
nixpkgs.overlays = [
(
let
fenix = builtins.fetchTarball {
url = "https://github.com/nix-community/fenix/archive/8dccfbe51a8adea643ec29a4ec516499a5a081c6.tar.gz";
sha256 = "1nckkl9m6f28ifbk6dgvzyjxf41bja7iinpf3j0p18zfsz3v7qzs";
};
in import "${fenix}/overlay.nix"
)
];
nixpkgs.overlays = [ fenix.overlay ];
home.username = "nixos";
home.homeDirectory = "/home/nixos";
home.sessionVariables.EDITOR = "hx";
home.packages = with pkgs; [
lldb
rustToolchain
];
home = {
username = "nixos";
homeDirectory = "/home/nixos";
sessionVariables.EDITOR = "hx";
};
home.packages = with pkgs; [ bintools clang lldb rustToolchain mold ];
home.file.".cargo/config.toml".source =
(pkgs.formats.toml { }).generate "cargo-config" {
target.x86_64-unknown-linux-gnu = {
linker = "clang";
rustflags = [ "-C" "link-arg=-fuse-ld=${pkgs.mold}/bin/mold" ];
};
};
languages = [
{
name = "rust";
language-server = {
command = "${rustToolchain}/bin/rust-analyzer";
};
debugger = {
name = "rust-lldb";
transport = "stdio";
command = "${rustToolchain}/bin/rust-lldb";
};
}
];
languages = [{
name = "rust";
language-server = { command = "${rustToolchain}/bin/rust-analyzer"; };
}];
set -l nix_shell_info (
if test -n "$IN_NIX_SHELL"
echo -n "<nix-shell> "
end
)
set -l last_status $status
echo
prompt_login
echo -n ':'
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
__terlar_git_prompt
fish_hg_prompt
echo
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n "$nix_shell_info➤ "
set_color normal