ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
<drozdziak1> How do I get current user's `HOME` in a home.nix?
<drozdziak1> I'm trying to port the borgbackup module from nixos
rajivr has joined #home-manager
<nicolas[m]> drozdziak1 You can use `home.homeDirectory` in a Nix expression or `$HOME` in a script
cole-h has quit [Quit: Goodbye]
cole-h has joined #home-manager
<drozdziak1> nicolas[m]: Can I use any of that from a module?
<nicolas[m]> drakonis I don't know anything preventing that, so I think it should work
<drozdziak1> nicolas[m]: How can I access it from a module closure? (config.home didn't work afaict)
ryantrinkle has quit [Ping timeout: 260 seconds]
ryantrinkle has joined #home-manager
stephank has quit [Quit: stephank]
stephank has joined #home-manager
kini has quit [Quit: bye]
kini has joined #home-manager
kini has quit [Quit: bye]
kini has joined #home-manager
<nicolas[m]> drozdziak1 If the module is loaded by Home-Manager, then `config.home.homeDirectory` should be available as long as your module has `{ config, pkgs, ...}` or an equivalent to access the config
<nicolas[m]> Another solution, that I do not recommend, is using `builtins.getEnv "HOME"`
<nicolas[m]> getEnv is impure and will not work with flake configurations (aka a "pure" evaluation)
cole-h has quit [Ping timeout: 240 seconds]
kini has quit [Remote host closed the connection]
kini has joined #home-manager
kini has quit [Ping timeout: 260 seconds]
kini has joined #home-manager
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
__monty__ has joined #home-manager
cole-h has joined #home-manager
rajivr has quit [Quit: Connection closed for inactivity]
manveru has quit [Ping timeout: 272 seconds]
manveru has joined #home-manager
ece has joined #home-manager
srk has quit [Ping timeout: 268 seconds]
srk has joined #home-manager
davidtwco has quit [Ping timeout: 265 seconds]
zmacs has quit [Ping timeout: 272 seconds]
zmacs has joined #home-manager
davidtwco has joined #home-manager
aharris[m] has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]