o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #home-manager
zeta_0 has joined #home-manager
floehopper has joined #home-manager
floehopper has quit [Client Quit]
jamesmead has joined #home-manager
jamesmead is now known as floehopper
<zeta_0>
rycee: hello there, i saw that you responded to my reddit post about emacs's lsp-java, i upgraded to emacs 27.1 with the emacs-overly, which fixed the dap-mode error that was being thrown, but now i can't install the java lsp, and it's associated tools, lsp-java-update-server throws the deprecation error, so i think my emacs packages are up to date, do you have anymore tips on how to fix this issue ?
__monty__ has joined #home-manager
<zeta_0>
rycee: maybe there's other things that i'm missing.
<rycee>
Yeah, that's the source of your problems..
<rycee>
Specifically the change of the `imports = …` line.
<pasukon>
Ahh thanks! What is wrong with it that it's causing an issue?
<rycee>
The problem is that to evaluate `pkgs` you need to evaluate the configuration and to evaluate the configuration you must evaluate the `imports` statement.
<pasukon>
Oh ok, thank you! Is there a better way to do it? Before, I was generating a machine.nix and importing that.
<rycee>
This is because the `pkgs` attribute is affected by the options such as `nixpkgs.overlays`.
<rycee>
The simplest solution is to make the conditional import "part of" the configuration itself.
<rycee>
So, I would suggest changing the line to `imports = [ ./linux-home.nix ]`, that is, import the file unconditionally.
<rycee>
But, change the return attribute set of `linux-home.nix` be `lib.mkIf pkgs.stdenv.isLinux { … }`.
<pasukon>
the only thing inside that file is FG
<pasukon>
whoops sorry accidentally tabbed to the wrong window
<pasukon>
the only contents of that file is just enabling chromium and firefox, would it be better to just do something like this:
<pasukon>
or would that cause the same recursion issue?
<rycee>
No, that should be fine.
<pasukon>
cool, I'll just git rid of the import entirely then
<pasukon>
thank you for your help
<rycee>
Np.
<rycee>
Note, though, that this trick is not flawless, though. Some modules are only available under Linux. Typically due to the module making use of systemd. If you refer to such a module, even inside a `mkIf`, you will get an error about undefined options under macos.
<pasukon>
I have all of my services on nixos running from /etc/configuration.nix, but that's good to know.
<rycee>
I don't use darwin but I do have a number of user configurations for different systems and for each system/user pair I make a `{hostname}.{username}.nix` file, which I symlink to `~/.config/nixpkgs/home.nix`. I think such a solution is common for macos users since they can unconditionally use functionality supported for that host platform.
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
evanjs has quit [Read error: Connection reset by peer]