hi, i updated home manager but packages are still the old versions.
You also need to update the nixpkgs channel. Are you on nixos or another distro?
i am on nixos
sry was my bad not to mention. i just updated nix-channel and then home manager switch.
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
scott: `config.lib.dag` is available for backwards compatibility, `lib.hm.dag` should be preferred.
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.
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]
rycee: thanks for the explanation! is it unintentional, then, that `config.lib.file` exists but `lib.hm.file` does not?
scott: AFAIK the only thing in `config.lib.file` is `mkOutOfStoreSymlink` and that has to be there because it depends on `pkgs`.
yeah, that's the only thing. good to know, thanks
I would have preferred to have it in `lib.hm` but unfortunately that's not possible.
justanotheruser has joined #home-manager
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
I could let the users use the corresponding xdg.configFile option, but the module would be less legible and self-contained
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.
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
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]
Hey, I had a question about `home.sessionVariables`
I tried using it to set variables used by `less` to colorize man pages
To do so, I wanted to use `tput` as it is the best way to get portable ANSI escape sequences