<tbenst[m]>
"error: assertion ((hdf5).mpiSupport -> ((mpi4py != null) && ((hdf5).mpi == (mpi4py).mpi)))" at the line I linked above
<kini>
You're overriding hdf5.mpi to mpich, but the assertion requires that hdf5.mpi is the same as mpi4py.mpi, so maybe you should override mpi4py.mpi to mpich as well? (just a wild guess)
<kini>
I don't see what you mean by matching that line
Pwnna has joined #nixos
<taktoa[c]>
thanks infinisil
<infinisil>
:)
<taktoa[c]>
+1 infinisil
<taktoa[c]>
is that how you get the bot to give you points
griff_ has quit [Quit: griff_]
<taktoa[c]>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<taktoa[c]>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries paste escape'' ping channels escape" -a library overlay pinning ifd profiling unfree ask botsnack which-channel xml xy fancy-uninstall imperative nixlang++ wololo cache pointers pills invite runtimedeps home-manager stateversion thesis exec matrixbridge smart-questions howoldis -ia configsearch
<infinisil>
Hehe close, either "<nick>++" or "<3 <nick>"
<drakonis>
have you never played age of empires before
<drakonis>
?
la-jesystani has joined #nixos
<tbenst[m]>
I've explicitly set `mpi = super.mpich` for both mpi4py and hdf5, and yet the assertion fails. I've also tried setting the attribute directly with no luck
<taktoa[c]>
I played AoE 3 a bit as a kid, but never the original. I get the meme now, though.
<{^_^}>
[nixos-homepage] @toothbrush opened pull request #504 → index.tt: Minor updates to wording. → https://git.io/JJAPT
<tbenst[m]>
here's the side-by-side example showing one nix expression that works and another that doesn't, demonstrating how python `packageOverrides` fails to override pkgs specified as inputs to callPackage: packageOverrides
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #95824 → tensorflow: update to 2.3.0 → https://git.io/JJAPm
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJAPY
<aanderse>
infinisil: it turns out free form options weren't a great fit for that module :(
<infinisil>
Why so?
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #95779 → lzfse: use cmake build system → https://git.io/JJN1f
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JJAPs
<aanderse>
- the current module options are mostly abstractions on top of the file format
<aanderse>
- the file format itself doesn't have many key+value entries, just value entries
<aanderse>
- the format embeds scripts right into it, which can be repeated
<infinisil>
Ah so it's that the format doesn't translate well to nix
xd1le has joined #nixos
<aanderse>
yeah the more i looked at what the module in `master` does i realized that abstractions on top of the file format provided more value than just the format itself
<aanderse>
infinisil: i suppose. i wonder if i'm just trying to make something fit that doesn't at that point, though. i have never used the free form stuff yet, so maybe i need to use it and get a feel for it first.
<{^_^}>
[nixpkgs] @eqyiel opened pull request #95826 → qtwebengine: fix build for darwin → https://git.io/JJAPH
cjpbirkbeck has quit [Quit: Goodbye, take care]
griff_ has quit [Ping timeout: 265 seconds]
griff_ has joined #nixos
nek0 has quit [Remote host closed the connection]
romanofski has quit [Ping timeout: 240 seconds]
nek0 has joined #nixos
orivej has joined #nixos
vikingman has quit [*.net *.split]
vikingman has joined #nixos
switchy has quit [Quit: Bye!]
switchy has joined #nixos
griff_ has quit [Ping timeout: 264 seconds]
griff_ has joined #nixos
sigmundv_ has quit [Ping timeout: 246 seconds]
h0m1 has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 256 seconds]
romanofski has joined #nixos
h0m1 has joined #nixos
<Cadey>
i am having a weird issue with my NixOS system. nixos-rebuild is failing due to a vboxnet unit failing to be unloaded, and this is making nixos not register the new generation. however, the next rebuild action doesn't fail but it doesn't register the new generation to the disk somehow
griff_ has quit [Ping timeout: 240 seconds]
<Cadey>
so i always am getting an older generation on boot, then i have to rebuild to get my current configuration
<Cadey>
is there a "don't treat that like it failed, keep going and mark it as okay" setting for nixos-rebuild?
<Cadey>
that seemed to actually get nixos-rebuild to create a new generation
<Cadey>
(the rebuild to unstable failed, but then when i downgraded back to 20.03 it forced nixos-rebuild to actually rebuild things and ignore the broken stuff)
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<Cadey>
Aaaaaand now nixos-rebuild fails completely
<Cadey>
error: file 'home-manager/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/cadey/code/nixos-configs/common/users/default.nix:4:15
kaliumxyz has quit [Quit: Lost terminal]
<Cadey>
doing a nix-channel --update as root fixed that
<Cadey>
drakonis: what am i doing wrong?
`slikts has quit [Quit: No Ping reply in 180 seconds.]
gv has quit [Remote host closed the connection]
`slikts has joined #nixos
`slikts has joined #nixos
`slikts has quit [Changing host]
<Church->
Interesting
<Church->
Howdy drakonis Cadey
<Cadey>
okay weird
<Cadey>
apparently /boot wasn't mounted
<Cadey>
and this was making it fail
<Church->
Heh, double interesting. Heck is up with your setup?
<Cadey>
but then mysteriously work next time?
<Cadey>
Church-: i think it's cursed
echelon has quit [Remote host closed the connection]
vika_nezrimaya has quit [Read error: Connection reset by peer]
griff_ has quit [Ping timeout: 265 seconds]
<Cadey>
I'm gonna force it to mount /boot on boot and see if that fixes it
echelon has joined #nixos
<Cadey>
okay yeah I'm seeing generations in the boot screen now
<Cadey>
yep, that was it
<Cadey>
what the HECK lol
<Church->
Cadey: Heh
<Church->
Cadey: So doing my nixOS router tomorrow
<Church->
That'll be fun. Hope the speeds are consistently good. Should be gigabit at least I think
<dxb[m]>
is that something i can/should do with an overlay? if so, do i have to pass all those parameters that are passed to `name`?
<dxb[m]>
i was playing with it a bit, trying to write an overlay but i've never written one (or even seen one in action) before so i don't really know what i'm doing and i wasn't able to get it working
<dxb[m]>
i assume i can inherit all those parameters but idk how to do that either
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
<Church->
drakonis: Goodbye, friend.
pjt_tmp has joined #nixos
user_0x58 has quit [Ping timeout: 244 seconds]
<drakonis>
aw
<{^_^}>
[nixpkgs] @CMCDragonkai opened pull request #95828 → pythonPackages.aioitertools: init at 0.7.0 → https://git.io/JJAMa
ninjin_ has quit [Remote host closed the connection]
<la-jesystani>
howdy, if i want a postgres db in my dev environment, is there a way to set that up using a shell.nix? i dont care about it being persistent (but that'd be a bonus too)
<energizer>
it would be nice to have a canonical answer to that question
stephaneyfx has quit [Remote host closed the connection]
<la-jesystani>
mog: my shell.nix uses mkDerivation, where should it go in relation to that?
stephaneyfx has joined #nixos
<mog>
so i dont have it as part of my shell but as part of my home-manager setup. doing it as part of your nix-shell would be similar line and having postgres as a dep
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
<JJJollyjim>
the nixpkgs manual for passthru.updateScript gives an example that uses a #!nix-shell
<JJJollyjim>
is there a good reason to do that rather than interpolating the dependency binaries directly into the script string?
<JJJollyjim>
hmm, it also says "The script will be usually run from the root of the Nixpkgs repository but you should not rely on that"
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<JJJollyjim>
how would i avoid that?
<JJJollyjim>
(can't use BASH_SOURCE, since the script is in the nix store, which is definitely not where i want the script to write to)
<clever>
JJJollyjim: ${toString ./.} will interpolate the absolute path of ./. without copying it into the store
dongcarl has quit [Read error: Connection reset by peer]
orivej has joined #nixos
dongcarl has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
<worldofpeace>
Jamie: not sure if this will be coming late (it seems that your messages are only showing up into matrix). because of that I'm not sure I can understand you properly
c74d has left #nixos [#nixos]
<worldofpeace>
perhaps if you just restate it maybe
<clever>
JJJollyjim: i'm seeing you on irc just fine
<JJJollyjim>
all 5 of my messages show up in the samueldr logs
<{^_^}>
[nix] @Ericson2314 closed pull request #3323 → CI with and without precompiled headers on multiple platforms → https://git.io/JvUXz
orivej has joined #nixos
<clever>
but worldofpeace thinks your name is something else...
<JJJollyjim>
ugh yeah my name on matrix is Jamie
<samueldr>
oh, the ol' matrix name switcharoo thing
<worldofpeace>
ohhhh
<worldofpeace>
that's weird on irc you're JJJollyjim
<JJJollyjim>
that's odd though, they used a matrix mention thingy which the bridge should translate
<JJJollyjim>
to JJJollyjim
<worldofpeace>
it doesn't seem to do that ever from my experience in nixos channels with matrix users
<worldofpeace>
anyways, will reread
<JJJollyjim>
(it's quite possible you didn't get my messages, my homeserver hates this channel)
orivej_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<worldofpeace>
Jamie: so the first thing was just "am I missing something on how to rebuild plasma quicker", is that still relevant or is the issue with updateScript somehow related?
<JJJollyjim>
nah, unrelated and resolved
<worldofpeace>
ahh okay.
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
gthm has quit [Ping timeout: 256 seconds]
kalbasit has quit [Ping timeout: 256 seconds]
palo1 has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
guest123 has joined #nixos
Izorkin has joined #nixos
<guest123>
Hello here. I am trying to build Nixos in a Raspberry Pi 1 B+ and the nixos-rebuild is running out of memory. I am getting the following message: Killed process 2460 (nix-build) total-vm:218376kB, now anon-rs:191528kB, file-rss:0kB, hmem-rss:0kB. Is there a way to minimize memory usage during builds? Would it consume less memory if I use
<guest123>
nixos-rebuild boot rather than switch?
dongcarl has quit [Read error: Connection reset by peer]
<matthuszagh>
but pkgs does not contain this sageWithDoc
<matthuszagh>
have I done something wrong here?
<lassulus>
guest123: I guess it should consume about the same amount of memory. building a complete system on the raspberry 1 itself can be quite hard. Sometimes adding swap space can help, but it will take a while
<nij>
I'm planning to set a server on nixos in my parents house. It's far away from where I'm.. so I'd hope that things would set it up automatically every time after reboot.
<nij>
In that case, what term should I look into?
<siraben>
How do I check which nix package provides a command line xsltproc?
<simpson>
,locate xsltproc
<{^_^}>
Found in packages: boost-build, bashCompletion, python27Packages.libxslt.bin, python37Packages.libxslt.bin, python38Packages.libxslt.bin
<raboof>
is there anyone on nixos-unstable that can do a quick check whether starting 'helm' (the synth) works for them? I'm getting mesa errors but I'm not sure if it's a problem with my system or something more general.
<simpson>
The lazy way is pretty easy. But you could also set up nix-locate locally, or etc.
<siraben>
simpson: The lazy way?
<simpson>
siraben: ^^^
<siraben>
Ah I see
lsix has quit [Ping timeout: 260 seconds]
<siraben>
When I'm writing a package for nixpkgs, sometimes it's hard to see why a build failed. How do I drop into a shell environment that right before, say, installPhase?
dongcarl has quit [Read error: Connection reset by peer]
lsix has joined #nixos
<simpson>
Drop into the shell and run phases manually.
thc202 has joined #nixos
dongcarl has joined #nixos
Dr8128 has quit [Ping timeout: 256 seconds]
<siraben>
simpson: ok
<siraben>
nix-shell -A package?
<simpson>
Yeah, and then run the phases one by one.
<nij>
with your `configuration.nix`, you can get your system back always?
zangi has joined #nixos
<nij>
That doesn't make sense to me.. for example a declaration to have a package foo would look through the channel and get the newest stable version.
<{^_^}>
[nixpkgs] @siraben opened pull request #95846 → kpack: init at 1.0.1 → https://git.io/JJxva
<nij>
That version, if not specified, will change.
<nij>
So it's not fully reproducible.. did I miss anything?
<{^_^}>
[nixpkgs] @aaronjanse opened pull request #95848 → relibc: build from source → https://git.io/JJxfI
<{^_^}>
[nixpkgs] @marsam opened pull request #95849 → ocaml-top: fix build on darwin → https://git.io/JJxfG
<siraben>
In a nix derivation's installPhase, do I put the binaries in $out or $out/bin?
<{^_^}>
[nixos-channel-scripts] @garbas opened pull request #41 → nix install script should have Content Type set as "text/plain" → https://git.io/JJxfR
<qyliss>
$out/bin
<siraben>
Ok
<noonien>
how can i get the build log for a derivation i've just built?
<siraben>
nix-log <derivation path>
<raboof>
nij: indeed 'just' the configuration.nix is not enough to exactly reproduce a system, it's indeed the combination of the configuration and the specific revision of the nixpkgs it's referring to.
<siraben>
nix log*
<noonien>
siraben: awesome, thanks!
<siraben>
e.g. from my recent history, "nix log /nix/store/lf2zxp62rrvzj8lmfrjha6graiv7bab7-python-language-server-2020-06-19.drv"
<siraben>
noonien: np!
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
hyper_ch233 has joined #nixos
rajivr has joined #nixos
hyper_ch233 has quit [Client Quit]
szicari has quit [Ping timeout: 240 seconds]
szicari has joined #nixos
alp has quit [Ping timeout: 272 seconds]
hyper_ch296 has joined #nixos
hyper_ch296 has quit [Client Quit]
hyper_ch286 has joined #nixos
malook has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @max-wittig to master « gitlab-runner: 13.2.2 -> 13.3.0 (#95838) »: https://git.io/JJxJa
malook has quit [Client Quit]
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
szicari has quit [Ping timeout: 260 seconds]
<nij>
raboof: ah.. thanks. Is there a way to easily backup the state of my current system then? I know there's a hash, but that only works on the current machine.
<nij>
I imagine it wouldn't be too hard to reproduce the system by my `configuration.nix` and a bit other "extra data".
<nij>
Hopefully the "extra data" can be auto-generated by nixos.
<raboof>
nij: I agree, but I'm not sure about how specifically :) - would be interested as well though!
hiro99 has quit [Read error: Connection reset by peer]
sangoma has quit [Read error: Connection reset by peer]
sangoma has joined #nixos
sangoma has quit [Client Quit]
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
xelxebar has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
xelxebar has joined #nixos
hyper_ch290 has joined #nixos
hyper_ch290 has quit [Client Quit]
zupo has joined #nixos
<sphalerite>
nij: the essential parts are your configuration.nix, your hardware-configuration.nix, anything your config references (e.g. if you have something in imports, or references to NIX_PATH using <foo>), and the nixpkgs version used to build it
dongcarl has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
sdisavona has joined #nixos
orivej has joined #nixos
<sdisavona>
I'm using nix on archlinux. Before that I had Libreoffice installed via distro main package manager. I then removed Libreoffice and installed it via nix.
<sdisavona>
It works, but it can't open in write mode files on a samba share.
<sdisavona>
Is it because it needs samba and cifs related packages installed via nix? If so, which ones?
<{^_^}>
[nixos-channel-scripts] @garbas closed pull request #41 → nix install script should have Content Type set as "text/plain" → https://git.io/JJxfR
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
<{^_^}>
[nix] @garbas opened pull request #3948 → set Content-Type to "text/plain" for install script → https://git.io/JJxkg
<wpcarro>
After reading the Nix manual, I tried to add `ref = "refs/tags/v2.0.0-beta";` to a `builtins.fetchGit` call, but Nix is telling me `No such file or directory`, `<hash>/refs/heads/refs/tags/v2.0.0-beta` ... why the `refs/heads` prefix?
<wpcarro>
The Nix manual mentions that `ref = "refs/tags";` should work. What did I miss?
<evanjs>
Wondering if/how I can fit this into the virtualisation modules and if I can eventually fit it into nixos-generators
dongcarl has quit [Read error: Connection reset by peer]
proofofkeags has quit [Ping timeout: 256 seconds]
azure1 has joined #nixos
<evanjs>
two remaning questions in my mind: 1) what is this going to look like for the virt module? I'm assuming just a copy/wrapper of the vbox module with an additional param or etc to set the vmx version
<evanjs>
and 2) how might nixos-generators handle the arguments for such... oh. I guess it would actually be the same as we handle other virtual machine parameters right now, huh? They're just set elsewhere in the configuration
cosimone has joined #nixos
hiro99 has joined #nixos
cosimone has quit [Client Quit]
brandonhamilton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
proofofkeags has joined #nixos
<evanjs>
do we have a list of teams/groups for NixOS? e.g. worldofpeace for GTK, etc (sorry for ping lol)
dongcarl has quit [Read error: Connection reset by peer]
<evanjs>
Right right, that is correct. In essence, what I am referring to as "ESXi" images are actually just OVA appliances with a modified VirtualSystemType so they can be imported into ESXi
<evanjs>
That, and any audio devices need to be removed (e.g. virtualbox.params.audio = "none" or whatever)
<evanjs>
and that would all be done under nixos/modules/virtualisation/esxi.nix or w/e
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evanjs>
Initially, it was an annoying and hacky process, but with cot now merged, it's 1000x more practical and less hacky in my opinion
thommey has quit [Remote host closed the connection]
cosimone has joined #nixos
thommey has joined #nixos
<evanjs>
After seeing how we depend on various tools outside of coreutils when appropriate (e.g. lkl for cptofs) I would say I feel more comfortable depending on cot for a NixOS module
coderobe has joined #nixos
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJxZN
zupo has joined #nixos
zupo has quit [Client Quit]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<Mic92>
evanjs: I think lkl is quiet portable.
<Mic92>
Have not heard of cot yet.
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
dongcarl has quit [Read error: Connection reset by peer]
waleee-cl has quit [Quit: Connection closed for inactivity]
dongcarl has joined #nixos
<evanjs>
Oh it's an OVA tool
Scriptkiddi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
mrpi has quit [Quit: killed]
palesz has joined #nixos
<evanjs>
Written in Python but my other options include ovftool (which is behind a registration wall, much like Java...) or a big mess of hacky stuff that changes the VirtualSystemType and repackages the OVA
<evanjs>
In addition, virtualisation modules are not imported by default, FWIW
<evanjs>
I should probably get a mock-up for what I'm thinking and add it to the thread
das_j has joined #nixos
ajs124 has joined #nixos
Scriptkiddi has joined #nixos
mrpi has joined #nixos
<palesz>
I am trying to use NixOS under VirtualBox on Windows. I tried to use the VirtualBox OVA image, but `nix-channel --update` or nix-env changes fail, with: "error 9 while decompressing xz file"
<palesz>
Same when I try to do an install using the Live CD image under VirtualBox
<evanjs>
Mmm I remember that one. What are your channels? `nix-info -m`
<surya>
when i am trying to install daedalus wallet in my kali linux i get that error = changing ownership of path '/tmp/tmp.KEG8o5Yf1p/nix/store': Invalid argument
<surya>
can anybody tell me how to fix that?
<evanjs>
Ahhhhh the options search finally got a face-lift!
<surya>
changing ownership of path '/tmp/tmp.KEG8o5Yf1p/nix/store': Invalid argument
<surya>
how to fix that
<evanjs>
surya: is this a single-user or multi-user install?
<surya>
i dont know i am using root
<surya>
hello!
<evanjs>
Well, how did you install nix?
<surya>
at first i install nix using sudo apt-get install nix command
<evanjs>
ahh alright. did you uninstall the nix you first installed with apt?
<evanjs>
not sure if/how it might affect anything
<surya>
no i didn't uninstall that i install using apt
<evanjs>
okay
<surya>
so what the error for changing ownership of path '/tmp/tmp.KEG8o5Yf1p/nix/store': Invalid argument
<surya>
?
<evanjs>
what does `nix --version` say?
<surya>
2.3.4
<evanjs>
what happens when you try to install the program with a non-root user?
stephaneyfx has joined #nixos
<surya>
i have not tried in non-root user. actually i have'nt any non-root user
acowley has quit [Read error: Connection reset by peer]
<evanjs>
also, have you tried logging out and back in after running that `curl ...` command?
<surya>
what do u mean by logging out ?
<evanjs>
If you're using a graphical session: quitting that session and re-launching your desktop environment. If you're just in a virtual terminal: just running `exit` and then logging back into the root user or etc
<evanjs>
palesz: seems to work fine on the unstable image
dongcarl has quit [Read error: Connection reset by peer]
<surya>
can i try in non-root user it that help me?
<evanjs>
I mean it can't hurt to try, sure
acowley has joined #nixos
dongcarl has joined #nixos
<surya>
ok thanks
<evanjs>
surya: also... how are you trying to install daedalus wallet?
<evanjs>
From what I am seeing... it does not look like a typical package that can simply be installed with `nix-env`
rajivr has quit [Quit: Connection closed for inactivity]
BlessJah1 has joined #nixos
BlessJah has quit [Ping timeout: 240 seconds]
philr has quit [Ping timeout: 264 seconds]
dongcarl has quit [Read error: Connection reset by peer]
sheeldotme has joined #nixos
ManiacOfMadness has joined #nixos
dongcarl has joined #nixos
sedx\_ has quit [Killed (Sigyn (Stay safe off irc))]
brandonhamilton has joined #nixos
brandonhamilton has quit [Ping timeout: 240 seconds]
metreo has quit [Quit: Leaving.]
dongcarl has quit [Read error: Connection reset by peer]
<sheeldotme>
When attempting to build nixos as a flake for the first time I get an error saying it can't lookup not-detected.nix in pure evaluation mode and to use --impure to override. I'm not sure if this is expected or if I've made an error, I'd really appreciate any help, thanks!
dongcarl has joined #nixos
raghavsood has joined #nixos
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #nixos
kayg04 has joined #nixos
superherointj has joined #nixos
user_0x58 has joined #nixos
<superherointj>
Hello. I'm new to NixOS. I'm about to install it on my computer. My system uses UEFI. And I wonder if I should install GRUB because I don't use for quite some time by now. Is it a bad idea to avoid installing GRUB when using NixOS? Currently I use Arch & EFIStub method which I found to be faster.
<pikajude>
nixos works perfectly fine with uefi if that's what you're asking
<superherointj>
Yes. So Grub is not required then.
<ToxicFrog>
I think if you're using EFI you have a choice between grub or systemd-boot. I forget if it can also just directly put efi-executable kernels into the ESP. I've used both grub-efi and systemd-boot without issues.
<pikajude>
yeah i've used systemd-boot
<superherointj>
Does NixOS somehow manages the efi entries or I should configure it manually (as I did in Arch)?
<pikajude>
nixos adds a new EFI entry whenever you nixos-rebuild
<superherointj>
Oh. Thanks!
<pikajude>
even if you dual boot, which i did
<pikajude>
it's pretty neat
<ToxicFrog>
pikajude: I think you need to have boot.loader.efi.canTouchEfiVariables=true for that?
<pikajude>
nixos-generate-config has always automatically set that to true for me
<ToxicFrog>
Aha
<ToxicFrog>
also, wow, the new search.nixos.org options page is really awful :/
<pikajude>
is it?
<ToxicFrog>
Try searching for "boot" and note that the results are in random order
<ToxicFrog>
then search for "boot.loader.efi" and note that nothing in the boot.loader.efi namespace actually shows up
<ToxicFrog>
Then click on an option and watch it expand the option but also jump the scrollbar up half a page
<ToxicFrog>
(it also no longer searches incrementally, you have to type in the term and hit enter, but that's minor complaint compared to the much larger one of search not actually working anymore)
<pikajude>
oh
<pikajude>
terrible
dongcarl has quit [Read error: Connection reset by peer]
<superherointj>
When doing `nixos-install` do I have to add `--no-bootloader` to avoid installing GRUB? I have not enabled any GRUB entry in `configuration.nix`.
dongcarl has joined #nixos
<cransom>
ah. there's a sort by drop down, it defaults to relevance. i'm not exactly sure what the relevance is, but there's alphabetic sorting
<ToxicFrog>
Aha, that solves one issue
<ToxicFrog>
Unfortunately it doesn't solve the issue of search not actually finding the things I typed in (and instead finding completely unrelated things, e.g. `boot.loader.efi` returns `boot.loader.grub.forcei686`)
<infinisil>
sheeldotme: What does hardware-configuration.nix look like?
<ToxicFrog>
(I wonder if there's some kind of fuzzy matching feature added that has gone horribly wrong)
sheeldotme has quit [Remote host closed the connection]
domogled has quit [Quit: domogled]
nij has joined #nixos
cole-h has joined #nixos
<nij>
I apologize if this is basic.. I'm trying to switch kernel, but have failed by tweaking configuration.nix.
<stteevveen>
Hi! If I have a derivation that builds well, and try to do womehting with, I have an error. I do `myVar = (import ../my-directory/default.nix);` and the error is `cannot coerce a set to a string`. I was expecting that myVar would have the type attributesSet, but for a reason I do not grasp it expects a string. What's most distrubing for me is that
<stteevveen>
in nix repl, when I do test = (import ../my-directory/default.nix) it is ok, and I can display the env constructed by this nix expression... Any idea what goes wrong ?
<nij>
What I did: put `boot.kernelPackage = "pkgs.linuxPackages_2_6_25";` in it.
<nij>
the error: value is a string while a set was expected at ... kernel.nix
<nij>
However, in the man page `man configuration.nix`, the Default value of boot.kernelPackages is the string "pkgs.linuxPackages"
nate48423 has quit [Ping timeout: 265 seconds]
<nij>
(and "pkgs.linuxPackages_2_6_25" is the example given in the manual :(
<stteevveen>
@nij when you write with "" it is a string. Try pkgs.linuxPackages without quotes
<nij>
Tried, also an error: attribute 'linuxPackages_2_6_25' missing
<stteevveen>
it's totally different an error, and it means you nixpkgs does have this derivation
<stteevveen>
does not have (sorry)
dongcarl has quit [Read error: Connection reset by peer]
<nij>
steevveen oooh so the man page is out of date.
<cransom>
i'm pretty sure 2.6.25 is not a valid kernel to use.
<nij>
cransom: yeah want to learn it but a book i will have uses old kernel.
<dongcarl>
Hi all, wondering how node packages are bumped in nixos, as I don't see bump PRs open, but thelounge gets bumped somehow
BlessJah1 has quit [Remote host closed the connection]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #95870 → python3Packages.pwntools: Allow to use any debugger → https://git.io/JJhyI
adam_ has quit [Quit: Lost terminal]
c0c0 has joined #nixos
<infinisil>
dongcarl: See pkgs/development/node-packages: There's a single set of dependencies used by all packages. Whenever somebody wants to update/init a package, the ./generate.sh script is run, which updates all packages and dependencies in the expression
<dongcarl>
infinisil: Could you point me to a PR where something like this happens? Can't seem to spot them.
<infinisil>
dongcarl: Just search for nodePackages
hiro99 has quit [Ping timeout: 246 seconds]
<dongcarl>
gotchu
davidv7_ has joined #nixos
<infinisil>
cole-h: I think we just need a bot that runs ./generate.sh once a week (or immediately if a package is added) and makes a PR for that, discarding older PRs
icey_ has quit [Ping timeout: 256 seconds]
<infinisil>
And people would just add a single line in node-packages.json
<infinisil>
Although that makes it harder to test updates/inits
<{^_^}>
[nixpkgs] @danieldk merged pull request #95843 → castnow: expose at top level → https://git.io/JJAjW
<cole-h>
infinisil: tbh I just wish we would do node2nix for each package... Though I don't think that would be as cache friendly as the current situtation...
<infinisil>
I mean, it seems to work fine currently, other than the merge conflicts
<infinisil>
Packages get updates automatically and it's cache friendly
<cole-h>
idk, haven't put much thought into it, but it's certainly a PITA when messing with Iosevka that I have a custom derivation using node2nix lol
<infinisil>
nij: You can `export PATH="$HOME/.scripts:$PATH"` in your shell initialization
<bqv>
Your script is now a derivation :.
<infinisil>
Or what bqv suggests (though then you can't have quick dev cycles for the scripts)
<infinisil>
Well unless you call them by path directly I guess
<bqv>
´
<nij>
infinisil: ahh yeah.....!
<nij>
bqv: thank you too :)
shibboleth has joined #nixos
sangoma has quit [Ping timeout: 256 seconds]
smatting_ has quit [Ping timeout: 244 seconds]
tsrt^ has joined #nixos
superherointj has quit [Quit: Leaving]
sangoma has joined #nixos
quinn has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
raghavsood has quit [Ping timeout: 245 seconds]
<nij>
I've found a tiny tiny outdated info in the manual. Should I PR because of that? Or that would do more bad than good, as the maintainers have many works to do already?
<ScottHDev4>
Hello, I'm packaging a gtk app, I've added wrapGAppsHook to nativeBuildInputs but the binary in result/bin doesn't get wrapped, are there conditions to get it wrapped?
troydm has joined #nixos
<Church->
So question, why would I be getting a error like this? https://paste.rs/HHn
<Church->
Just installing on a new device as usual. Not differing from the manual.
<cole-h>
ScottHDev4: How do you know it isn't wrapped?
<{^_^}>
[mobile-nixos] @samueldr pushed 8 commits to master: https://git.io/JJhSj
<samueldr>
Church-: that's not Legacy/UEFI, that looks like MBR/GPT
<samueldr>
Church-: you're installing as legacy, and GRUB needs a "bios boot" partition as an alternative to the "empty" space commonly found in MBR when installed to GPT
<worldofpeace>
evanjs: I've also turned (some sorry) of those into github teams. the goal eventually is to have ofborg handle that and create the teams
detran has joined #nixos
<cole-h>
worldofpeace: 👀
cyphase has joined #nixos
zupo has joined #nixos
<evanjs>
worldofpeace: oooo sweet! I can definitely see this being really useful (for me) once it has e.g. Rust, virtualisation, etc
<drakonis>
Firefox can’t establish a connection to the server at wss://foundry.drakonis.xyz/socket.io/?session=mzameud8yjeeqd25wq83jx1f&EIO=3&transport=websocket.
<colemickens>
Why do we have extra-substituters but not extra-trusted-public-keys??
buckley310 has quit [Quit: Connection closed for inactivity]
<nij>
I got `zathura` from nixpkgs on my nixOS, but the prompt of it has font problem..
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #95875 → gdb: Give it a `pname` → https://git.io/JJhd6
<nij>
It didn't show words, but only show boxes :(
__Sander__ has quit [Quit: Konversation terminated!]
<worldofpeace>
adam_: it's looking for a file named jaxlib-0.1.52-py2.py3-none-any.whl by just giving fetchPypi pname and version
<Orbstheorem>
Hi. I remember seeing an MR about secrets around (discourse, mail, here, I don't remember). It used something about systemd to decrypt secrets and give them to apps? Does it ring a ball?
<Orbstheorem>
s/ball/bell
* Orbstheorem
is tired :(
<nij>
On my arch machine, this didn't happen, though I used `pacman` there.
<bqv>
sounds like a fontconfig issue, nij
<adam_>
worldofpeace: how would I actually modify the url that it is using?
<nij>
bqv: thanks for reaching out. On arch I'm using inconsolata, and on nixos I'm using terminus.
<nij>
But on nixos I do have terminus installed.
<adam_>
would I have to implement my own version of fetchPypi?
<worldofpeace>
noticed how there's an attrset for the hashes for the wheels by python version. in jaxlib I can see there's a wheel for python 36 37 and 38 (and macos support). so that would probably be a lot of hashes
<infinisil>
Orbstheorem: Oh there's also a reference to rfcs#59 there
<worldofpeace>
adam_: so it's almost easier to get it from source. though it might be more complicated, I'm not familiar with jaxlib
<adam_>
worldofpeace: It only needs to support python 3.8 at the moment. I tried grabbing it from source already and it wasn't really working out for me either
<adam_>
the weird thing is you need both jax, and jaxlib
<adam_>
however, jax works just fine with no modifications, while jaxlib is a pain
<adam_>
so the main thing is setting the format to wheel?
<adam_>
But the thing is my path will probably be somewhere in the nixstore right
arjen-jonathan has joined #nixos
<jtojnar>
worldofpeace we are considerring dropping the versoioned config altogether
<worldofpeace>
adam_: yeah, I'm alluding that you will need to patch the binaries (automatically hopefully) to use libs from nix
alp has quit [Ping timeout: 272 seconds]
gustavderdrache has quit [Quit: Leaving.]
<adam_>
yikes
<worldofpeace>
adam_: we actually have a dead simple way to do that
<adam_>
there is no way to just point the ld_library_path to wherever our libstdc++ is
<adam_>
when you say "patch a binary"
<adam_>
what are we talking about here
<worldofpeace>
Jan Tojnar: I'm guessing we can have fontconfig not freak out on configs anymore?
mounty has joined #nixos
<adam_>
or do you still think going down the bazel route is best?
<worldofpeace>
adam_: in nix we don't use LD_LIBRARY_PATH, if you were to use readelf on the dynamic header of a binary complied when using nix the rpath would be absolute paths within the nix to every one of it's dependent libs
davidv7_ has joined #nixos
<worldofpeace>
we use a hook autoPatchelfHook to do that in the case of precompiled binaries
davidv7__ has quit [Ping timeout: 265 seconds]
<adam_>
that seems a bit crazy if I'm being honest haha
<adam_>
isn't there a way during build time to simply change where things are looked up
<adam_>
in the cmake config or the bazel build config
<adam_>
the autoPatchelfHook link isn't working btw
<adam_>
I'll search the manual and see if I can find it
<adam_>
Also why do they use native build inputs rather than propagated build inputs?
<worldofpeace>
adam_: because the setup hook is a shell script and not a runtime dependency of the package
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<adam_>
Can you explain a bit more what autoPatchElfHook does? The manual has like a paragraph, but that seems like magic
<adam_>
all I do is put autoPatchElfHook in nativeBuildInputs and everything will work?
o1lo01ol1o has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<worldofpeace>
adam_: so autopatchelf basically handles the whole patching process for you. it searches for all the dependencies for an elf object to patch and it invokes patchelf on them. if it can't find a dependency in the build environment it will bail out and say 'cant find liboriginal.so.1`. So the only part it doesn't handle is adding the dependencies to patch with into the build environment.
<worldofpeace>
I don't know what jaxlib needs, but one failed invocation of autoPatchelfHook will tell you all the .so's that are missing
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<adam_>
oh wow awesome
<worldofpeace>
and then you could add them to buildInputs
<adam_>
well propagatedBuildInputs right?
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<adam_>
and where does the autoPatchElfHook come from?
<adam_>
it's an undeclared identifier
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<worldofpeace>
autoPatchelfHook
<worldofpeace>
just a typo
<adisbladis>
adam_: You probably don't need them to be propagated
<adam_>
searching for dependencies of /nix/store/c8war9fhlladw84djwk16hqabv8y0sjl-python3.8-jaxlib-0.1.52/lib/python3.8/site-packages/jaxlib/tpu_client_extension.so libstdc++.so.6 -> not found!
o1lo01ol1o has quit [Ping timeout: 272 seconds]
sangoma has quit [Ping timeout: 265 seconds]
arjen-jonathan has quit [Ping timeout: 240 seconds]
<adisbladis>
adam_: Add stdenv.cc.cc to buildInputs
<worldofpeace>
+1 adisbladis
cosimone has quit [Quit: Quit.]
<adam_>
it worked!!!!!!
<worldofpeace>
lucky to only need libstdc++.so.6
<adam_>
thank you all so much
<worldofpeace>
yep no problem
<worldofpeace>
adisbladis: is all the rpath madness in the nixpkgs manual? I can't find it anymore
<qyliss>
infinisil: yeah, good point
<qyliss>
I was just thinking about what haskell does
<qyliss>
But it could equally go to master and still need to be run periodically
<adam_>
so you all don't think people would want this in the nixpkgs unless it's a source build?
<qyliss>
It might provide less visibility though
<adisbladis>
worldofpeace: I don't know where it is?
<adam_>
is there any way I could schedule some time with one of you if you are free and maybe we can try to get that working then? I would really like to get jax upstream
<adisbladis>
adam_: Generally speaking we prefer source builds, even if it's painful to create the expressions.
<worldofpeace>
adisbladis: aw, I could have swore it was in there
<adam_>
if that's too big an ask, i'll definitely at least try on my own and see how far I get haha
<adam_>
Maybe I can toss what I have on pastebin if I get stuck again
<adam_>
but for now everything is working! and I can at least maintain my build on github
Dr8128 has quit [Ping timeout: 256 seconds]
user_0x58 has joined #nixos
davidv7__ has joined #nixos
<adam_>
Actually I do have one last question for you all today.
<worldofpeace>
adam_: I used to do that but I have a full schedule now so I'd have to do invoicing ☹️ I'm sure someone could help you though if you pastebin it, there's a lot of python knowhow here. I think I already linked you https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/dm-sonnet/default.nix but that sounds similar to what needs to be done. it's just I don't know bazel, and I'm not sure you have to
<worldofpeace>
their special script
dingenskirchen has quit [Quit: dingenskirchen]
davidv7_ has quit [Ping timeout: 258 seconds]
<adam_>
I have dunst installed and if I write dunstify "hello" I get a notification
<adam_>
but when I use slack, and I get a notification, nothing pops up
<adam_>
worldofpeace: yeah i'll look at the sonnet build, since that's also by google. I'm sure it will be similar! Thanks a lot
<{^_^}>
[nixpkgs] @turboMaCk opened pull request #95877 → emacs26: install correct emacs version → https://git.io/JJhNW
<worldofpeace>
adam_: it seems that dunst uses libnotify library, and I'm guessing it creates some sort of dbus interface. slack uses electron which should work with that, weird.
<worldofpeace>
from looking at the packaging to dunst I'm not certain it's all correct
<elux>
my /boot is full and i cant nixos-rebuild boot, kinda stuck. ive tried to manually delete files in efi/nixos, and then rebuild boot will just return all of the old generations.. what gives
<Ashy>
does a garbage collect work?
<clever>
elux: which bootloader are you using?
<Ashy>
oh /boot
<elux>
systemd-boot
sadmin has quit [Ping timeout: 240 seconds]
<clever>
elux: boot.loader.systemd-boot.configurationLimit controls how many generations nixos will try to copy into /boot/ when you switch
<clever>
it defaults to all
<elux>
thanks, ill definitely set this for the future, maybe that wlil help now
<bqv>
what?
<bqv>
it defaults to all?!
<clever>
if you delete some, and set that, it will copy fewer into the dir, and not overflow the partition
<clever>
bqv: yes
<clever>
null means no limit i.e. all generations that were not garbage collected yet.