Mindavi1 has quit [Read error: Connection reset by peer]
zebrag has quit [Quit: Konversation terminated!]
<ronthecookie>
am i doing something wrong or is it nixpkgs? "error: infinite recursion encountered, at undefined position" with nix-shell on: https://termbin.com/9p9e
zebrag has joined #nixos
Mindavi1 has joined #nixos
proofofkeags has joined #nixos
slack1256 has joined #nixos
<slack1256>
Does anyone else have has had problems with pulseaudio.service starting up since some nixpkgs versions ago?
<slack1256>
I have it activated on my configuration.nix, yet checking systemd, it fails to start.
<slack1256>
Plus on newer version of nixpkgs Xorg fails as is missing the plymouth.service file. I didn't enable such service, but if Xorg requires it, shouldn't that option also enable plymouth? I had to do it by hand.
<shapr>
slack1256: I've had it fail to start up a few times, but playing music with mpd gets it to start after failure
ris has quit [Ping timeout: 240 seconds]
Jd007 has quit [Quit: Jd007]
<supersandro2000>
ronthecookie: that cross target does not work because something requires itself in the chain to build it
<ronthecookie>
supersandro2000: would adding that target to boot.binfmt.emulatedSystems help then?
<supersandro2000>
it wont help the eval erorr
<ronthecookie>
ah i thought you meant like "cross compiler needs cross compiler to compile itself"
S0rin has quit [Ping timeout: 240 seconds]
Mindavi1 has quit [Read error: Connection reset by peer]
Mindavi1 has joined #nixos
patagonicus0 has joined #nixos
patagonicus has quit [Ping timeout: 246 seconds]
dotdotok has quit [Ping timeout: 240 seconds]
joe[m]1 has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
proofofkeags has quit [Ping timeout: 265 seconds]
S0rin has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
hlz has quit [Quit: WeeChat 3.1]
hlz has joined #nixos
Sigyn has quit [Read error: Connection reset by peer]
Sigyn has joined #nixos
Mindavi1 has quit [Read error: Connection reset by peer]
<Tv`>
i have nixos 20.09 with container.foo.container.services.samba.enabled = true, but its /etc/samba/smb.conf still says "Samba is disabled". any clues?
Mindavi1 has quit [Read error: Connection reset by peer]
<clever>
if its building with -j, it may take longer to fail
<JJJollyjim1>
yeah, i don't see anything in the last ~100 lines
<JJJollyjim1>
oh yeah there it is, like 300 up haha
<JJJollyjim1>
ah i guess different sub-makes keep going when one failes
<JJJollyjim1>
*fails
<clever>
exactly
<JJJollyjim1>
yep there it is, ty
<clever>
at least with interactive builds, you can re-run `make -j1` after the failure
<clever>
and it will repeat that failure, and fail instantly
<clever>
but nix likes to clean the intermediates up, so you cant
<JJJollyjim1>
yep
<JJJollyjim1>
i was familiar with needing to check the last $(numcpus) lines or so
<JJJollyjim1>
but forgot that different make processes would keep going, running new tasks
<clever>
also depends on what style of recursion the project is doing
<JJJollyjim1>
yeah
<charly79>
Hi everyone. I try to build a library. but at build stage, I get `/nix/store/w65ydq10abi813fi7d5j7afdcrxj3aqq-bash-4.4-p23/bin/bash: ../lds-gen.pl: /usr/bin/env: bad interpreter: No such file or directory`. Is there someone used with this kind of error ?
<JJJollyjim1>
yeah, /usr/bin/env doesn't exist on nixos (or in the nix sandbox)
<clever>
charly79: /usr/bin/env doesnt exist at build-time, run patchShebangs on the perl script
<charly79>
I know that. I took an other package as example.There was a postPatch with `patchShebangs .` in it… If a remove it, I get the same kind of error but at patch stage.
<charly79>
I tried the same on preBuild… no result
aaabbbbbbbbbb has joined #nixos
zupo has joined #nixos
<charly79>
(actually, I'm not used with nix builds and c++ compiling, so I just try without knowing what I do :D
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<charly79>
but I understand that I certainly should patch something to replace /usr/bin/env in this " ../lds-gen.p" , but how ?)
<JJJollyjim1>
I don't quite understand what you are saying about "If a remove it"
<NobbZ[m]>
If in doubt `sed` or `substituteInPlace`
<JJJollyjim1>
that looks good, why are you removing it?
stree has joined #nixos
<charly79>
This is a working package… I copied it… and adapted it with an other lib…
<JJJollyjim1>
oh I see
<JJJollyjim1>
yeah that sounds like it should work
<charly79>
I tried to remove the line to undertand what it was for…
<NobbZ[m]>
So what other library do you want to package?
<charly79>
And I found out, that removing it… did the same error, but in patchPhase. So I understand that I would do approximately the same… for build phase
<phalrax>
Currently getting this error in 1.19 "failed to find memory cgroup, you may need to add "cgroup_memory=1 cgroup_enable=memory", apparently it's fixed in 1.20, so I'd like to use the latest one
Haider has quit [Read error: Connection reset by peer]
ericsagnes has quit [Ping timeout: 246 seconds]
ericsagnes has joined #nixos
afr3akk has joined #nixos
afreakk has quit [Ping timeout: 260 seconds]
<yaymukund>
it looks like my graphical-session.target completes before pipewire is started up, so my i3/sway status errors out complaining that audio isn't ready. What's the right way to fix this?
<sterni>
also I figured you'd want to be the one to decide on the fix and at the time I had the impression it could be feasible to have a bleeding edge hls
Haider has quit [Read error: Connection reset by peer]
ahmedelgabri has quit [Ping timeout: 250 seconds]
meh` has quit [Ping timeout: 246 seconds]
FRidh has quit [Quit: Konversation terminated!]
<ambroisie>
My bad, it's listed as an `overlay`, but same question anyway
Thra11 has joined #nixos
meh` has joined #nixos
dotdotok has quit [Ping timeout: 268 seconds]
Haider has joined #nixos
<Thra11>
Is it possible to set `environment.enableDebugInfo` or equivalent for a `nix-shell -p somepackage`? I want debug symbols for somepackage and all (or at least most) of its dependencies, but not for the whole system.
Haider has quit [Read error: Connection reset by peer]
<phalrax>
Currently getting this error in 1.19 "failed to find memory cgroup, you may need to add "cgroup_memory=1 cgroup_enable=memory", apparently it's fixed in 1.20, so I'd like to use the latest one
<Thra11>
sterni: Looks like qt-5 has it's own `debug` argument. I've passed that in as true, so hopefully I'll now get qt libraries with debug symbols, without rebuilding stdenv.
<Thra11>
(I checked the output from the first qt module to finish building, qtsvg, and the libs have debug symbols, so looks promising...)
<Antkibo>
Hi, am applying a patch to a program (C++). When I use a hardcoded path (/home/$USERNAME/.nix-profile/share) it works well, but that's not portable. I tried using std::env and strcat, which outputs the very same path. However, when I tested that program complained that .nix-profile is a read-only filesystem. Any help?
sss2 has quit [Quit: Leaving]
Haider has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
phalrax has quit [Quit: Connection closed]
Haider has quit [Read error: Connection reset by peer]
<viric>
I get those kernel: Bluetooth: hci0: SCO packet for unknown connection handle 39
raoul90 is now known as raoul
<Yaniel>
which pipewire version is this again?
<viric>
0.3.24
<viric>
well I can't say it's msbc. The headset profile works bad.
<Yaniel>
oh, hsp
<Yaniel>
yes that one is weird
<viric>
or hfp, whatever it is
<Yaniel>
I usually only use a2dp
<viric>
ah
<viric>
no no, I'm interested in the msbc for HSP
<viric>
but it's supposed to work I think, in 0.3.24
<Antkibo19>
Hey, Yaniel. When using substituteInPlace in a postConfigure hook, how to point to the source files? Tried with $src
aveltras has joined #nixos
<Yaniel>
the hook is run in the source directory
afr3akk has joined #nixos
<Yaniel>
or well, in the root of whatever you specify as the source
<viric>
hm I see the default headset-roles may not be ideal
<Yaniel>
i.e. it unpacks the sources and cd's into the unpacked directory
<viric>
Yaniel: how can I enable the PIPEWIRE_DEBUG easily?
<Yaniel>
viric: I suspect #pipewire is more helpful with headset profile things
<viric>
hm ok
<viric>
thank you!
<Yaniel>
you can set it in the config
<viric>
can I?
mallox has quit [Quit: WeeChat 3.1]
<Yaniel>
in pipewire.conf, context.properties = {log.level = 2}
<Antkibo19>
Yaniel: I put the same path as in the source file and it says it fails. The git repo has a folder called source, so the path is ./source/hal/i_directory.cpp. But this fails
<{^_^}>
[nixpkgs] @sternenseemann pushed to haskell-updates « haskellPackages: restrict a few packages depending on haskell-gi »: https://git.io/JY6DJ
<matthewcroughan>
Maybe I need to stop playing with computers.
<viric>
Yaniel: ahh thank you.
respawn_ has quit [Quit: Leaving]
<viric>
hexa-: do you run hsphfpd?
<viric>
mh segfault in bluetoothd
gustavderdrache has joined #nixos
<Yaniel>
I've disabled hsphfpd since pipewire got native support
axel_parolta has joined #nixos
<viric>
ah
<hexa->
viric: no
<gchristensen>
oh wow sounds like I need to switch to pipewire
<viric>
Yaniel: i heard the same but as it looked like not working for me...
<hexa->
the main selling point rn is better bluetooth codec support iirc
<Yaniel>
depends, but bluetooth is a big one yes
<axel_parolta>
Hello, I am trying to use vscode-with-extensions following the how-to here: https://nixos.wiki/wiki/Vscode. How I managed to find all the information that I need at the exception of the sha256 for the extension. I am not sure where/how to get this information.
<AmandaC>
does pipewire support bluetooth source as well as sinks?
<viric>
hexa-: do you use the hfp or hsp profiles?
<supersandro2000>
axel_parolta: put in lib.fakeSah256, built it and replace it with the one it got
<gchristensen>
is there a wiki thing or brief howto on moving to pipewire?
<Yaniel>
gchristensen: issue #102547 has a config snippet
<kurnevsky>
Hi! I'm trying out nixos with channel nixos-20.09. I added wineWowPackages.staging to my packages list some time ago and it was downloaded from the cache but now after latest update it started to build it for some reason. I see that it tries to find it with this url https://cache.nixos.org/6kx9djv5vwrhhrsljhha17r5ww61xz29.narinfo and the cache returns 404. And I don't see any errors/delays on hydra. So any idea why it's missing in the cac
<kurnevsky>
he?
ahmedelgabri has joined #nixos
<kurnevsky>
I'm new to nixos so I might miss something :)
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JY6A9
<hexa->
the package has been failing for the last week due to dependency problems
beertoagunfight has quit [Remote host closed the connection]
<raboof>
I'd like to try disabling nscd to make opensnitch more effective. doing that leads to an error because nscd is required to load NSS modules.
<raboof>
apparently it's possible to opt out of loading NSS modules by setting `config.system.nssModules` to `[]`, but I'm having trouble finding the right syntax to do that in `configuration.nix` ;) - any pointers?
lsix has joined #nixos
fjfjfjfjfjfj[m] has quit [Quit: Idle for 30+ days]
<raboof>
ah, so that's what way meant by 'force' :) - thanks, that at least seems to evaluate. I guess I'll find out whether NSS modules were useful :D
<raboof>
tpw_rules++
<{^_^}>
tpw_rules's karma got increased to 12
meh` has quit [Ping timeout: 240 seconds]
<tpw_rules>
i'm not actually sure how the system will work without nss
beertoagunfight has joined #nixos
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JYift
<raboof>
I guess the first question is 'if' it will work :D. luckily Nix makes experimentation safe :)
meh` has joined #nixos
domogled has joined #nixos
<lukegb>
Ooh, Fedora 34 switches to Pipewire
Thra11 has quit [Ping timeout: 265 seconds]
Mindavi1 has quit [Read error: Connection reset by peer]
Mindavi1 has quit [Read error: Connection reset by peer]
<aveltras>
any idea how to get stack to build a haskell project on NixOS without using either nix haskell infrastructure nor stack nix integration ? my problem right now is to get stack to locate zlib when build, adding "zlib" to mkShell buildInputs doesn't work
n-osborne has quit [Remote host closed the connection]
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #nixos
emacsomancer has quit [Excess Flood]
emacsomancer has joined #nixos
proofofkeags has joined #nixos
cole-h has joined #nixos
beertoagunfight_ has joined #nixos
beertoagunfight has quit [Ping timeout: 240 seconds]
Haider has joined #nixos
Haider has quit [Max SendQ exceeded]
meh`_ has joined #nixos
<aveltras>
infinisil: it worked thanks, in fact it seems it was using the nix integration implicitely and so i had to add the zlib dependency in stack.yaml rather than shell.nix
<Leni>
Hey I having trouble installing nix on arch, any help?
<supersandro2000>
Leni: if you tell us whats the problem we can try to help
VideoGameEnjoyer has quit [Quit: Konversation terminated!]
<Leni>
alrigth thanks, here's the error i get : nix-shell: /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.23)
<Leni>
My system is up to date with glibc 2.33 installed
<sphalerite>
Leni: it seems to be trying to load a libsodium from outside nix which isn't compatible with nix. Do you need the libsodium in /usr/local?
VideoGameEnjoyer has quit [Remote host closed the connection]
<aveltras>
any easy way to find the latest nixpkgs commit containing ghc883 ?
Mindavi1 has quit [Read error: Connection reset by peer]
<Leni>
sphalerite: okay I removed the libsodium.so.23 file since I had the libsodium.so.23.3 file and now the error is : getting status of '/usr/local/lib/default.nix': No such file or directory
<matthewcroughan>
Minijackson: I see that you were the last jellyfin committer :D
<matthewcroughan>
How does the module work? It looks like all you can do is enable it and nothing is listening on netstat.
<EmoSpice>
Hey all - I'm building a derivation for a BAP-based program. BAP (the Binary Analysis Platform) requires libz3 and dynamically loads it at runtime. I am struggling to figure out how I should represent this in the derivation (or even if this library exists. I see z3, but no libz3...). Does anyone have any advice here? I'm happy to share my
<EmoSpice>
derivation in its current state if that'd help.
<Minijackson>
matthewcroughan: I'm not seeing the whole log, but it seems to be running fine
<matthewcroughan>
Minijackson: How do you actually get the whole log?
<matthewcroughan>
I did journalctl --no-pager -fu jellyfin and expected to get the full log
meh` has quit [Ping timeout: 252 seconds]
<matthewcroughan>
I never get that, sometimes the actual log just doesn't happen and you only get "service failed" when you want the output of the stdout of the binary, you know what I mean?:
<supersandro2000>
Leni: how are you installing it? Using the installer or some AUR package?
<Leni>
the installer @supersandro2000
<Leni>
supersandro2000 the installer
<Minijackson>
matthewcroughan: everything seems to be fine, are you accessing it through localhost? If else, do you have the port open in the firewall?
<supersandro2000>
Leni: bash <(curl -L https://nixos.org/nix/install) --daemon ? btw you can even write sandro and I get a ping
ahmedelgabri has quit [Ping timeout: 250 seconds]
<matthewcroughan>
Minijackson: Ah, it only shows as listening on tcp6
<matthewcroughan>
I missed it
<Leni>
@sandro yes this command
<matthewcroughan>
Minijackson: Yeah, it looks like it's right there.
<matthewcroughan>
Damn, is Jellyfin really this stateful? I hate it! Gah
<Leni>
supersandro2000 sure about that ping :D I'm new here
<matthewcroughan>
I will just have to keep good backups :P
<supersandro2000>
Leni: and you might want to unset LD_LIBRARY_PATH if you have it in your env
<Leni>
supersandro2000 I use the pacman -Qi glibc | grep Version command and it outputs the right glibc version 2.33-4
<EmoSpice>
How might I have known about `z3.lib`? search.nixos.org doesn't return anything about it. manix doesn't know about it either.
<Leni>
supersandro2000 I unset the var and still same error
<EmoSpice>
The LD_LIBRARY_PATH trick didn't work, but that is not surprising to me. However, knowing about `makeWrapper` and `wrapProgram` is still probably the way forward.
meh` has quit [Ping timeout: 240 seconds]
<Minijackson>
EmoSpice: this is a multi-output package, it is quite common for packages that provide both binaries, include files, librairies, etc.
<Leni>
supersandro2000 by the way it only shows an error trying to run a nix-shell
<Minijackson>
i usually use zsh's completion on `nix-build` to discover them x)
<Minijackson>
`nix build`* sorry
meh` has joined #nixos
<EmoSpice>
That's an awful answer, but a practical one. Now I need to find out how to enable tab completion for the nix commands :)
<EmoSpice>
(awful in that it doesn't address the underlying issue of the packages being hard to discover, to be clear)
zebrag has quit [Quit: Konversation terminated!]
<Minijackson>
yes, discoverability can definitely be improved
<Minijackson>
another way to discover it, would have been to go to https://search.nixos.org/packages, search for z3, then look at the source, to see that it has an `outputs` attribute
<Minijackson>
but you still have to know of multi output packages beforehand
proofofkeags has quit [Ping timeout: 258 seconds]
<matthewcroughan>
Minijackson: What is this context?
<matthewcroughan>
Is this talking about flakes?
rajivr has quit [Quit: Connection closed for inactivity]
<matthewcroughan>
Flakes have outputs that can be tab completed, it's quite discoverable.
<supersandro2000>
EmoSpice: search.nixos.org does not list multiple outputs
<matthewcroughan>
if what you're searching for is in nixpkgs, you can tab complete the flake
<Minijackson>
not flakes, just multi-output derivations being hard to discover if you don't know of them beforehand
<EmoSpice>
supersandro2000: That is pretty clear, but it seems like a bad thing. Am I wrong?
<supersandro2000>
normally you don't need to know them :P
<supersandro2000>
Leni: mmm I don't know.
<EmoSpice>
Clearly, I *do* need to know about them and all I'm doing is bundling a built package that links against it. I recognize that I'm probably in the "top 50%" of users here in that I'm building a derivation for distribution but I'm no magician.
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JYinQ
meh` has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JYice
<supersandro2000>
EmoSpice: well, I am never looking up such things over search but in the repo or with tab complete P:
hoijui has quit [Ping timeout: 246 seconds]
* EmoSpice
shrugs
<EmoSpice>
Maybe that's because the search doesn't show it to you and if we fixed the search it'd help people figure it out
hoijui has joined #nixos
__monty__ has joined #nixos
jkachmar has joined #nixos
<jkachmar>
Anyone running `podman` as the OCI containers backend w/ ZFS as their underlying FS?
<jkachmar>
I got sick of trying to make `docker` work w/ the declarative firewall so I'm trying to move some of my stuff over to the `podman` backend, but I'm getting stuck at even the most basic step of spinning a container up
<jkachmar>
`Error: the 'zfs' command is not available: prerequisites for driver not satisfied (wrong filesystem?)`
Haider has quit [Read error: Connection reset by peer]
<jkachmar>
like, i would have expected ZFS + podman backend to be a common enough configuration that I wouldn't be the first person to trip this up
<gchristensen>
podman calls so many random programs it is hard to catch them all :(
tmciver has quit [Ping timeout: 240 seconds]
Haider has joined #nixos
Haider has quit [Read error: Connection reset by peer]
tmciver has joined #nixos
<dotlambda>
Stupid question: What's the point of containers if you have NixOS? I know that some software only runs well in containers, but that's usually due to bad design decisions by upstream.
<EmoSpice>
supersandro2000: Good thinking. Thank you for taking the initiative. Were it not Easter weekend (which means little to me, but my in-laws/parents are clamoring for time with their grandkids.), I'd happily look into fixing this up soon (it looks to be a python codebase, which happens to be a language with which I'm quite familiar.). I'll see where I
<EmoSpice>
can help out on this soon though!
<supersandro2000>
dotlambda: if you have 50 containers and want to use NixOS
<supersandro2000>
and why not podman? because you can't get their networking set up on Debian.
<supersandro2000>
and php stuff is always quite happy in containers :P
<sterni>
maralorn: it's me but I'm too lazy to login on mobile :p
erasmas_ has joined #nixos
<supersandro2000>
oh and onlyoffice is a software which happily lives in its fat container
endformationage has joined #nixos
bitmapper has joined #nixos
<EmoSpice>
supersandro2000: Bother. It looks like the immediate problem is that the `nix-env ... --json -qa` command doesn't spit out the output list, only what outputs get installed by default
avaq has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @peti pushed to master « hackage2nix: update list of broken packages to fix evaluation errors on Hydra »: https://git.io/JYi4P
erasmas has quit [Ping timeout: 265 seconds]
mcornick1 has joined #nixos
beertoagunfight_ has quit [Remote host closed the connection]
Leni has quit [Quit: Connection closed]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken packages to fix evaluation errors on Hydra »: https://git.io/JYiBs
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JYiBl
orivej has joined #nixos
andi- has quit [Ping timeout: 268 seconds]
<supersandro2000>
EmoSpice: you can get it with nix-instantiate --eval -E 'with import ./. { }; audit.outputs'
<supersandro2000>
might be that the json output needs to be rebuild with this extra output
kozowu has quit [Quit: Connection closed for inactivity]
luxemboye has quit [Remote host closed the connection]
luxemboye has joined #nixos
erasmas_ is now known as erasmas
Drakeson has joined #nixos
<Drakeson>
Hi! How can I change the store-dir path for my nix installation? I have tried --with-store-dir=/some/path and I still get errors when nix is trying to write something to /nix. Is there an option to change the /nix/var directory as well?
<Drakeson>
I see. Thanks! For the context: I am trying to build nix on a new machine, using darwin.arm64 (which is not in the binary caches anyways), and rather than dealing with the disk mounting shenanigans, I am trying to use a different store path.
<clever>
and thats exactly the kind of situation doit.sh was made for
<clever>
from a machine with nix already working in /nix/, you can create a new build of nix that lands at /home/clever/rootfs/home/example/nix/store
<clever>
you then copy that new build to /home/example/nix/store on the target machine, and it will keep working
ahmedelgabri has joined #nixos
<Drakeson>
Oh. My machine with working nix is currently [nearly] dead. Is there anywhere in the source I can patch up to get myself to a different config at the build time?
Antkibo has joined #nixos
<clever>
Drakeson: its just flags to ./configure
jumper149 has quit [Quit: WeeChat 3.1]
VideoGameEnjoyer has joined #nixos
<Antkibo>
good afternoon. How can i disable the package suggest when entering a not installed package on bash?
<matthewcroughan>
I don't see a reason nixos-install couldn't create a provisioning script from interacting with lshw --json
asdfghjkl100 has quit [Ping timeout: 240 seconds]
<matthewcroughan>
you could declare an installation script in the nix language that's not too different from doit.sh, but more nix-native.
<matthewcroughan>
and it could implement that, based on the lshw --json output at runtime
<matthewcroughan>
with flakes, I see no reason you couldn't do this.
meh` has joined #nixos
<matthewcroughan>
Such as "Don't provision a mirror if there is only one disk specified in the metadata for this machine /dev/disk/by-id"
<matthewcroughan>
or "fail upon evaluation if user has not specified disks to install to by-id"
Antkibo has quit [Client Quit]
<matthewcroughan>
or "don't install it this way if the bios revision as output by hwinfo/lshw is 1.0 because that has a uefi bug that does this"
<Drakeson>
clever: Trying again... I had the first two flags already. Something sounds fishy. What is --disable-init-state (./configure --help is, of course, unhelpful there)?
<dgpratt>
reading about dependencies in the nixpkgs manual (https://nixos.org/manual/nixpkgs/stable/#ssec-cross-dependency-categorization) and I'm a bit confused about some of the terminology -- I assume "build" refers to the platform that a dependency needs to be built on and "target" refers to the platform that a dependency needs to run on, but what exactly then does "host" refer to?
<dgpratt>
and to be honest, I'm not completely clear on what exactly "platform" means in this context either
afr3akk has quit [Quit: WeeChat 2.9]
<clever>
dgpratt: the most complex case (which i dont think nix fully supports) is a canadian cross, where you could for example be building a compiler on x86, but the compiler ultimately runs on arm, and the compiler targets AVR
<clever>
so now you have 3 platforms involved!
<dgpratt>
ohhh
<dgpratt>
so I confused host and target, target is the target platform of the tool?
<clever>
a use-case for the canadian cross, is to build something like an arduino IDE, that runs on the rpi, but use x86 hw to build it
<clever>
i think so
<dgpratt>
makes sense, thanks clever
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
afreakk has joined #nixos
zupo has joined #nixos
<dgpratt>
but now I wonder why the system cares about the target platform of e.g. a compiler...unless there is some scheme by which one could "stage" things, e.g. use the compiler to compile a dependency on some other platform...ah, probably not making sense
<clever>
Drakeson: if a nix binary has write access to /nix/store, it wont need nix-daemon running
<clever>
it will just directly access the store
<jkachmar>
for some reason I can't particularly fathom, it looks like the `docker` backend can get DNS resolution working almost instantly for a container whereas `podman` takes around about a minute and a half after the container loads up
jhun has joined #nixos
jhun has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @peti merged pull request #116965 → Update Haskell package set to Stackage Nightly 2021-03-21 (plus other fixes) → https://github.com/NixOS/nixpkgs/pull/116965
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JYi2f
<Yawn>
hello, ive got a package with a couple of binaries, should i include the script to run them with or just throw them all in bin? the script needs modification though
<Yawn>
Ah no, they can be executed directly, but i was unsure whether it'd be more appropriate to call them through the script. I'll just throw them in bin for now, thanks!
<Leni>
Hey, when I try to install nix on ubuntu I get this error : ./install-nix.sh --daemon --nix-extra-conf-file nix.conf
<Leni>
Ty for help
<Leni>
oops I get this error : opening file '/home/whip/default.nix': No such file or directory
pushqrdx has joined #nixos
<pushqrdx>
i have a couple of quick and maybe stupid questions
<pushqrdx>
1- does using nixpkgs (not on nixos) also require patchelf?
<pushqrdx>
2- will binaries built using nix run without any modification on other systems?
zupo has joined #nixos
<sterni>
pushqrdx: 1) patchelf is used internally in the build process for some packages on both, but binaries that run on your host system will continue running on your host system without modification
<viric>
pushqrdx: it will work as long as you take the whole closure of the binary
<sterni>
pushqrdx: 2) If you build them statically using pkgsStatic for example they can afaik. Otherwise it's a problem as they link dynamically against stuff in /nix/store
<sterni>
they might if you copy /nix/store or the needed subset
jonringer has quit [Remote host closed the connection]
<sterni>
do you have any idea where in the shell script it fails
<pushqrdx>
sterni but nix store isn't hardcoded into them so if the host has the stuff they dyn load they should still work right?
<sterni>
of the one downloaded with the tarball that is
<sterni>
pushqrdx: nope the rpath is so that it includes specific store paths
<sterni>
pushqrdx: that is the whole point of nix that your binaries are guaranteed to not load in some random other version of a library than you built the mwith
<pushqrdx>
which way this nope goes :D so paths are hardcoded?
fendor has quit [Remote host closed the connection]
Thunderbi is now known as nckx
<pushqrdx>
i mean it makes sense if they were but then how can nix be used as CI so that other linux with different FS can use the built bins
<Leni>
sterni the install does not fail, I can run nix --help for example, just nix run and nix-shell I cannot
Mindavi1 has quit [Read error: Connection reset by peer]
lsix has quit [Ping timeout: 258 seconds]
<n3t>
So I've been using NixOS as a main OS for a while and I really like it. I'd like to learn how to package a Python app I develop using Nix, how to create a Docker image etc. I have a lot of spare time in the following days. What should I learn and in what order? I guess I should start with Nix, the language. But what resources are recommended? Should I start with the Nix Pills?
<Leni>
@sterni nothing, I just installed it and want a nix shell
Mindavi1 has joined #nixos
fendor has joined #nixos
<Drakeson>
Leni: what exact command did you run? Just $ nix-shell ?
<sterni>
Leni: nix run either expects some arguments which are packages to put into your shell's environment and if there are none it searches for a default.nix in the current working directory to get that from
<sterni>
Leni: nix run nixpkgs.hello gives you a shell with GNU hello available for example
<Leni>
Drakeson yes
<Leni>
sterni oh okay
<Leni>
I'm rly new to nix btw
<yurb>
Hi everyone. Can i set the owner & permissions of `services.nginx.virtualHosts.<myhost>.root` (or any other filesystem directory for that matter) via `configuration.nix`?
<Drakeson>
Leni: If you are attempting to just get a package, nix-shell -p <package name> is typically what you want. If you are going to use nix for to set up development environments, you might want to start creating your various default.nix'es.
<pushqrdx>
i am trying to compile a list of projects that share similar functionality with nix especialy nix-shell and the ability to install multiple versions of same package
<Drakeson>
Leni: I have many ~/p/<environment>/default.nix directories, for various things. "pushd p/<thing>; nix-shell" is really convenient and powerful.
<pushqrdx>
is there any other projects that do this?
<Drakeson>
guix :-) There was another one I came across within the last month.
sangoma has joined #nixos
<pushqrdx>
yeah guix is the only one i can find
<Drakeson>
there is another one. My memory is fuzzy. Someone posted it to hacker news I think.
<Leni>
okay thanks, I was reading a guide where it was just written open a new nix-shell so I was confused
ManiacOfMadness` has quit [Ping timeout: 246 seconds]
afreakk has quit [Ping timeout: 240 seconds]
<Drakeson>
darn, I can't remember it. It was a new project with a few differences from nix. What I remember is that the ideas/differences were reasonable enough for nix to try to absorb them (rather than jumping ship to that project).
<sterni>
michas: your user is not allowed to use sudo?
mindavi has joined #nixos
<Drakeson>
or / is mounted readonly in the container
<g-w1>
hey, lets say i just did `nix-shell -p vscode` but didn't like vscode, is there a way to collect garbage for only vscode and not the whole system? totally hypothetical :P
<michas>
sterni: sudo works fine. also /nix was created.
ddellaco_ has quit [Read error: Connection reset by peer]
<samueldr>
,locate share/dict/words
fendor_ has quit [Read error: Connection reset by peer]
<{^_^}>
Found in packages: scowl
<samueldr>
note that ,locate is built on top of nix-index's nix-locate command, which you can use locally if you want, remexre :)
<remexre>
ah okay, first I've seen it; thanks!
pushqrdx has quit [Remote host closed the connection]
<Yawn>
Does anyone know what "install -Dm755" is for? In particular the Dm577 arg, no idea what it does, but the package wont build without it.
<remexre>
D = mkdir-p the target, m755 = install it as executable
<Taneb>
Yawn: install -Dm755 copies a file into somewhere, creating all the directories that need to exist, and sets appropriate file permissions
Acou_Bass has joined #nixos
<Yawn>
I see, thank you!
<remexre>
ew what encoding is scowl's dictionary and why isn't it utf-8........
Drakeson has joined #nixos
afreakk has quit [Ping timeout: 265 seconds]
cjb has joined #nixos
<MichaelRaskin>
Latin1, I guess
<MichaelRaskin>
Well, it is pretty old and English-oriented
afreakk has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonringer has joined #nixos
mcornick1 has joined #nixos
philr has quit [Ping timeout: 240 seconds]
mcornick1 is now known as mcornick
<veleiro>
are there any real ideas to move nixos away from systemd? I havent seen any desire yet, just now on a 4 year old post someone talking about it going to happen
aaabbbbbbbbbb has quit [Ping timeout: 268 seconds]
<ekleog>
^ dogfooding FTW, if people are interested please have a look at the report in this PR and let me know if you have ideas of things to improve :)