!YllBCgVdcoakoavZvX:rycee.net

Home Manager*

1423 Members
Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager)275 Servers

Load older messages


SenderMessageTime
20 Oct 2024
@nevivurn:nevi.devnevivurn
In reply to @tumble1999:matrix.org
Does home.sessionVariables set environment variables that should show up in `env`
Assuming you're running env under your session, yes.
09:03:40
@x10an14:matrix.orgx10an14
In reply to @tumble1999:matrix.org
Does home.sessionVariables set environment variables that should show up in env
Yes, but remember that you might need to source your ~/.profile for them to show up. I think it's the default location for where their source script is put
09:06:56
@tumble1999:matrix.orgTumble

i dont seem to have a .profile file

also https://git.disroot.org/tumble/linux-config/src/commit/nixos/modules/home/projects/rust.nix
ive had this file for 3 days
the persistence and packages part works but not the sessionVariables part as i keep having to type rustup default default after every reboot
and env|grep cargo doesnt show anything

09:11:10
@tumble1999:matrix.orgTumble
[tumble@latias:~]$ cat .nix-profile/etc/profile.d/hm-session-vars.sh 
# Only source this once.
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
export __HM_SESS_VARS_SOURCED=1

export CARGO_HOME="$XDG_DATA_HOME/cargo"
export FOO="BAR"
export LOCALE_ARCHIVE_2_27="/nix/store/mwgkdmfyfcqacjxyrz4724z9s2d88ia5-glibc-locales-2.40-36/lib/locale/locale-archive"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"

hmm ok they're hiding here

does that mean i have to source this after every reboot?

09:11:59
@nevivurn:nevi.devnevivurn
In reply to @tumble1999:matrix.org
[tumble@latias:~]$ cat .nix-profile/etc/profile.d/hm-session-vars.sh 
# Only source this once.
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
export __HM_SESS_VARS_SOURCED=1

export CARGO_HOME="$XDG_DATA_HOME/cargo"
export FOO="BAR"
export LOCALE_ARCHIVE_2_27="/nix/store/mwgkdmfyfcqacjxyrz4724z9s2d88ia5-glibc-locales-2.40-36/lib/locale/locale-archive"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"

hmm ok they're hiding here

does that mean i have to source this after every reboot?

Did you enable the h-m module for your shell? eg. programs.bash.enable
If you did so, h-m should be creating ~/.profile and sourcing it appropriately for you.
09:16:59
@eveeifyeve:matrix.orgeveeifyeve joined the room.11:14:36
@_oftc___monty__:matrix.org@_oftc___monty__:matrix.org joined the room.11:26:29
@freerig:matrix.orgfreerig joined the room.11:37:21
@freerig:matrix.orgfreerigHi, why does home-manager switch says Existing file '/home/quelquun/.config/hypr/hyprland.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/hypr/hyprland.conf' Existing file '/home/quelquun/.config/kitty/kitty.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/kitty/kitty.conf' event if home.file is empty ? Is this a bug. I did nix flake update and updated all the stuff. Can someone help ?11:39:56
@anderson_torres:matrix.orgAnderson Torres
In reply to @freerig:matrix.org

Hi,
why does home-manager switch says
Existing file '/home/quelquun/.config/hypr/hyprland.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/hypr/hyprland.conf'
Existing file '/home/quelquun/.config/kitty/kitty.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/kitty/kitty.conf'

event if home.file is empty ? Is this a bug. I did nix flake update and updated all the stuff. Can someone help ?

Sometimes a module creates extra entries on home.files besides those you explicitly created.
11:41:58
@freerig:matrix.orgfreerigHow do I do ? I don't want my config files to be managed by home-manager11:42:58
@freerig:matrix.orgfreerig * Hi, why does home-manager switch says Existing file '/home/quelquun/.config/hypr/hyprland.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/hypr/hyprland.conf' Existing file '/home/quelquun/.config/kitty/kitty.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/kitty/kitty.conf' event if home.file is empty ? Is this a bug ? I did nix flake update and updated all the stuff. Can someone help ?11:44:28
@anderson_torres:matrix.orgAnderson TorresIn this case you can install the program directly instead of using the module.11:44:48
@freerig:matrix.orgfreerig * Hi, why does home-manager switch says Existing file '/home/quelquun/.config/hypr/hyprland.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/hypr/hyprland.conf' Existing file '/home/quelquun/.config/kitty/kitty.conf' is in the way of '/nix/store/9mxkk49lij5w6v8n1khsw3prh205kc77-home-manager-files/.config/kitty/kitty.conf' event if home.file is empty ? Is this a bug ? I did nix flake update and updated all the stuff. Can someone help me ?11:44:53
@freerig:matrix.orgfreerigRedacted or Malformed Event11:45:53
@freerig:matrix.orgfreerigRedacted or Malformed Event11:46:10
@freerig:matrix.orgfreerigOk, thanks11:47:33
@excalgm:tchncs.deExcal joined the room.11:50:12
@anderson_torres:matrix.orgAnderson Torres"directly" here means `home.programs = [ ... hyprland ...]`11:50:35
@freerig:matrix.orgfreerigyes, i see, i had hyprland using wayland.windowsManager11:51:23
@freerig:matrix.orgfreerignow i'm using packages11:52:47
@eveeifyeve:matrix.orgeveeifyeveHey Eww Users I just made a pr that adds ability to add eww as a service and configure it using lists. For more info checkout my pr here: https://github.com/nix-community/home-manager/pull/597912:46:11
@freerig:matrix.orgfreerigNice, thx13:08:16
@_oftc_toastal____________________:matrix.org@_oftc_toastal____________________:matrix.org joined the room.14:45:10
@_oftc_toastal____________________:matrix.org@_oftc_toastal____________________:matrix.org left the room.15:35:02
@_oftc_toastal____________________:matrix.org@_oftc_toastal____________________:matrix.org joined the room.19:11:44
@ersei:ersei.net@ersei:ersei.net joined the room.19:19:11
@ersei:ersei.net@ersei:ersei.net 19:20:19
@ersei:ersei.net@ersei:ersei.net left the room.19:20:45
@_oftc_mkfifo:matrix.orgmkfifo joined the room.19:21:15

Show newer messages


Back to Room ListRoom Version: 6