<ben14>
hi, i updated home manager but packages are still the old versions.
<petrichor>
You also need to update the nixpkgs channel. Are you on nixos or another distro?
<ben14>
i am on nixos
<ben14>
sry was my bad not to mention. i just updated nix-channel and then home manager switch.
<ben14>
and i changed state version im home.nix too. everything seems just fine, but packages are still on old versions.
ben14 has quit [Quit: Connection closed]
justanotheruser has quit [Ping timeout: 245 seconds]
aveltras has joined #home-manager
<rycee>
scott: `config.lib.dag` is available for backwards compatibility, `lib.hm.dag` should be preferred.
<rycee>
remains unchanged throughout. You can therefore not expand it in a module but on the other hand you can use it without fear of infinite recursion.
<rycee>
Generally speaking `config.lib` is to allow a module to add cross-module functionality. Its values are also defined as part of the configuration fixed point so you can, e.g., use `pkgs`. Since it participates in the fixed point you also have to be a bit careful where you use it to avoid infinite recursion. The `lib.hm` attribute set is essentially the opposite, it is is defined before starting module evaluation and
jesystanii has quit [Ping timeout: 240 seconds]
__monty__ has joined #home-manager
aveltras has quit [Quit: Connection closed for inactivity]
<scott>
rycee: thanks for the explanation! is it unintentional, then, that `config.lib.file` exists but `lib.hm.file` does not?
<rycee>
scott: AFAIK the only thing in `config.lib.file` is `mkOutOfStoreSymlink` and that has to be there because it depends on `pkgs`.
<scott>
yeah, that's the only thing. good to know, thanks
<rycee>
I would have preferred to have it in `lib.hm` but unfortunately that's not possible.
justanotheruser has joined #home-manager
<thibm>
Is there a way to reuse the fileType option (defined in modules/files.nix) in a module for only one file (not an attribute set of files)? I'd like to let users choose if they want to use .source or .text for a configuration file
<thibm>
I could let the users use the corresponding xdg.configFile option, but the module would be less legible and self-contained
<rycee>
thibm: Not completely certain what you mean but I think file-type.nix is unsuitable for that. Probably best to create a small custom submodule, shouldn't be more than 15–20 lines.
<rycee>
Alternatively just make the option expect a text and the user can call `readFile` if they want to get the data from a file.
superherointj has quit [Quit: Leaving]
Synthetica has joined #home-manager
<thibm>
Thanks. Finally I made a submodule and duplicated the text and source options, I think that's the best option
rajivr has quit [Quit: Connection closed for inactivity]
<ambroisie>
Hey, I had a question about `home.sessionVariables`
<ambroisie>
I tried using it to set variables used by `less` to colorize man pages
<ambroisie>
To do so, I wanted to use `tput` as it is the best way to get portable ANSI escape sequences