-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.nix
47 lines (41 loc) · 1.14 KB
/
common.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, pkgs
, ...
}:
let
customPkgs = import ../custom-pkgs/default.nix pkgs;
in
{
programs.neovim.enable = true;
# mold-wrapped has the cursed nix linker shenanigans that make it produce properly rpathed binaries.
home.file.".cargo/config.toml" = {
text = ''
[target.x86_64-unknown-linux-gnu]
linker = "${lib.getExe pkgs.llvmPackages_16.clang}"
rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold-wrapped "mold"}", "-Ctarget-cpu=native"]
'';
};
programs.zoxide = {
enable = true;
enableFishIntegration = true;
};
programs.direnv = {
enable = true;
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
'';
shellAbbrs = {
flamegraph = "perf script | inferno-collapse-perf | inferno-flamegraph > out.svg && firefox out.svg";
g = "git";
};
shellAliases = {
x = "CARGO_MOMMYS_ACTUAL=${lib.getExe customPkgs.x} ${lib.getExe' pkgs.cargo-mommy "cargo-mommy"}";
};
};
programs.home-manager.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "22.11";
}