Files
dotfiles/config/nix/home.nix
2024-02-14 20:01:31 +05:30

115 lines
2.9 KiB
Nix

{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "fs0c131y";
home.homeDirectory = "/home/fs0c131y";
home.stateVersion = "23.11"; # Please read the comment before changing.
imports = [
# Include the results of the hardware scan.
./tmux.nix
./wezterm.nix
];
programs = {
fish = {
enable = true;
shellAbbrs = {
vim = "nvim";
vi = "nvim";
nv = "nvim";
g = "git";
cd = "z";
ls = "exa";
};
interactiveShellInit = ''
# Add the following line to your ~/.config/fish/config.fish to enable
# Home Manager's Fish integration.
# source ${config.home.homeDirectory}/.nix-profile/share/hm-session-vars/hm-session-vars.fish
set fish_greeting
# macchina
'';
};
zoxide = {
enable = true;
enableFishIntegration = true;
enableNushellIntegration = true;
};
starship = {
enable = true;
enableFishIntegration = true;
enableNushellIntegration = true;
};
eza = {
enable = true;
enableAliases = true;
git = true;
icons = true;
};
carapace = {
enable = true;
enableFishIntegration = true;
enableNushellIntegration = true;
};
nushell = {
enable = true;
package = pkgs.nushellFull;
shellAliases = {
"cd" = "z";
};
};
keychain = {
enable = true;
keys = ["id_ed25519" "hetzner_rsa"];
enableFishIntegration = true;
enableNushellIntegration = true;
};
};
home.packages = [
pkgs.macchina
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
];
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
home.sessionVariables = {
EDITOR = "nvim";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}