NOflake/users/tao/home.nix

86 lines
1.6 KiB
Nix
Raw Normal View History

2024-02-01 23:01:05 -08:00
{ pkgs, inputs, ... }: {
2024-01-30 11:08:42 -08:00
imports = [
2024-02-01 23:01:05 -08:00
(import ./helix.nix { inherit pkgs inputs; })
2024-02-10 19:34:34 -08:00
# ./hyprland.nix
2024-01-30 11:08:42 -08:00
];
2024-02-01 23:01:05 -08:00
2024-02-01 10:00:03 -08:00
programs = {
2024-02-06 11:08:27 -08:00
jujutsu = {
enable = true;
settings = {
user = {
name = "Tao Tien";
email = "29749622+taotien@users.noreply.github.com";
};
2024-02-11 02:29:23 -08:00
ui =
{
default-command = "log";
};
2024-02-06 11:08:27 -08:00
};
};
2024-02-01 09:41:23 -08:00
git = {
2024-02-01 10:00:03 -08:00
enable = true;
2024-02-01 09:41:23 -08:00
userName = "Tao Tien";
userEmail = "29749622+taotien@users.noreply.github.com";
};
2024-01-30 10:46:26 -08:00
2024-02-01 09:41:23 -08:00
nushell = {
2024-02-01 10:00:03 -08:00
enable = true;
2024-02-01 09:41:23 -08:00
configFile.source = ./config.nu;
envFile.source = ./env.nu;
};
2024-01-30 10:46:26 -08:00
2024-02-01 10:00:03 -08:00
starship = {
enable = true;
enableNushellIntegration = true;
settings = builtins.fromTOML (builtins.readFile ./starship.toml);
2024-02-01 08:56:18 -08:00
};
2024-02-01 09:41:23 -08:00
wezterm = {
2024-02-01 10:00:03 -08:00
enable = true;
2024-02-01 09:41:23 -08:00
extraConfig = builtins.readFile ./wezterm.lua;
};
2024-02-01 08:56:18 -08:00
2024-02-11 02:29:23 -08:00
zellij = {
enable = true;
settings = { };
};
2024-02-01 09:41:23 -08:00
zoxide = {
2024-02-01 10:00:03 -08:00
enable = true;
2024-02-01 09:41:23 -08:00
enableNushellIntegration = true;
};
2024-02-01 08:56:18 -08:00
};
2024-02-05 16:08:15 -08:00
home.file.".cargo/config.toml".text = ''
2024-02-12 16:50:32 -08:00
[alias]
rr = "run --release"
2024-02-05 16:08:15 -08:00
[build]
target = "x86_64-unknown-linux-musl"
2024-02-11 02:13:50 -08:00
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
2024-02-05 16:08:15 -08:00
2024-02-12 16:50:32 -08:00
[unstable]
codegen-backend = true
2024-02-05 16:08:15 -08:00
[provile.dev]
debug = 0
strip = "debuginfo"
2024-02-12 16:50:32 -08:00
codegen-backend = "cranelift"
[profile.release]
incremental = true
2024-02-05 16:08:15 -08:00
[target.x86-unknown-linux-musl]
2024-02-12 16:50:32 -08:00
# linker = "musl-gcc"
# linker = "clang"
2024-02-05 16:08:15 -08:00
rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
'';
2024-01-30 09:41:31 -08:00
home.username = "tao";
home.homeDirectory = "/home/tao";
home.stateVersion = "23.11";
}