NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(home-manager): more config updates as usual

- Update packages.nix + desktop.nix to add oh-my-posh and gparted
packages
- Ensure that ~/.local/bin, ~/bin and ~/.nix-profile/bin are in PATH
- More adjustments for the ~/.profile, including GPG_TTY and some
Nix-related PATH updates for non-NixOS setups

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+56 -2
+27
.profile
··· 1 + # ~/.profile: executed by the command interpreter for login shells. 2 + # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login 3 + # exists. 4 + # see /usr/share/doc/bash/examples/startup-files for examples. 5 + # the files are located in the bash-doc package. 6 + 7 + # the default umask is set in /etc/profile; for setting the umask 8 + # for ssh logins, install and configure the libpam-umask package. 9 + #umask 022 10 + 11 + # if running bash 12 + if [ -n "$BASH_VERSION" ]; then 13 + # include .bashrc if it exists 14 + if [ -f "$HOME/.bashrc" ]; then 15 + . "$HOME/.bashrc" 16 + fi 17 + fi 18 + 19 + # set PATH so it includes user's private bin if it exists 20 + if [ -d "$HOME/bin" ] ; then 21 + PATH="$HOME/bin:$PATH" 22 + fi 23 + 24 + # set PATH so it includes user's private bin if it exists 25 + if [ -d "$HOME/.local/bin" ] ; then 26 + PATH="$HOME/.local/bin:$PATH" 27 + fi
+1
shared/home-manager/desktop.nix
··· 8 8 kdePackages.krfb 9 9 mysql-workbench 10 10 remmina 11 + gparted 11 12 ]; 12 13 }
+2
shared/home-manager/main.nix
··· 33 33 34 34 home.sessionPath = [ 35 35 "$HOME/bin" 36 + "$HOME/.local/bin" 37 + "$HOME/.nix-profile/bin" 36 38 ]; 37 39 38 40 # Home Manager is pretty good at managing dotfiles. The primary way to manage
+3 -1
shared/home-manager/nogui.nix
··· 27 27 home.stateVersion = "24.11"; # Please read the comment before changing. 28 28 29 29 home.sessionPath = [ 30 - "$HOME/bin" 30 + "$\{HOME\}/bin" 31 + "$\{HOME\}/.local/bin" 32 + "$\{HOME\}/.nix-profile/bin" 31 33 ]; 32 34 }
+1
shared/home-manager/packages.nix
··· 75 75 openssl 76 76 unrar-wrapper 77 77 storj-uplink 78 + oh-my-posh 78 79 ]; 79 80 80 81 programs.bashmount = {
+22 -1
shared/home-manager/shell.nix
··· 40 40 ]; 41 41 enableVteIntegration = true; 42 42 profileExtra = '' 43 + # HACK: using nix outside of nixos 44 + if [[ -f /etc/profile.d/nix.sh ]]; then 45 + . /etc/profile.d/nix.sh 46 + fi 47 + export PATH=/nix/var/nix/profiles/default/bin:$HOME/.nix-profile/bin:$HOME/bin:$PATH 48 + 49 + # set PATH so it includes user's private bin if it exists 50 + if [ -d "$HOME/bin" ] ; then 51 + PATH="$HOME/bin:$PATH" 52 + fi 53 + if [ -d "$HOME/.local/bin" ] ; then 54 + PATH="$HOME/.local/bin:$PATH" 55 + fi 56 + 43 57 # source our ssh-agent-loader first 44 - FF_SKIP_AUTO_SSH_AGENT_LOADER=true source ${../../misc/bash/lib/ssh-agent-loader} 58 + FF_SKIP_AUTO_SSH_AGENT_LOADER=true . ${../../misc/bash/lib/ssh-agent-loader} 45 59 46 60 # try to use keychain in this situation 47 61 ssh-agent-loader keychain 62 + 63 + if [ -n $BASH_VERSION ]; then 64 + . $HOME/.bashrc 65 + fi 66 + 67 + # hackaround for GPG on CLI mode 68 + export GPG_TTY=$(tty) 48 69 ''; 49 70 bashrcExtra = '' 50 71 # detect if we are inside VS Code