CMCDragonkai / .dotfiles-nixos

Personal Configuration for NixOS
https://matrix.ai
MIT License
5 stars 1 forks source link

PATH overload #11

Open CMCDragonkai opened 2 years ago

CMCDragonkai commented 2 years ago

My current path is:

/home/cmcdragonkai/bin:/nix/store/rdnfvpd07kgsnrq61r2p1f99qbpl32qd-kitty-0.23.1/bin:/nix/store/1kavhxik23cjqqb26sgrc0n3r0g8c77h-imagemagick-7.1.0-26/bin:/nix/store/8gdmvc9lxqs6qnxgj7wlqkmjj29s4ijq-xsel-unstable-2020-05-27/bin:/nix/store/46n5ir399rlz84sdrdq583kywqsn5j7v-ncurses-6.2-dev/bin:/home/cmcdragonkai/bin:/home/cmcdragonkai/bin:/home/cmcdragonkai/bin:/home/cmcdragonkai/bin:/home/cmcdragonkai/bin:/home/cmcdragonkai/bin:/run/wrappers/bin:/home/cmcdragonkai/.nix-profile/bin:/etc/profiles/per-user/cmcdragonkai/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin

Notice that the /home/cmcdragonkai/bin is being added multiple times.

I'm not sure why this is the case. I've only done it once in:

.includes_sh/shell_environment_common.conf
58:export PATH="${HOME}/bin:${PATH}"

So perhaps some programs are overloading it multiple times.

pstree -p -a shows this is the process hierarchy:

  systemd,1
    |-.polkit-kde-aut,6351
    |   |-{.polkit-kde-aut},6604
    |   |-{.polkit-kde-aut},6605
    |   |-{.polkit-kde-aut},6606
    |   `-{.polkit-kde-aut},6607
    |-.sddm-wrapped,3519
    |   |-.sddm-helper-wr,6062 --socket/tmp/sddm-authb7a0aa29-c53b-4ef4-a32f-fa0e4c6a4
    |   |   `-5z18n3nvr5jwwvf,6073 /nix/store/5z18n3nvr5jwwvfrxh2w1ljbgwsz6xv1-xsession
    |   |       `-xmonad-x86_64-l,6297
    |   |           |-.dunst-wrapped,6308
    |   |           |   |-{.dunst-wrapped},6375
    |   |           |   `-{.dunst-wrapped},6379
    |   |           |-.kitty-wrapped,7634
    |   |           |   |-zsh,156560
    |   |           |   |   `-bash,990336 --rcfile /tmp/nix-shell-990336-0/rc
    |   |           |   |-zsh,787000
    |   |           |   |   `-bash,3083843 --rcfile /tmp/nix-shell-3083843-0/rc
    |   |           |   |-zsh,872568
    |   |           |   |   `-bash,991372 --rcfile /tmp/nix-shell-991372-0/rc
    |   |           |   |-zsh,3985609
    |   |           |   |   |-less,4005451 --LONG-PROMPT --HILITE-UNREAD --status-column --chop-long-lines --shift .3
    |   |           |   |   `-pstree,4005450 -p -a
    |   |           |   |-{.kitty-wrapped},7741
    |   |           |   `-{.kitty-wrapped},8178

It's possible that the sddm helper, sddm wrapper, xsession, xmonad, kitty, and finally zsh is doing loading it. Should investigate in the future why this is the case.

Also it's strange that additional packages are added in front.