fendor has quit [Read error: Connection reset by peer]
leothrix has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
rizary_ is now known as rizary
leothrix has quit [Ping timeout: 260 seconds]
ng0 has quit [Quit: leaving]
leothrix has joined #nixos
leothrix has quit [Ping timeout: 272 seconds]
fling has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @jakubgs opened pull request #79246 → nixpkgs/brlaser: upgrade to v6 → https://git.io/JvGyg
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
linkrage has quit [Quit: This computer has gone to sleep]
<{^_^}>
[nixpkgs] @tomberek opened pull request #79247 → ngt: init at 1.8.4 → https://git.io/JvGyo
erictapen has quit [Ping timeout: 268 seconds]
leothrix has joined #nixos
erictapen has joined #nixos
thc202 has quit [Ping timeout: 245 seconds]
ThatGuy has joined #nixos
<ThatGuy>
what is the recommend way of install prebuild binaries with a nix package. I have a custom buildscript.sh, but its failing to allow me to perform a symlink, ie ln -s mylib.so.0 mylib.so
leothrix has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @flokli opened pull request #79248 → nixos/filesystems: ensure keys gid on /run/keys mountpoint → https://git.io/JvGyX
fling has joined #nixos
<jackdk>
is there something similar to haskellPackages.callHackage, that can download packages with a hackage metadata revision?
chagra has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
<infinisil>
ThatGuy: Well to answer the question: The recommended way of installing prebuilt binaries is to use stdenv.mkDerivation with autoPatchelfHook in nativeBuildInputs (to fix the elf path)
<ThatGuy>
infinisil is that functinality documented anywhere? or is there an example i could look at?
<infinisil>
ThatGuy: Grep for autoPatchelfHook in nixpkgs
<infinisil>
Best way to find examples of all kinds of things
<infinisil>
(or ripgrep is my preference)
leothrix has joined #nixos
<infinisil>
jackdk: Doesn't look like it
<jackdk>
infinisil: a shame. I have a fetchzip call to get the package and a fetchurl call to get the new revision; is there a good way to merge the two?
<ThatGuy>
infinisil ok thx
<infinisil>
jackdk: If you want to use nixpkgs haskell builder for it you could probably pass it to haskellPackages.mkDerivation directly
<infinisil>
Well not directly, but that mkDerivation has logic to fetch the new revision itself
werner291 has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
<dashkal>
Has anybody had any luck getting Nix onto a raspberry pi 4? I'm just getting the rainbow splash no matter how I image this sd card.
<dashkal>
The file I'm burning sure looks like an MBR bootable boot image
<AmandaC>
dashkal: which image are you trying? Therre's experimental support on unstable, but I'm not sure hydra is configured to generate any images for it yet.
Palpares has quit [Remote host closed the connection]
Palpares has joined #nixos
Cale has quit [Remote host closed the connection]
Cale has joined #nixos
leothrix has joined #nixos
zeta_0 has joined #nixos
leothrix has quit [Ping timeout: 240 seconds]
endformationage has quit [Ping timeout: 268 seconds]
MrCoffee has quit [Quit: Lost terminal]
inferencerules has quit [Read error: Connection reset by peer]
<incognito9999>
Hi, just a question, I am trying to set up a virtualenv with tensorflow in it, but it states "ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory"
<incognito9999>
is there a nix package i should install to get the libstdc++.so.6?
kandinski has quit [Quit: leaving]
kandinski has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
inferencerules has joined #nixos
Cale has quit [Remote host closed the connection]
Cale has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
<infinisil>
,libraries incognito9999
<{^_^}>
incognito9999: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<infinisil>
incognito9999: In particular try just `nix-shell -p`
<incognito9999>
would gcc have the libstdc package i nee
<incognito9999>
d
<infinisil>
It should yes, but `nix-shell -p` should do that for you without even having to specify gcc
<infinisil>
(because it enters a standard environment where a C compiler is available)
<incognito9999>
i am still getting the same error.
<incognito9999>
in the nix-shell -p environment
<infinisil>
Then I'm not sure what the problem is
<infinisil>
If you have a minimal reproducible example that would be good
eximius has joined #nixos
<eximius>
hello
<eximius>
can anyone point me to some documentation on where to store an X config file generated by nvidia-settings?
<eximius>
Do I just embed it into `services.xserver.config`?
eximius is now known as eximiuss
<infinisil>
eximiuss: You can probably just set this option to the contents of the file yeah
<incognito9999>
infinisil: would the issue be that the gcc version in the nix-shell being 7.4.0
<eximiuss>
alright, cool. I have done ZERO nix scripting. Is there a way for me to include a file and set this var to that string or do I just need to dump it into my configuration.nix file?
leothrix has joined #nixos
<infinisil>
eximiuss: Yeah you can use `builtins.readFile` to read the file at a path into a string
<infinisil>
incognito9999: Unlikely
<eximiuss>
so, something like `services.xserver.config = builtins.readFile '/home/wherever/x.conf''`
eximiuss has quit [Remote host closed the connection]
tsrt^ has joined #nixos
<taikatytto>
Hello ppl! Can someone help me with perl dependency on configuring?
<taikatytto>
I've got a "configure: error: perl List::MoreUtils must be installed", while in my .nix file i've got perl and perl530Packages.ListAllUtils installed
leothrix has quit [Read error: Connection reset by peer]
leothrix has joined #nixos
leothrix has quit [Ping timeout: 240 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CMCDragonkai1 has joined #nixos
CMCDragonkai has quit [Ping timeout: 260 seconds]
CMCDragonkai1 is now known as CMCDragonkai
marek_ has joined #nixos
schneid3306 has quit [Quit: ZZZzzz…]
chagra has joined #nixos
<inferencerules>
anybody using flakes for their configuration.nix with a public repo i can check for inspiration? currently trying to build off the one here https://github.com/nrdxp/nixflk but would like to see other examples
<dashkal>
Unexpected. When trying to build nix on raspbian (raspberry pi 4) I get /usr/include/c++/8/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
<dashkal>
Now that immediately gets me checking for libatomic, but I have it installed...
<dashkal>
strings shows me the symbol in the library.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
logzet has joined #nixos
<dashkal>
adding -latomic to the right line in src/libutil/local.mk seems to have unblocked me, though I fail moents later with the same error elsewhere. Hrms
<dashkal>
Ok, I got it built. Very strange that hand editing a bunch of local.mk files was required. I'm wondering what's strange in my env that I needed to do that. Generally configure handles that sort of thing.
ixxie has joined #nixos
lsix has joined #nixos
Palpares has quit [Quit: Palpares]
Tucky has joined #nixos
Synthetica has joined #nixos
<chagra>
can you use overrideAttrs to add a patch to patches when patches was not set in the original expression?
cfricke has quit [Quit: WeeChat 2.7]
<Synthetica>
chagra: I believe that should work, yes
<Synthetica>
You could do something like `(old.patches or []) ++ [ ./your.patch ]`
<dashkal>
oof, ok, what would lead to nix-channel --update giving me this: "while setting up the build environment: executing '/bin/bash': No such file or directory"
<dashkal>
I (attempted to) installed nix from source and followed the daemon instructions.
sb0 has joined #nixos
taikatytto has quit [Ping timeout: 260 seconds]
bahamas has joined #nixos
bahamas has joined #nixos
WinchellsM has quit [Remote host closed the connection]
knupfer has joined #nixos
ThatGuy has quit [Remote host closed the connection]
phreedom has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
phreedom has joined #nixos
chloekek has joined #nixos
gkmngrgn has joined #nixos
<bahamas>
anyone using nixos with vagrant? if I stop the vm with vagrant halt, the machine is unreacheable when I run `vagrant up` again. I'm assuming the sshd service doesn't start anymore, but why?
<dashkal>
Alright, time to sleep. Looks like the install from source instructions are missing a part about bootstrapping the store. install-multi-user.sh made a valiant attempt, but there's no .store directory in my built-from-source folder to source from.
<{^_^}>
undefined variable 'nix-env' at (string):277:1
<Profpatsch>
error: attribute 'nixpkgs' in selection path 'nixpkgs.hello' not found
<manveru>
anyone here using chef still? considering just dropping the package since it's seriously outdated and would require quite a lot of patches to make work on nixos...
zupo has joined #nixos
<manveru>
*make it
cfricke has joined #nixos
<etu>
manveru: I'm using it! :D
<etu>
manveru: But I'm fine using it from stable/oldstable channels if it's dropped :p
<manveru>
:P
<manveru>
it requires ruby 2.4, which we'll also drop in 20.03
Soo_Slow has quit [Quit: Soo_Slow]
<shyim>
Did someone fixed nvidia and kernel 5.5?
erictapen has joined #nixos
fendor_ has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @curiousleo opened pull request #79261 → lorri: unstable-2020-01-09 -> 1.0 (backport to release-19.09) → https://git.io/JvGxe
linkrage has joined #nixos
Jackneill has quit [Ping timeout: 240 seconds]
<Shoubit>
Profpatsch, that command works for me but fwiw there's also `nix-env -f channel:nixos-18.09 ...`, and I think you have to use `pkgs` instead of `nixpkgs` with `-A` but I think neither is necessary here
<gchristensen>
infinisil: unfortunately overlayfs is buggy in different ways :P
<gchristensen>
but maybe we won't see them
<__monty__>
LnL: Ah, ofc, urls use slashes >.<
<__monty__>
<3 LnL
<{^_^}>
LnL's karma got increased to 21
mojjoo has joined #nixos
<mojjoo>
is it possible to deploy a nixos config with nixops from a non nixos machine?
<LnL>
__monty__: channels also include a bunch of extra stuff like /git-revision for the commit and /src-url for the hydra link
tpanum- has joined #nixos
tpanum has quit [Ping timeout: 265 seconds]
Rusty1 has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to staging « stdenv bootstrap tools: switch one file to official URL »: https://git.io/JvGpm
AmandaC_ has joined #nixos
AmandaC has quit [Ping timeout: 240 seconds]
<__monty__>
Hmm, must be doing something else wrong. My system grinds to a halt when evaluating my configuration with this overlay added: http://ix.io/2aOO
xkapastel has quit [Quit: Connection closed for inactivity]
<infinisil>
gchristensen: Can you elaborate on this in the PR?
<evanjs>
does fetchGit still not have submodule support?
AmandaC_ is now known as AmandaC
<gchristensen>
infinisil: not really worth it :P it is probably a good improvement
mojjoo has quit [Ping timeout: 260 seconds]
<gchristensen>
infinisil: but none of the layering filesystems are truly properly posix
<evanjs>
probably an easier question: is it not enough to set sourceRoot in order to cd into a directory after the unpackPhase?
<evanjs>
trying to set it to a relative path and it doesn't seem to be working (`sourceRoot = "development";)
<infinisil>
gchristensen: What does "not truly properly posix" mean?
<evanjs>
to clarify my problem: The main "source" directory of the project I'm pulling in is development. All I need to do is make sure I cd into there after unpack. Before, when this expression was referencing local sources, it used `src = ./development` to accomplish that
<evanjs>
*thinks back to nix-shell debug environments* oh yeahhhhhhhh
<evanjs>
infinisil++
<{^_^}>
infinisil's karma got increased to 205
<gchristensen>
infinisil: they just don't quite matc the spec :) let me find an example.
<__monty__>
Ok, so mpv no longer works on darwin. I need a recent channel for pass to work. So I want to pin just mpv to january 1st or something but still hit the cache because my machine's too old to get it compiled in a reasonable time (30min was not enough). How do I do this? My attempts so far have been fruitless, evaluation has my system become unresponsive no matter the pin I try.
<evanjs>
bah. now to wrangle the Makefiles so they don't try to use their own tmp dirs or blah
<butterthebuddha>
Essentially, all I want to be able to configure is the location of my global sty files
<{^_^}>
[nix] @edolstra pushed to flakes « Improve commit subject line »: https://git.io/JvGjx
<evanjs>
yeah if it's just lmodern.sty and the normal stuff, it might be easiest to just pick the right scheme package. Not totally familiar with configuring tex in nixos outside of defining which pkgs to pull in
<{^_^}>
[nixpkgs] @arnoldfarkas opened pull request #79273 → pythonPackages.redo: init at 2.0.3 → https://git.io/JvZeR
<{^_^}>
[nixpkgs] @arnoldfarkas opened pull request #79274 → pythonPackages.python-pam: init at 1.8.4 → https://git.io/JvZeu
<evanjs>
okay, so project has a tmp dir that is used in the makefiles, and I need to move those directories somewhere so the project builds with nix. Traditionally, the project has a source directory, which has develpment (all source), runtime (where build files are output) and tmp (intermediate files)
<{^_^}>
[nixpkgs] @arnoldfarkas opened pull request #79275 → pythonPackages.python-irodsclient: init at 0.8.2 → https://git.io/JvZe2
gagbo has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
<evanjs>
Trying to figure out what should go where to move this to a more proper nix build. Presently, we're just doing `src = ./development`. Is there a standard nix location for intermediate build files? Or is TMPDIR enough?
plutes has quit [Quit: See ya around!]
plutes has joined #nixos
Acilim has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @arnoldfarkas opened pull request #79276 → pythonPackages.pytest-memprof: init at 0.2.0 → https://git.io/JvZeo
<evanjs>
clever: I think I remember seeing that a while back. Ahhh alright so I’d need to get that manually... blah. Guess I’ll have to pull that in, then 😕
plutes has quit [Quit: See ya around!]
<evanjs>
commit mentions that we have fetchGit now but says nothing about submodules 🙃 adisbladis do you have any advice aside from what clever mentioned? Saw that you made the PR
inferencerules has quit [Read error: Connection reset by peer]
manveru has quit []
manveru has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
derg_tested has joined #nixos
ocharles has quit []
ocharles has joined #nixos
<derg_tested>
I'm sorry for joining and immediately asking some question, but I get an error of a value being set wrong
<derg_tested>
>the option value 'services.xserver.displayManager.defaultSession' ... apparently, one I can't find back in the documentation
endformationage has joined #nixos
Maxdamantus has quit [Remote host closed the connection]
Maxdamantus has joined #nixos
<derg_tested>
I never set this value, and the first error I get is "graphical session 'i3' not found", which I did set, under ..windowManager.default, which should take a string
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #79192 → electron*: refactor 4+ to common expression, add 7 and 8, updates → https://git.io/JvGmv
derg_tested has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JvZfK
derg_tested has joined #nixos
<derg_tested>
awful internet lole
<derg_tested>
well ehm, to be able to get my configuration or the output somewhere, I need to be able to rebuild it to get a few modules and packages configured
<lassulus>
chicken egg problems
<lassulus>
but defaultSession is currently in unstable and not in 19.09 so it doesn't show up in the nixos.org documentation
<lassulus>
you can check it with `man configuration.nix` if you are on unstable
<tilpner>
derg_tested: You can paste the configuration if you have a shell on the system
<derg_tested>
the fastest way would be to put the sd card out of my android phone, put the 2 files (1 will be from stdout+stderr) on it, copy it to clipboard and connect to irc on android
<derg_tested>
well, it makes sense why it literally said none+i3
<evanjs>
I have the patch part down, just unsure how I'm supposed to fold nix back in to get fetchGit from the patched nix there
mir100 has joined #nixos
<derg_tested>
is there a reason why you need to give both for a default session? or only to be compatible with 19.09 scripts setting both?
<infinisil>
evanjs: Nix can't be derivation-specific
<derg_tested>
lassulus: I can't thank you enough
<infinisil>
The Nix version that is
<lassulus>
derg_tested: hmm, I can't think of a good reason, I will have to investigate, maybe it's a bug
<tilpner>
derg_tested: Just mentioning in case it wasn't intentional: your password hash is in that paste
<derg_tested>
but, in other words, if I did not do this in unstable, where these were depricated and the new defaultSession was added, it would've just worked?
<evanjs>
infinisil: ah wait I meant in an overlay. is it possible to override the version of nix in e.g. an overlay that is then used in those expressions?
<lassulus>
derg_tested: I guess so
<derg_tested>
I mean, it is a throwaway password and it's still a hash
<derg_tested>
it is slightly more secure than my 123 on dev servers
<infinisil>
evanjs: How is Nix used exactly?
<evanjs>
infinisil: All I know is that fetchGit is in the nix project, idk aside from that :D
<evanjs>
I just want to add that patch into my fetchGit
<tilpner>
derg_tested: It's fine as long as you're aware of it
<infinisil>
evanjs: Strike the "just" out of that, because this isn't possible or very hard unless you only need that at runtime (which is probably not the case)
<infinisil>
evanjs: Or if you want everybody that evaluates the expression to have that patch applied to their Nix version
mir100 has quit [Ping timeout: 260 seconds]
<infinisil>
This is like a bootstrap problem, you can't use Nix to patch Nix itself without at least one level of indirection
<evanjs>
infinisil: alright, wasn't sure if it was even practical for even an internal overlay. Guess I'll just hold off on fully nix-ifying the expression (source = ./. -> source = fetchGit ... ) for now. Thanks!
<evanjs>
Stupid submodules lol
<derg_tested>
if someone really wants to, they can at worst try to match it with some leaked file and ehm... find my email? play some flash games?
<evanjs>
clever: trying to test a system based on your raspberry pi config from the other day but can't figure how I'm supposed to do it with x86_64 :P panicking bc it can't find a rootfs
<evanjs>
I know I'm missing something dumb lol
<evanjs>
most of the example seems to focus on dtc and embedded boot stuffs so I wasn't sure how exactly I'd need to tweak it to get it working with qemu
johnw has joined #nixos
v88m has quit [Ping timeout: 265 seconds]
linkrage has joined #nixos
nohTo has joined #nixos
<nohTo>
Hey guys, I'm getting started with using nix and I ran into something I don't understand
WinchellsM has joined #nixos
<nohTo>
I'm using nix for haskell-development and I wanted to add some basic packages that I use a lot to my user-profile.
ixxie has quit [Ping timeout: 260 seconds]
<nohTo>
So, for example, I added the safe package, but I can't see it from within ghci. What do I need to do?
<WinchellsM>
I have compiled a nix expression that makes run-time calls to various executables. Is there a way to launch my nix-compiled program in such a way that it still has access to my system PATH, so that those executables can actually be called?
heatm1s3r has quit []
heatm1s3r has joined #nixos
<clever>
WinchellsM: wrapProgram and prepend to PATH
Soo_Slow has joined #nixos
<evanjs>
,libraries nohTo
<{^_^}>
nohTo: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<Ilya_G>
Halp! I have a build package that I execute with nix-build. The problem is that I need to pass parameters to it and I can't figure out how to do this in command line:
<Ilya_G>
so I want to be able to set logAdapterRev and logAdapterSha256
<Ilya_G>
at will and I can't find proper help to do that
gagbo has quit [Quit: I'm out !]
<Ilya_G>
right now I can run `nix-build package_name.nix` and it will build but with default values
<clever>
ilya_g: --arg can set those params, --arg paramname nixexpr
sigmundv has quit [Ping timeout: 260 seconds]
mmlb has joined #nixos
<clever>
it will parse the 2nd part as nix, so strings have to be quoted, and then quoted again to stop bash from parsing it, like --arg foo '"bar"', or use --argstr foo bar, to make nix treat it directly as a string
<Ilya_G>
clever so I tried `nix-build --arg logAdapterRev 123456789abcd12345678 package_name.nix` and got : undefined variable 'package_name' at (string):1:1
<Ilya_G>
not sure what I am doing wrong
boxscape has quit [Ping timeout: 252 seconds]
<clever>
ilya_g: 123456789abcd12345678 is not a valid nix expression, you want --argstr there
<clever>
what you did, is basically: let logAdapterRev = 123456789abcd12345678; in ...
<AmandaC>
ivegotasthma I think that it might be compiled into the NixOS kernel? I've got binfmt_misc stuff enabled on my machine, but it's not appearing in lsmod.
<ivegotasthma>
AmandaC: cat /proc/modules does nt show it as well
monadplus has quit [Quit: Leaving]
<AmandaC>
ivegotasthma: would it, if it's compiled in? I'm not overly familiar with linux kernel stuff these days.
<ivegotasthma>
I don't know :(
<tilpner>
ivegotasthma: Ahh, AmandaC seems to be correct. I have binfmt_misc enabled, without it showing up in /proc/modules or lsmod
<tilpner>
ivegotasthma: Check /proc/sys/fs/binfmt_misc as an indicator instead
<ivegotasthma>
I ran this: sudo mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
<ivegotasthma>
and it works now
<ivegotasthma>
thanks a lot guys tilpner and AmandaC
erictapen has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<simukis_>
when and how does nix query nix-cache-info? I have 2 caches, and I have raised the priority of one of the caches to `1` which is higher than the other’s (`41`). but it is still preferring the one with the lower priority
ThatGuy has joined #nixos
cosimone has joined #nixos
<ThatGuy>
So I'm trying to create a sym link to a lib during the installPhase of my nix package and I keep getting permission denied. For example "ln -s $out/lib/mylib.so.0.1.0 $out/lib/mylib.so", is this a bug?
<ThatGuy>
i can create other links just fine, just not a *.so
iqubic has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<simukis_>
make sure your `lib` is not a symlink to some other output
<ThatGuy>
its not, its the actual binary
bennofs has quit [Remote host closed the connection]
<ThatGuy>
i actually had the "mylib.so" as part of the source folder initially so "cp -R $src/mylib/lib $out" where it contained the mylib.so sym link and that doesnt get copied. But the sym link for mylib.so.0 does get copied
<ThatGuy>
so it actually chooses which sym links are allowed
<tilpner>
simukis_: IME it helps to nuke the daemons cache, so /root/.cache/nix/binary-cache-*.sqlite*
bennofs has joined #nixos
<simukis_>
tilpner: thanks, that was it!
<tilpner>
simukis_: Oh, and I think the cache priority might work the other way around, with lower numbers being higher priority. But I might misremember, so check
<simukis_>
tilpner: right, I figured that out already, and accounted for.
<{^_^}>
[nixpkgs] @flyfloh opened pull request #79296 → Lexicon 3.3.17 and dependencies → https://git.io/JvZm1
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cosimone has quit [Read error: Connection reset by peer]
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
i thought nix sets environment variables automatically, i have java installed, but when i run: echo $JAVA_HOME , it does not return anything? do i need to set it manually?
<iqubic>
yes
immae has quit [Quit: WeeChat 2.4]
<iqubic>
But really, installing java globally isn't something you should be doing in Nix.
<zeta_0>
iqubic: what do you mean by yes ?`
o1lo01ol1o has quit [Remote host closed the connection]
<zeta_0>
iqubic: i asked multiple questions, so i am not sure what you are saying yes to?
<iqubic>
I mean, "yes you need to set the environment variable manually." But also, you shouldn't really be installing java globally on Nix.