NixOS and Home Manager config

feat: bash

nel.pet 78a93d64 8f1fa6d0

verified
Changed files
+43
modules
+42
modules/home/bash.nix
···
+
{ ... }: {
+
programs.bash = {
+
enable = true;
+
# Some distros (mainly the Fedora/RHEL/etc family) have an optional /etc/bashrc for system wide bash config that a
+
# user can source if wanted. Source it here if it exists.
+
bashrcExtra = ''
+
# Source global definitions
+
if [ -f /etc/bashrc ]; then
+
. /etc/bashrc
+
fi
+
'';
+
profileExtra = ''
+
# Java + tooling env variables
+
export JAVA_HOME="/etc/alternatives/java_sdk"
+
export GRADLE_USER_HOME="$HOME/.local/share/gradle"
+
. "$HOME/.maven_credentials"
+
+
# Added by Toolbox App
+
export PATH="$PATH:/home/nel/.local/share/JetBrains/Toolbox/scripts"
+
+
# Cargo
+
export CARGO_HOME="/home/nel/.local/share/cargo"
+
. "$CARGO_HOME/env"
+
+
# GO
+
export GOPATH="$HOME/.local/share/go"
+
+
# Make (some) GTK apps behave
+
export GTK_CSD=0
+
export GTK_USE_PORTAL=1
+
+
# Steam applications and icons
+
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.var/app/com.valvesoftware.Steam/data/"
+
+
# Update helper
+
update() {
+
sudo dnf update --refresh
+
flatpak update
+
}
+
'';
+
};
+
}
+1
modules/home/default.nix
···
./nix.nix
./cli.nix
./direnv.nix
+
./bash.nix
];
home.username = "nel";