NOflake/users/tao/home.nix
2024-02-15 16:16:07 -08:00

88 lines
1.7 KiB
Nix

{ pkgs, inputs, ... }: {
imports = [
(import ./helix.nix { inherit pkgs inputs; })
# ./hyprland.nix
];
programs = {
jujutsu = {
enable = true;
settings = {
user = {
name = "Tao Tien";
email = "29749622+taotien@users.noreply.github.com";
};
ui =
{
default-command = "log";
};
};
};
git = {
enable = true;
userName = "Tao Tien";
userEmail = "29749622+taotien@users.noreply.github.com";
};
nushell = {
enable = true;
configFile.source = ./config.nu;
envFile.source = ./env.nu;
};
starship = {
enable = true;
enableNushellIntegration = true;
settings = builtins.fromTOML (builtins.readFile ./starship.toml);
};
wezterm = {
enable = true;
extraConfig = builtins.readFile ./wezterm.lua;
};
zellij = {
enable = true;
settings = { };
};
zoxide = {
enable = true;
enableNushellIntegration = true;
};
};
home.file.".cargo/config.toml".text = ''
[alias]
rr = "run --release"
[build]
target = "x86_64-unknown-linux-musl"
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
[unstable]
codegen-backend = true
[provile.dev]
debug = 0
strip = "debuginfo"
lto = "off"
codegen-backend = "cranelift"
[profile.release]
incremental = true
codegen-units = 1
lto = "fat"
[target.x86-unknown-linux-musl]
# linker = "musl-gcc"
# linker = "clang"
rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
'';
home.username = "tao";
home.homeDirectory = "/home/tao";
home.stateVersion = "23.11";
}