1
0
Files
nix-ebay-home/home.nix

65 lines
1.5 KiB
Nix
Raw Normal View History

2025-07-09 13:39:51 -07:00
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should manage
home.username = "tbingmann";
home.homeDirectory = "/home/tbingmann";
2025-07-09 13:56:42 -07:00
2025-07-09 13:39:51 -07:00
# Basic configuration
home.stateVersion = "25.05";
# Let Home Manager install and manage itself
programs.home-manager.enable = true;
2025-07-09 13:56:42 -07:00
# Nix configuration
nix = {
enable = true;
package = pkgs.nix;
settings = {
experimental-features = ["nix-command" "flakes"];
warn-dirty = false;
};
};
2025-07-09 13:39:51 -07:00
# Packages to install
home.packages = with pkgs; [
];
# Bash configuration
programs.bash = {
enable = true;
enableCompletion = true;
2025-07-09 13:56:42 -07:00
2025-07-09 13:39:51 -07:00
# Bash initialization
initExtra = ''
2025-07-09 13:56:42 -07:00
# Ensure Nix paths are properly set up
export PATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
export NIX_PATH="$HOME/.nix-defexpr/channels:nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs"
# Source nix environment if it exists and not already sourced
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && [ -z "$NIX_SOURCED" ]; then
export NIX_SOURCED=1
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi
2025-07-09 13:39:51 -07:00
'';
2025-07-09 13:56:42 -07:00
2025-07-09 13:39:51 -07:00
# History configuration
historyControl = [
"erasedups"
"ignoredups"
"ignorespace"
];
2025-07-09 13:56:42 -07:00
historyFileSize = 1000000;
historySize = 1000000;
2025-07-09 13:39:51 -07:00
};
# Direnv configuration
programs.direnv = {
enable = true;
nix-direnv.enable = true;
2025-07-09 13:56:42 -07:00
2025-07-09 13:39:51 -07:00
# Add hook to .bashrc
enableBashIntegration = true;
};
}