<butterthebuddha>
For some reason, g++ installed with nix (nixpkgs.gcc) doesn't work: it exits with a "unrecognized command line option '-stdlib=libc++'" error
<butterthebuddha>
This happens with invoking it no command line options (except a source filename)
proofofk_ has quit [Remote host closed the connection]
<dkjii>
but I get "finished download of [...].tar.gz
<dkjii>
brb
<jlv[m]>
Am I missing something about containers `privateNetwork`? I set `privateNetwork = true` and `forwardPorts`, but I'm just getting "connection refused" on the forwarded ports. It worked before enabling `privateNetwork`.
<samueldr>
prgrep -fla nix-env #; -a will print the whole command line
<mtn>
I see an error `version `GLIBCXX_3.4.26' not found` when `cv2` is imported in a python script somewhere. Can I add fix this by adding a version of `glibc` from nixpkgs?
<amosbird_>
so nix always requires zgrep CONFIG_USER_NS /proc/config.gz ?
KindOne has quit [Ping timeout: 272 seconds]
drakonis has quit [Ping timeout: 272 seconds]
KindTwo is now known as KindOne
<simpson>
That's how it's done in NixOS. I'm not sure if it's strictly necessary.
Guest83 has joined #nixos
<Guest83>
hey there, im trying to install calibre so i can use ebook-convert, using home-manager, but i get the following error: error: Pillow-7.1.2 not supported for interpreter python2.7. Im unsure how to go about solving this, any ideas on where to start? or whether i can get ebook-convert without needing all of calibre itself?
<MtotheM>
what do you do when a program you want to use isn't in the store? on other distros I would just compile it myself. but how would that tie into this?
pamplemousse has quit [Ping timeout: 260 seconds]
<Guest83>
if you know how to compile it yourself, you can write a small derivation like the nix pills show you
<MtotheM>
i'll look into that. thanks
orivej has joined #nixos
<samueldr>
how can I mkForce "delete" a loaOf entry? e.g. a fileSystems entry
<samueldr>
setting it to `null` I'm told it's not of type submodule
<{^_^}>
[nixpkgs] @asbachb opened pull request #90115 → postfix: Replaced config key by recommendation and introduced usage of system trust store → https://git.io/JfShw
<dkjii>
samueldr: i found the issue, it was about some capability being denied
<dkjii>
how would i go about force-updating nix-channel?
<scoates>
I'm having a hard time getting the search terms right for this, so apoligies for what's probably a simple question: in my current nix shell, how do I find out what package installed another package?
m0rphism has quit [Ping timeout: 260 seconds]
<scoates>
(e.g. I have clang_9, but `clang` is installed as 7.1.0, I want to know what's installing the older clang)
<Ashy>
samueldr: gchristensen: i still have no idea what changed on my efi partition but i ended up just hacking around the issue by replacing /boot/EFI/ubuntu/shimx64.efi with refind's efi binary
<samueldr>
did you boot into ubuntu since you installed nixos?
<Ashy>
no, there's no ubuntu install remaining anymore
<samueldr>
maybe some update process rudely set itself to the default boot option?
<samueldr>
weird
bqv has quit [Ping timeout: 265 seconds]
<Ashy>
the uefi is only detecting the ubuntu and windows entries in the efi partition for some reason
<samueldr>
Ashy: do remember that rEFInd, by default, will save the last booted option
<samueldr>
Ashy: so if you boot a non-nixos OS, next time it'll boot it also
<gchristensen>
why have /boot/efi/ubuntu if you don't have ubuntu?
<Ashy>
even though there's a /boot/EFI/BOOT/BOOTx64.EFI
<Ashy>
yeah that's ok
<samueldr>
that path is only "the path of last resort", otherwise there's no magic
<Ashy>
gchristensen: it's just left over from a previous ubuntu install and for some reason that's the only non windows efi entry the mobo is detecting
<samueldr>
(though some UEFI implementors did a oopsie and only allows that path to boot, or worse, another magical path from the windows bootloader)
<Ashy>
i suspect it's either a uefi bug or possibly a gap in the spec that the firmware authors had to make some assumptions about
<Ashy>
either way i blame proprietary firmware :P
bqv has joined #nixos
<samueldr>
sounds like uefi bug, imo
<samueldr>
there shouldn't be any "detection" from the firmware
<samueldr>
in nixos you could check with efibootmgr
<samueldr>
what is *saved* into nvram according to the spec
slack1256 has quit [Remote host closed the connection]
<samueldr>
and does point towards an issue with the implementations *sighs*
<Ashy>
if intel pushes hard on coreboot and a bunch of boards hit the market with coreboot support it could be the thing that sends me back to running intel desktop chips again
<samueldr>
at this point, any silicon vendor, or device vendor, that wisens up to FLOSS firmware is probably going to get a major advantage
<Ashy>
proprietary firmware seems to be universally bad
<samueldr>
yep
<samueldr>
in the past, when intel was making more "normal" motherboards, AFAIK their hw often used tianocore
<Ashy>
sounds like the power9 guys at raptor have that already sorted
<samueldr>
(but I don't know if the setup was user-modifiable)
<Ashy>
but unfortunately i couldn't even begin to justify that from a work point of view
<samueldr>
yeah, let me rephrase: across all price ranges :)
<samueldr>
e.g. chromebooks are amazing, but way too often too low-end
<Ashy>
heh yeah
proofofkeags has joined #nixos
<samueldr>
if there was chrome-based hardware at the mid and higher tier (without some inane markup) they'd probably be good
<samueldr>
(and this is now more of a discussion that should be held on #nixos-chat)
<Ashy>
yeap, no worries
admdanpv has joined #nixos
<T0pH4t>
if there is a potential bug with nix package generation (eg i'm creating a pkg for c++ aws-lambda and it won't link with other projects properly) which is the proper github project for that?
<T0pH4t>
nix?
<samueldr>
if you're not using nixpkgs at all, possibly nix, but with the few bits of info, sounds more like a nixpkgs issue than nix
<T0pH4t>
i can manually build/link against in the nix shell, but trying to use a package just doesn't work
<T0pH4t>
its odd :/
admdanpv has quit [Quit: AndroidIrc Disconnecting]
<samueldr>
what is the error that you are getting, T0pH4t?
<samueldr>
for `validator-1` I'm getting "make: *** No rule to make target 'install'. Stop."
<T0pH4t>
fails to link
<T0pH4t>
which command did u run?
<samueldr>
the one listed on the README
<T0pH4t>
really?
<samueldr>
well, for the 1.x release of nix, nix-build demo.nix
<T0pH4t>
you should see a linker eror
<T0pH4t>
for aws::lambda_runtime
<samueldr>
maybe try to TOFU your hash again, it was wrong on my end
<samueldr>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<samueldr>
it's possible that since I changed the hash, I'm not using the same `aws-lambda-cpp` revision as you are
<samueldr>
well, it's likely
<T0pH4t>
you chagned the sha256?
<samueldr>
I had to
<T0pH4t>
odd why don't i see that i wonder
KindOne has quit [Ping timeout: 272 seconds]
<samueldr>
if you ended up with a download of that sha256 on your store, then updated the version tag, but didn't update the hash, it would still find the old data using the hash
<samueldr>
but on my end, I don't have the old data with that hash, so it tries to download fresh from the (possibly) changed tag
<samueldr>
that's a common pitfall
<{^_^}>
[nixpkgs] @purcell opened pull request #90116 → netcdf: prevent bogus runtime dependency on gcc → https://git.io/JfSjZ
<T0pH4t>
hmm
<T0pH4t>
my hash checks out
<samueldr>
like, if you already have a version downloaded for the current hash, and change for `rev = "DEFINITELY_NOT_A_REV"`, it'll continue carrying on even if invalid
<samueldr>
fetchFromGitHub, for multiple reasons, fetches using the tarball archive
<T0pH4t>
thats a good piece of information
mrpi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
Scriptkiddi has quit [Quit: killed]
das_j has quit [Quit: killed]
KindTwo has quit [Ping timeout: 246 seconds]
<samueldr>
and since it fetches from the tarball archive, the result ends up different
<T0pH4t>
so should i change command line or change the nix function i am using in demo.nix?
<samueldr>
really, many users, if not the majority, end up using TOFU to get hashes, since anyway the command line apps don't really do much more, but you have to end up knowing which one to use, and how, for each fetcher type
<T0pH4t>
ah i guess i can use nix-prefetch-url
<T0pH4t>
TOFU?
<samueldr>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<T0pH4t>
oh
<T0pH4t>
ok wow that worked
<T0pH4t>
well i got the install issue still, but thats fine
<T0pH4t>
thanks samueldr, u have o idea how many hours i wasted on that
<samueldr>
I don't know what makes the fetched-from-git version fail, if it's for the same revision, though
<T0pH4t>
i feel like prefetch should not be promoted if its not goign to reflect the proper sha
<samueldr>
that would be weird
<samueldr>
well, it does, when using the right prefetch method, which *that* can end up being the hard part
<T0pH4t>
right
<T0pH4t>
i guess teh better thing to do would be standardize
<samueldr>
it's kinda non-trivial :(
<T0pH4t>
i bet...
<simpson>
TOFU *is* the standard technique. The idea, roughly, is that you *already* were fetching the software via some channel; you might as well write down the hash of whatever you fetched.
<T0pH4t>
sicne so many packages probably have it ingrained
<simpson>
I do kind of miss the days of the prefetchers being useful, but I'm okay with losing some false sense of security.
<T0pH4t>
see another odd thing is that some of the packages actually return the proper sha
<T0pH4t>
like i have another pkg that uses fetchFromGithub and its sha matches the nix-prefetch-git
<samueldr>
you tofu'd it fresh?
<samueldr>
though, if it uses submodules, it ends up having to resort to fetchgit
<T0pH4t>
i can, but in this case i should have same link issue right?
<simpson>
They *did* get removed somewhat; there used to be a more prominent package that held all of the prefetchers together. The idea was that, if one was hacking on nixpkgs, one could use that package of all prefetchers to have all of the tools at hand when doing updates.
<T0pH4t>
interesting, did that package get dropped?
<infinisil>
What if Nix automatically (after asking) put the correct hash in the source?
<mdlayher>
my current manual process with buildGoModule is to use nix-prefetch-url to get the sha256 of a github archive, and then try to build it to get the value for vendorSha256
<mdlayher>
assuming i am thinking of the same issue
proofofkeags has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @marsam merged pull request #90107 → nss: fix build on darwin → https://git.io/JfSxK
<evanjs>
Argh. Getting "Invalid MIT-MAGIC-COOKIE-1 key[x11grab @ 0x14818c0] Cannot open display :0.0, error 1." on a local computer when trying to screen record with ffmpeg
<evanjs>
XAUTHORITY is /run/user/1000/gdm/Xauthority
user_0x58 has joined #nixos
<evanjs>
stat /run/user/1000/gdm/Xauthority is me:users. hrm
sigmundv__ has quit [Read error: Connection reset by peer]
<justanotheruser>
my build is hanging on `ninja: Entering directory `out/Release'`, I'm on head of origin/20.03 Anyone know what is going wrong? https://paste.debian.net/plain/1151525
<CMCDragonkai>
Is it possible to use Nix to package things that are 18 GiB in size? I tried to use nix-prefetch-url on a 18 GiB training data, but it resulted in nix running out of memory.
tv has joined #nixos
linarcx has joined #nixos
<Shados>
CMCDragonkai: Most likely yes, as the prefetcher tools barf more easily than Nix does. Do the less-nice trick of feeding in an all-0 hash to your Nix expression, trigger/fail the build, feed in the right hash.
<Shados>
I've had this happen for a few things >.>
CMCDragonkai_ has joined #nixos
<ldlework>
Ah I figured it out.
lzmartinico has quit [Ping timeout: 240 seconds]
<CMCDragonkai_>
What do you mean by a all-0 hash?
<evils>
,tofu CMCDragonkai_
<{^_^}>
CMCDragonkai_: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
lzmartinico has joined #nixos
<CMCDragonkai_>
there's a package called "tofu-vim"?
<CMCDragonkai_>
lol
<ar>
,tofu-vim
<{^_^}>
<esc>52i0<esc>
justanotheruser has joined #nixos
bqv has quit [Remote host closed the connection]
bqv has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
copy has quit [Ping timeout: 265 seconds]
rummik has quit [Ping timeout: 272 seconds]
rummik has joined #nixos
mananamenos has joined #nixos
mystfox has quit [Ping timeout: 260 seconds]
mystfox has joined #nixos
linarcx has quit [Quit: WeeChat 2.8]
<{^_^}>
[nixos-search] @garbas pushed to fix-59 « Make sure that we dont trap users on search.nixos.org »: https://git.io/Jf9Lr
<{^_^}>
[nixos-search] @garbas opened pull request #87 → Make sure that we dont trap users on search.nixos.org → https://git.io/Jf9LK
<{^_^}>
[nixos-search] @garbas merged pull request #87 → Make sure that we dont trap users on search.nixos.org → https://git.io/Jf9LK
<{^_^}>
[nixos-search] @garbas pushed to master « Make sure that we dont trap users on search.nixos.org (#87) »: https://git.io/Jf9tv
<raboof>
annoying how pkgs/development/node-packages/generate.sh is not idempotent, so changing node-packages.json and running the generation again has a high chance of introducing merge conflicts.
<raboof>
(of course an npm issue rather than a nixos issue, but still annoying ;) )
lsix has joined #nixos
<Athas>
Can I provide Nixpkgs overlays on the command line, instead of having to edit a configuration file?
bqv has quit [Ping timeout: 272 seconds]
ph88^ has joined #nixos
bqv has joined #nixos
dramforever has joined #nixos
<srk>
Athas: you can do --arg overlays '[..]' or set nixpkgs-overlays via NIX_PATH
<Athas>
srk: using --arg seems to work, thanks! But for my own edification, I'd like to ask about how I would do it using NIX_PATH.
<Athas>
If I set 'NIX_PATH=nixpkgs-overlays=/foo/bar', then nix-build complains file "'nixpkgs' was not found in the Nix search path". How would I handle that?
<srk>
Athas: better preserve the old NIX_PATH like NIX_PATH=$NIX_PATH:nixpkgs-overlays=...
copy has joined #nixos
tobeportable has joined #nixos
bqv has quit [Ping timeout: 256 seconds]
NeoCron has joined #nixos
dramforever has quit [Remote host closed the connection]
bqv has joined #nixos
<eyJhb>
hexagoxel: thanks, this seemed to work ` ] ++ (map (x: x.package) (filter (x: x.enable) (attrsets.attrValues cfg.config.preview)));` ( a little cut off)
<bahamas>
I used nixos-infect on a newly created digitalocean droplet. then I made a snapshot of that droplet. next, I created a new droplet from the snapshot. problem: trying to connect to the droplet with ssh times out. why would that be?
<{^_^}>
[nixpkgs] @FRidh pushed 493 commits to python-unstable: https://git.io/Jf9qN
Jackneill has joined #nixos
bqv has joined #nixos
<energizer>
bahamas: is the original one still running?
<bahamas>
energizer: no, I destroyed it
copy has quit [Ping timeout: 264 seconds]
<energizer>
bahamas: does the new one have the same ip as the original?
<bahamas>
energizer: no. I didn't use the floating ip feature
bqv has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/Jf9mk
FRidh has quit [Remote host closed the connection]
<bahamas>
I had something similar happen when I used nixos in virtualbox. if I ran `vagrant halt` as opposed to `vagrant suspend`, I couldn't ssh into the box after bringing it back up
dramforever has joined #nixos
jgeerds has joined #nixos
<bahamas>
could it be possible that systemd doesn't start the sshd service?
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/Jf93k
mallox has joined #nixos
tpham has joined #nixos
alp has joined #nixos
jakobrs has joined #nixos
<jakobrs>
How "bad" is it to follow nixos-unstable instead of nixos-20.03?
<jakobrs>
I mean, can I do this without running into too many problems or should I just stay on nixos-20.03
<tpham>
My package does not need bzip2 to be build but I usually use bzip2 to extract some input file. How can I add bzip2 add runtime dependency of my package.
<jakobrs>
I'm worried that some update is going to break stuff and then I'll have to actually fix it
justan0theruser has quit [Ping timeout: 272 seconds]
<etu>
jakobrs: So not bad at all, you just get to experience that things change sometimes and need to fix it
justanotheruser has joined #nixos
<Shados>
Unstable is generally fine. I run into maybe 2 issues a year sticking with it, and they're usually pretty easy to fix or just rollback to an earlier checkout.
<etu>
jakobrs: But it's quite rare
<jakobrs>
I'd imagine if I run into something that completely breaks what I'm doing I'd just rollback until it is fixed upstream
<jakobrs>
ok, so I'm doing this now
<etu>
Yep, and you can also report it if you find something weird. Since that weird thing would continue to be weird in nixos-20.09 whenever that is branched off unless it's fixed
thc202 has joined #nixos
simba1 has joined #nixos
<jakobrs>
Side note, I wish there was a shorter way to write `nixos-rebuild boot -p unstable -I nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos-unstable`, specifically the last part
<jakobrs>
I'd imagine it's beneficial for the project if people use unstable so that eventual bugs will be fixed before the next stable version
<jakobrs>
*enough people
<etu>
Yes and no :/
<bahamas>
tpham: you have propagatedBuildInputs
<jakobrs>
etu: How not?
<etu>
jakobrs: Many people that help with development effors runs on unstable... That means that stable branches sometimes gets less testing by contributors.
<jakobrs>
that's true too
<jakobrs>
so you both need people running on unstable and on stable
<tpham>
@bahamas I tried it but there is small problem. The first problem is that there are 4 bzip2 derivation in installed in /nix/store: b9yym....bzip2-1.0.6.0.1-dev, ckmrf...bzip2-1.0.6.0.1, ipcp5xy....bzip2-1.0.6.0.1 and qyv9k8syrc....bzip2-1.0.6.0.1-bin
<jakobrs>
,locate libSDL2
cfricke has quit [Quit: WeeChat 2.8]
<{^_^}>
Found in packages: SDL2, SDL_gpu, SDL2_gfx, SDL2_net, SDL2_ttf, SDL2_image, SDL2_mixer
<jakobrs>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 206
<tpham>
And the second is bzip2 does not existed in PATH variable.
copy has quit [Ping timeout: 260 seconds]
<bahamas>
tpham: well, I assume you want the derivation that gives you the binary
kreyren has quit [Remote host closed the connection]
<tpham>
Yes.
kreyren has joined #nixos
<bahamas>
tpham: so you put that in propagatedBuildInputs, but the binary is not available in PATH
<jakobrs>
Idea: autoPatchelf-derivative that's integrated with nix-index
<tpham>
@bahamas that's what I did.
<bahamas>
tpham: what kind of package are you trying to build?
<bahamas>
tpham: are you using the dockerTools to build the image?
<tpham>
Yes.
bqv has quit [Ping timeout: 260 seconds]
<bahamas>
tpham: you could use the environment option to add the path to the bzip2 binary to PATH
ph88^ has joined #nixos
<eyJhb>
If I have a attrsOf listOf str `{ "*" = [ "something" "something2" ] }`, and I need to generate a string of `*:something\n*:something2`, is there a good way to do that?
<eyJhb>
Blinding myself in what functions to use
<tpham>
@bahamas what's that, can you give me the link
<jakobrs>
What is the attr path to the elaborate function? I can't find it in pkgs.lib.
<sphalerite>
> lib.modules.elaborate
<{^_^}>
attribute 'elaborate' missing, at (string):315:1
asymptotically has joined #nixos
opticnerve has joined #nixos
<sphalerite>
> lib.systems.elaborate
<{^_^}>
<LAMBDA>
<sphalerite>
jakobrs: ^
<jakobrs>
oh
<jakobrs>
thank you
agsdheidjd has joined #nixos
<jakobrs>
Is there a standard way to build libc for a specified system?
<sphalerite>
how do I get the build-system version (like nativeBuildInputs) of a package? I can't just stick it in nativeBuildInputs because the build script I'm trying to get working isn't smart enough to look on PATH
<mtn>
Nope, "value is a path while a set was expected"
<sphalerite>
no, never mind, I can't read
<mtn>
Haha, no worries :)
barm has quit [Quit: Goodbye!]
<mtn>
I appreciate the help
<sphalerite>
mtn: you don't need packageOverrides for this — you can put (pkgs.opencv4.override { enableFfmpeg = true; }) in the buildInputs list directly
<mtn>
Like if a derivation for a python package pulls in two different versions of a python package, then only one can be surfaced in the interpreter, right?
<sphalerite>
mtn: yes, that's an unfortunate limitation of python. Something node got right IMHO
<FRidh>
don't think depending on 10 different versions of a package is desirable either. Maybe having the possibility is good, but it should really be avoided IMO
<mtn>
Yep makes sense
<mtn>
I'm sorta working my way through learning nix and seeing how well I can translate/improve my workflows since a lot of the work I do is with python, unavoidably
<FRidh>
kind of like how in nixpkgs we can often have multiple versions, but we choose to avoid it
jakobrs has left #nixos ["rebooting"]
Athestus has joined #nixos
<betaboon>
mtn: have a look at poetry and poetry2nix :D
bqv has quit [Ping timeout: 246 seconds]
<energizer>
+1 poetry and poetry2nix
civodul has joined #nixos
m0rphism has joined #nixos
<betaboon>
cant get any slicker than that
<mtn>
Awesome, will do
<Athestus>
I posted here about problems with texlive a few days ago, and I've figured it out
<betaboon>
mtn: combine that with a nix-shell that uses mkPoetryEnv and you're set :D
<Athestus>
betaboon thank you! That is definitely relevant
<thibm>
I'm packaging something that uses pytest and xlib (at least) for testing. If I add `(python3.withPackages (ps: with ps; [ pytest xlib ]))` I got an error `python3: No module named pytest`
ph88^ has joined #nixos
<thibm>
If I add (to checkInputs) `(python3.withPackages (ps: with ps; [ xlib ])) pytest` I got an error `from Xlib import X, Xutil, Xatom E ModuleNotFoundError: No module named 'Xlib'`
<Athestus>
What is the standard procedure when single packages are broken in CTAN at the time of snapshotting?
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/Jf9Gt
<sphalerite>
Is there a nicer way to get a package for running on the build system than taking pkgsBuildBuild as a package argument and getting it from there?
<thibm>
How to fix it? I'm a bit lost between pytest and python dependencies
<sphalerite>
thibm: hm, that does look right to me. How exactly are you using this (where are you putting the nix expression, how are you running it?)
<energizer>
thibm: if you can use poetry and poetry2nix i would do that
<thibm>
Oh, it's not a python package, it's mostly C++. Python is used for tests
dermetfan has joined #nixos
<betaboon>
sphalerite: how about `buildPackages` =
<betaboon>
thibm: can't you add python and pytest to checkInputs ?
<thibm>
sphalerite: I put what I said within checkInputs. I used Python38.callPackage
<betaboon>
thibm: nvm me. didnt see that second msg
CMCDragonkai_ has quit [Quit: Connection closed for inactivity]
<thibm>
The source contains a file named `HACKING` explaining how to run the tests. I switched from tox to use directly pytest because tox need to be explicitly given the python version
<fps>
hmm, weird. i'm hacking on the xonotic derivation in nixpkgs and it's split up into parts. changing e.g. extraPostFetch in xonotic-data and a subsequent nix-collect-garbage -d do not cause the derivation to be rebuilt
<fps>
which is weird since none of my profile generations have xonotic installed
alp has joined #nixos
cosimone has quit [Quit: Quit.]
<fps>
is there a way to find out what keeps a store path alive?
<betaboon>
thibm: what's different between your package and the package in nixpkgs ? oO
<thibm>
I updated to 0.8.3 and now trying to make it run the tests. The tests I rather new in this package. I'm the maintainer of the nixpkgs one
iqubic` has joined #nixos
<thibm>
* the tests *are* rather new
<betaboon>
thibm: ah ok
iqubic has quit [Ping timeout: 256 seconds]
<betaboon>
thibm: tests run fine for me after adding `ewmh` to the pythonPackages and providing pytest. they're all failing for me tho. guess due to me being on wayland.
<Habbie>
new user here: under 'nix-shell -p go', trying to install some go dependencies gives me this: go: writing go.mod cache: mkdir /nix/store/1r61f7iwqfb6dm1krqpj9cjfifjnfmjx-go-1.14.2/share/go/pkg/mod: permission denied
<Habbie>
i trust the dirs are readonly for a reason, but shouldn't the go package divert those downloads somewhere else then?
markus1189 has quit [Ping timeout: 265 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<thibm>
betaboon: OK, I got it. Using python38Packages.callPackage was the problem (I did it to get pytest directly, not useful when using withPackages). Thanks!
<betaboon>
thibm: you're welcome
<fps>
Habbie: i don't know if just unsetting it is the right thing to do though. maybe you need to assemble it in a particular way?
<fps>
i don't use go at all though, so no idea really
<Habbie>
fps, outside of Nix i've been fine with Go's defaults
<fps>
go help gopath for more info
copy has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixos-search] @garbas pushed to fix-68 « Nix language primitives are luckily the same as in JSON »: https://git.io/Jf9nq
<adisbladis>
Unsetting GOPATH is correct when using go modules.
<fps>
hmm, something keeps a store path "alive" and i have no idea how to find out what it is
<adisbladis>
GOPATH is legacy
<{^_^}>
[nixos-search] @garbas opened pull request #88 → Nix language primitives are luckily the same as in JSON → https://git.io/Jf9nO
ph88^ has quit [Ping timeout: 272 seconds]
<Habbie>
adisbladis, ah, should i file a ticket against the nix go pkg then?
<fps>
__monty__: i guess so. nix-collect-garbage -d doesn't reap it
<adisbladis>
Habbie: Actually, please do open an issue and CC me.
<__monty__>
That seems like an oopsie.
<Habbie>
adisbladis, ok, same username?
<adisbladis>
I think setting it for nix-shell is not the right thing to do any more.
<adisbladis>
Yep
<Habbie>
adisbladis, on nixos/nixpkgs?
<adisbladis>
Yes :)
<Habbie>
will do!
<{^_^}>
[nixpkgs] @FRidh pushed to python-unstable « mitmproxy: keep using python37 until asynctest is fixed »: https://git.io/Jf9nn
<fps>
__monty__: maybe i'm missing something else though. i was just happily fiddling with a package definition and noticed a GC run didn't cause the package to be rebuilt
Darkmatter66 has joined #nixos
<betaboon>
FRidh: did you have a chance to take a look at #50925 by any chance ? :/
<{^_^}>
[nixpkgs] @FRidh pushed to staging-next « mitmproxy: keep using python37 until asynctest is fixed »: https://git.io/Jf9nC
orivej has quit [Ping timeout: 256 seconds]
<fps>
naively i would have thought that a package might never refer to itself
orivej has joined #nixos
barm has joined #nixos
<FRidh>
betaboon: have you tried on current master? The last staging-next cycle had some pkg-config cross related changes
<eyJhb>
I cannot seem to figure out, how to only set a .text (file), if the option is not null? ANd it should be optional as well
<__monty__>
That is a bit weird, yeah. If nix didn't hash just the inputs it wouldn't be possible I think.
<fps>
s/might/must/
<{^_^}>
[nixops] @adisbladis opened pull request #1365 → Flake support → https://git.io/Jf9n2
<fps>
or even s/might/can/
psy3497 has quit [Ping timeout: 264 seconds]
<gueorgui>
Hi there, I'm a new to NixOS (but not to Linux). I use Ruby and Ruby on Rails in my work, and usually manage my Ruby versions with `rbenv` (and Node versions with `nvm`, but that's not as big a deal...). It seems that rbenv is not available on Nix. Could someone please explain how to accomplish the same thing in NixOS? I feel like I'm missing some understanding of the core concepts here.
<dminuoso>
gueorgui: Well... nix would handle that for you?
<dminuoso>
It's sort of the entire point of nix..
psy3497 has quit [Ping timeout: 265 seconds]
<gueorgui>
Yeah I'm guessing it is, which is why I say I feel like I'm missing some understanding of the core concepts. How would I go about using, say, Ruby 2.6.5 in one directory and 2.6.7 in another when I type `ruby`?
<betaboon>
FRidh: did that hit nixpkgs-unstable channel yet ?
<adisbladis>
Well, this is more of a general nix-shell question.
orivej has joined #nixos
<adisbladis>
gueorgui: We don't have both 2.6.5 and 2.6.7 typically, but we do have multiple ruby versions packaged.
meh` has joined #nixos
<adisbladis>
You can quickly enter an ad-hoc shell with a specific ruby version like `nix-shell -p ruby_2_6`
thibm has quit [Quit: WeeChat 2.6]
<adisbladis>
For development you want to make a shell.nix that looks like http://ix.io/2oTt/nix
<adisbladis>
And then just call `nix-shell` from the same directory
<betaboon>
FRidh: ah that was yesterday, didnt hit nixos-unstable channel yet. thanks for letting me know. gonna check in a couple of days then :)
<gueorgui>
nix-shell -p ruby_2_6 does work but that version of ruby is 2.6.6 (which I guess is the most recent of the 2.6 branch). However my app requires 2.6.5. Is there a way to specify the version in a more fine-grained way?
alp has quit [Ping timeout: 272 seconds]
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
bsjd has joined #nixos
<adisbladis>
gueorgui: Now you're getting into overrides territory
dramforever has quit [Quit: Leaving]
<adisbladis>
You can either try to find an older version of nixpkgs pre the 2.6.6 bump or override yourself.
magnetophon has joined #nixos
<gueorgui>
Meaning I make my own "package file" (not sure what's the right terminology) with the ruby version I want?
<gueorgui>
Kind of like rolling my own build script for an aur package on arch?
<adisbladis>
Looking at this changelog it doesn't seem to indicate anything backwards incompatible.
Darkmatter66 has joined #nixos
<gueorgui>
I mean
<gueorgui>
The issue here is that the whole company is on macos, and they made an exception for me to be able to work on linux
<gueorgui>
So I don't want to create a situation where I make all the other engineers have to build a new version of ruby with rbenv just so I can have my fun with nix
<gueorgui>
(Maybe I don't actually have to make them do that, which is what I'm trying to understand here)
<gueorgui>
I'm reading about nix-shell now and that's really cool
zupo has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
<gueorgui>
ooh so I could basically use a shell.nix to specify all the packages required for a project, including all the stuff that now runs in docker
<clever>
and a variant: nix edit -f . xorg.libX11, if your in a nixpkgs checkout
<siddharta>
hi all, do you know how to deal with this installation error `error: path '/nix/store/c88p2jysn4vpcmzhma015h4xb3gla7z8-nixos-20.03-20.03' does not exist and cannot be created`?
<siddharta>
weird thing is: the path does exist
mgdm has left #nixos ["WeeChat 1.9.1"]
<Habbie>
i use 'liquidprompt' which overrides PS1, meaning i don't automatically get the [nix-shell] or similar prefix. What would be a good test to see if I'm running inside a nix env, so that i can add that to liquidprompt? between nix-shell and nix run, only NIX_PATH and NIX_PROFILES appear to be common
<regnat>
nix-shell sets IN_NIX_SHELL, I'm not sure about nix run
<Habbie>
regnat, nix run does not
<simpson>
Habbie: $SHLVL is a pretty cool variable which you can use to learn how many shells deep you're currently nested.
<Habbie>
simpson, oh! adding that to liquidprompt would help way more than just Nix users
kenran has quit [Ping timeout: 246 seconds]
vtest[m] has joined #nixos
<Habbie>
simpson, yes, i'll start there, will also help me remember i am inside a 'script' recording, etc.
<vtest[m]>
siddharta: check permissions? Bot the same error a while ago..
<simpson>
Habbie: Yeah, it's useful.
<siddharta>
vtest[m]: yeah, it's just weird there would be anything wrong with the permissions, as I was trying to follow the install guide step-by-step, but sure, I will check
tlaxkit has joined #nixos
<vtest[m]>
Or it could be a file, where a dir is needed.. Can't recall correctly...
<asymmetric>
is it possible to configure binary caches for each user declaratively?
<inf>
Hmmmm... After upgrade to 20.03 (from 19.09) my touchpad have switched to natural scrolling. (at least in firefox and kitty) I have services.xserver.libinput enabled, with naturalScrolling set to false. (default) I have pantheon enabled on the side, but use awesomewm on my user, if that matters in any way. Any tips what would be the cause?
<hexa->
,locate test_glib-2.0.pc
<{^_^}>
Couldn't find in any packages
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
zupo has joined #nixos
<gchristensen>
asymmetric: no: each user's store paths will be fetched and stored in the same /nix/store, which means every other user implicitly trusts all of those binary caches too, and it isn't unlikely that they overlap
<dminuoso>
Why doesnt nix have case-of? *sigh*
bahamas has joined #nixos
<asymmetric>
gchristensen: but i can configure substituters in nix.conf for individual users
<asymmetric>
imperatively by changing that file. so i was wondering if i can do that declaratively
<{^_^}>
[nixops] @nlewo opened pull request #1366 → Use flake check for the documentation linting test → https://git.io/Jf98I
copy has joined #nixos
<gchristensen>
nix.conf doesn't support per-user caches
<{^_^}>
[nixops] @nlewo closed pull request #1363 → doc: add default.nix to build the doc → https://git.io/Jfyu4
dermetfan has quit [Ping timeout: 260 seconds]
<asymmetric>
gchristensen: isn't that what the substituters key in nix.conf is? and what allows cachix to work for non-privileged usres
<gchristensen>
those are globally allowed
<inf>
ok, disabling pantheon seems to have fixed the reverse scrolling issue...
<gchristensen>
sorry if this is being uselessly pedantic
<gchristensen>
if you're on nixos, you certainly could configure them declaratively
bahamas has quit [Ping timeout: 258 seconds]
Rusty1 has joined #nixos
<asymmetric>
gchristensen: so if user A has a substituter configured locally, and user B tries to build something, nix will try to get user B's package from the substituter configured by user A?
<asymmetric>
i.e. every user's list of substituters declared in their local nix.conf files is merged into a global list of substituters used system-wide?
<gchristensen>
nix.conf files have no authority, so the substituters in those configurations must already be preconfigured in /etc/nix/nix.conf
<asymmetric>
gchristensen: idk if you're familiar with cachix, but then how could `cachix use foo` work? it can't write to /etc/nix/nix.conf, but it does set up a binary cache for that user, afaict
<gchristensen>
asymmetric: domen goes through great pains to make it work and get the authority to edit /etc/nix/nix.conf
<dminuoso>
Specifically I have an enum option and I want to do the equivalent of `case thatOption of "foo" -> "1"; "bar" -> "1 2"; "quux" -> "2 3 4"; _ -> ...`
<asymmetric>
wow ok mindblown
<gchristensen>
asymmetric: adding a binary cache essentially gives the user root
rajivr has quit [Quit: Connection closed for inactivity]
<gchristensen>
dminuoso: you could do an attrset, or an if/else ladder:
<gchristensen>
> let thatOption = "foo"; in { foo = "1"; bar = "1 2"; quux = "2 3 4"; }."${thatOption}" or "default"
<{^_^}>
"1"
<gchristensen>
> let thatOption = "meh"; in { foo = "1"; bar = "1 2"; quux = "2 3 4"; }."${thatOption}" or "default"
<{^_^}>
"default"
<asymmetric>
gchristensen: i'm not sure i understand why that has to be the case
<dminuoso>
gchristensen: Okay that works, and what if that option was a list and you wanted to do something like...
<asymmetric>
if a user hasn't added that cache's pubkey to the list, then the binaries in the cache won't be approved even if the cache is a hit
<dminuoso>
`case f of [] -> ...; [a] -> ...; (a:xs) -> ...`
<dminuoso>
Would I have to start doing nested if/then/elses?
<gchristensen>
asymmetric: once the path is in the nix store, it is there -- no more key checking
<asymmetric>
aah but the paths will be in the store and they'll match at runtime
<asymmetric>
right right
<gchristensen>
asymmetric: so adding binary caches for projects is a bit of a double-edged sword: convenient for projects with big build trees, but puts a lot of trust and authority in to the provider
<infinisil>
dminuoso: Yeah that would be better then, Nix doesn't have pattern matching
ph88 has joined #nixos
<asymmetric>
we need the intentional store! :)
<asymmetric>
*intensional
<gchristensen>
:)
<dminuoso>
infinisil: That's a shame. :) case-of would actually feel just right in nix.
<dminuoso>
case f of { foo, ... } -> foo + "blah"
<infinisil>
dminuoso: Btw, Nix's lists are arrays, not linked lists like in haskell, so the Haskell way of pattern matching them wouldn't work
<infinisil>
And operations like prepending an element or taking the tail are O(n)
<dminuoso>
Fair enough, pattern matching to specified numbers of elements should work trivially though.
<dminuoso>
Say `case f of [] -> ...; [x] -> ...`
<dminuoso>
Would it be reasonable to discuss the addition of such a construct in nix?
<infinisil>
Yeah that might be nice
<infinisil>
I don't think I'd mind having that
<infinisil>
Not sure about the exact syntax, but something like that
<xwvvvvwx>
gchristensen: I have some extra substituters defined in my config.nix and they have been added in the nix.conf before cache.nixos.org
<infinisil>
Okay this doesn't work in your case since you don't have the standard channel setup
<infinisil>
But if you had, it would show the revision in the nixpkgs version
<steveeJ>
so nix-info should grab something from inside that directory to be helpful
siddharta has quit [Remote host closed the connection]
gustavderdrache has joined #nixos
<xwvvvvwx>
I trust cache.nixos.org more than the extra substituters and would like to prefer packages from there if possible. Is there some way I can control the order in nix.conf?
<gchristensen>
steveeJ: it tells us something is different about yoru system than most systems, since most systems would say: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.4pre7534_b92f58f6, channels(root): "nixos-20.03.2059.05a32d8e771", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
<infinisil>
steveeJ: It can't
<gchristensen>
steveeJ: so now the person helping can ask you questions about that directory. its goal isn't to be perfect, but to answer common questions and potentially point to more questions to ask
<Shados>
xwvvvvwx: add cache.nixos.org to nix.binaryCaches manually, and use mkFirst (or mkOrder) to place it where you want
<{^_^}>
[nixpkgs] @wmertens opened pull request #90142 → pam_ssh_agent_auth: switch to maintained fork → https://git.io/Jf90s
cosimone has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixos-search] @garbas pushed to fix-84 « problem with pagination when a number of items in result matches the display size »: https://git.io/Jf90z
<{^_^}>
[nixos-search] @garbas merged pull request #88 → Nix language primitives are luckily the same as in JSON → https://git.io/Jf9nO
<{^_^}>
[nixos-search] @garbas pushed to master « Nix language primitives are luckily the same as in JSON (#88) »: https://git.io/Jf90g
<{^_^}>
[nixpkgs] @7c6f434c pushed commit from @r-ryantm to master « abcl: 1.6.1 -> 1.7.0 »: https://git.io/Jf90r
<MtotheM>
how does it work if i want to seperate my package list to another file. can i just declare it on a new .nix file and import it? or must i also use it somehow in the main file?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunik1 has quit [Remote host closed the connection]
lsix has quit [Ping timeout: 272 seconds]
<simpson>
Habbie: Happy to help.
lunik1 has joined #nixos
rsa_ is now known as rsa
dermetfan has quit [Ping timeout: 256 seconds]
ncakerlist has quit [Ping timeout: 265 seconds]
lsix has joined #nixos
leah2 has joined #nixos
jumper149 has joined #nixos
<{^_^}>
[nixos-search] @garbas opened pull request #89 → problem with pagination when a number of items in result matches the display size → https://git.io/Jf9E7
<{^_^}>
[nixos-search] @garbas merged pull request #89 → problem with pagination when a number of items in result matches the display size → https://git.io/Jf9E7
<{^_^}>
[nixos-search] @garbas pushed to master « problem with pagination when a number of items in result matches the display size (#89) »: https://git.io/Jf9uT
<infinisil>
MtotheM: With configuration.nix you can write another file just like it only containing the package definitions, then add `imports = [ ./other-file.nix ]` in configuration.nix
<infinisil>
That is, other-file.nix can then look like `{ pkgs, ... }: { environment.systemPackages = with pkgs; [ ... ]; }`
<MtotheM>
So importing it brings it to the global scope? i don't have to 'use' it in the main scope?
<eyJhb>
If I have a git patch I want to apply to a package src, what is the easiest way to do so? :p
FRidh has quit [Quit: Konversation terminated!]
<elvishjerricco>
MtotheM: Not in the technical sense of what "global scope" means in Nix. It's more like both files define an attrset, and nixos-rebuild knows how to properly merge all the ones found in their `imports` fields.
<MtotheM>
that makes sense
CamillaPink has joined #nixos
ph88 has joined #nixos
<elvishjerricco>
MtotheM: In reality it's all just a clever library written in nix found in `<nixpkgs/lib>` called `evalModules`, which makes extensive use of lazy evaluation. So it's not anything special about nixos-rebuild; it's just ordinary Nix code being evaluated in a certain way
<MtotheM>
ah
<elvishjerricco>
nixos-rebuild just serves to eval `<nixpkgs/nixos>` with your configuration file, build the right attribute, and run a script found in the build result.
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<MtotheM>
I would like to get plugins working for vim, so I can at least get the nix syntax highlighting to work. and in the examples it seems like you can define your config files directly in nix. is this an artifact just for vim? or true for all programs?
<MtotheM>
seems pretty odd to me not separating concerns and configuring your dotfiles the normal way.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jf9zg
<elvishjerricco>
MtotheM: I'd be surprised if you couldn't do it the normal way vim; nixos just likes to offer nix-y ways.
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #89980 → clex: enable on darwin → https://git.io/JfyQi
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jf9za
<elvishjerricco>
MtotheM: But I like having it all in Nix. Makes it more reproducible and easier to version control
<simpson>
MtotheM: As somebody who has not yet ported an old vimrc, no worries; NixOS will not force you to manage dotfiles centrally, or at all. You can have dotfiles manually.
justanotheruser has quit [Ping timeout: 260 seconds]
<MtotheM>
I'm not sure how I want to do it yet. but the plugin manager is something I think nix should manage (adding it)
<{^_^}>
[nixpkgs] @CohenCyril opened pull request #90146 → <!-- To help with the large amounts of pull requests, we would appreciate your reviews of other pull requests, especiall… → https://git.io/Jf9zX
<{^_^}>
[nixpkgs] @CohenCyril closed pull request #90146 → <!-- To help with the large amounts of pull requests, we would appreciate your reviews of other pull requests, especiall… → https://git.io/Jf9zX
user_0x58 has joined #nixos
zfnmxt has quit [Quit: Bye!]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #89540 → Fix `lxd`, so that it works with `lxcfs` → https://git.io/Jf1Wm
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/Jf9z9
<{^_^}>
[nixpkgs] @romildo merged pull request #90004 → buildenv: paths to link resolving to the same absolute path is not a conflict → https://git.io/Jfyxx
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #89351 → Fix building of emacsWithPackages not findind subdirs.el → https://git.io/JfiMb
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jf9zF
<gueorgui>
Hello again. So I'm using direnv now to replace rbenv, I made a shell.nix to list the dependencies for my project. One of the gems in my bundle with native extensions fails to build (libxml2-ruby), and says that libxml isn't found, even though it's included in my dependencies. Is there anything specific I need to do to get it to find the libs?
<freet>
Nix seems to enforce an MTime of 0 on its symlinks causing certain apps to misbehave like Enlightenment. Is there a doc on this behavior?
cswl has quit [Client Quit]
retrocswl has joined #nixos
sputny has joined #nixos
inkbottle has quit [Ping timeout: 260 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
inkbottle has joined #nixos
zupo has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<Habbie>
freet, i don't know, but i am curious why it causes Enlightenment to misbehave
<freet>
E uses the timestamps to know if cached icons, etc changed since it last looked(modified time (mtime) should be > mtime the last time it looked - it storesthis in the cache to know)
<freet>
I believe it misbehaves when the mtime is 0
justanotheruser has quit [Ping timeout: 256 seconds]
<cransom>
all the files in the nix store have a mtime=0. it's all part of the reproducable builds bit.
omneh has joined #nixos
omneh has quit [Changing host]
omneh has joined #nixos
<freet>
ok thanks. Looks like there needs to be some logic in E to handle this corner case
OmnipotentEntity has quit [Ping timeout: 246 seconds]
<ramses_>
Hey guys! Is there any standard way to handle the situation where I want to build an application consisting of an Elm front-end and a Python back-end and I want the back-end to serve the front-end? I can build both as separate nix packages, but I'm not sure how to include the output of the front-end build into the back-end package
<ramses_>
adisbladis: I know, a webserver would be the standard approach, but I literally need to serve one html file, one js file, and one image... And the application should be pretty small and self-contained. But I may end up just running two separate servers indeed
<ramses_>
adisbladis: thanks for the suggestion though, I did not consider that I can just symlink!
<urkk_>
Also, I tested with busybox, and I'm able to chroot under chroot
<MtotheM>
I can't see how mine differs from the example
Guest72819 is now known as Guest32306
Guest32306 is now known as nil
bahamas has joined #nixos
bahamas has quit [Changing host]
bahamas has joined #nixos
<ramses_>
adisbladis: how can I add additional files/directories to the output path of a buildPythonApplication derivation? I can't figure out how to do this
drakonis_ has quit [Ping timeout: 272 seconds]
ramses_80 has joined #nixos
OmnipotentEntity has quit [Ping timeout: 246 seconds]
OmnipotentEntity has joined #nixos
OmnipotentEntity has quit [Changing host]
OmnipotentEntity has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
ramses_ has quit [Ping timeout: 256 seconds]
ramses_80 is now known as ramses_
<ramses_>
Anyone knows how can I add additional files/directories to the output path of a buildPythonApplication derivation? I can't figure out how to do this. Can I add extra install steps somehow?
kreyren has quit [Remote host closed the connection]
proofofkeags has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
kreyren has joined #nixos
kenran_ has joined #nixos
OmnipotentEntity has quit [Ping timeout: 258 seconds]
<MtotheM>
is the nixos and nixpkgs different? is sais 'packageOverrides' doesn't exist.
lirrums has joined #nixos
OmnipotentEntity has joined #nixos
lirrums has quit [Remote host closed the connection]
proofofkeags has joined #nixos
kenran has quit [Ping timeout: 260 seconds]
<T0pH4t>
is there some special way to apply 'nixpkgs.config.allowUnfree = true;' in configuration.nix, no matter how i use it, the setting never seems to work
<T0pH4t>
i always have to resort the the env variable
<linarcx>
Hi. i'm developing a webgtk-based application via nix+lorri+direnv. I've added libressl, opensll, glib-networking packages to shell.nix, but when i build/run the program, i'll get this error: "TLS/SSL support not available; install glib-networking"
<jonreeve[m]>
Does anyone know how to replace nix-style variables in a file? I have a line line this in my home-manager home.nix: ` ".spacemacs".source = ./emacs/spacemacs;` which creates a file called `.spacemacs` from my dotfiles directory every time I run home-manager. Now I just want to be able to do that, but replacing `${my-var-here}` with the contents of that variable. Is there a Nix way to do that?
<hoverbear>
gchristensen: Ping on the DO stuff. :)
<gchristensen>
hey hoverbear!
<gchristensen>
<3
<gchristensen>
hoverbear: where is it?
<{^_^}>
[nixpkgs] @7c6f434c opened pull request #90150 → winePackages.staging: mention staging patches in description → https://git.io/Jf9wZ
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
OmnipotentEntity has quit [Ping timeout: 240 seconds]
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos
OmnipotentEntity has joined #nixos
OmnipotentEntity has joined #nixos
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
cosimone has joined #nixos
iqubic has joined #nixos
OmnipotentEntity has quit [Ping timeout: 264 seconds]
<gchristensen>
it isn't impossible, but it isn't likely
<cole-h>
I think that's what `system.stateVersion` is there to guard against
<jakobrs>
I kind of want to just follow unstable completely but it's nice to know if it's "safe enough" to switch between stable and unstable somewhat freely.
<cole-h>
Or at least help guard against
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<gchristensen>
jakobrs: it should be fine, but since unstable is unstable, it could be that there are mistakes
<gchristensen>
(there could always be mistakes even in stable, but it is sort of a spectrum of certainty here)
<jakobrs>
Yeah obviously there's no way to guarantee that nothing will break. A system service updating its database format would be an example of something that's impossible to prevent
<gchristensen>
it is Pretty Safe
<energizer>
jonreeve[m]: afaik the most common way to do that is with @myVar@ and one of the `substitute` commands
<jakobrs>
My main reason for following unstable is things like bluetooth (ideally) being near the latest packages version
<jakobrs>
And I no longer have to ad-hoc replace the libinput package used by services.libinput
<jonreeve[m]>
<energizer "jonreeve: afaik the most common "> Great, that's just the thing I was looking for.
<cole-h>
btw lovesegfault, dunno if your question from yesterday got answered, but I think it's the "realtime" group that gives a user access to rtkit.
<jakobrs>
On a completely unrelated note a new (<30h old) youtube video reviewing NixOS was in my recommended today
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
shibboleth has joined #nixos
<lovesegfault>
cole-h: Oh, I wonder how I can check
<jakobrs>
Does anybody know why wineWow is called wineWow? I couldn't find that name used anywhere else.
<OmnipotentEntity>
wow, my internet has been shitty recently.
<Yaniel>
is that a 64bit/32bit thing?
<Yaniel>
IIRC that's the case on vanilla windows
<OmnipotentEntity>
I apologize for spamming the channel with quits/joins, if it keeps up I will /part.
<cole-h>
lovesegfault: It's enabled by default if you use pulseaudio IIRC. I don't know how to actually use it though x)
meh` has quit [Ping timeout: 256 seconds]
Henson has joined #nixos
<Henson>
is there an easy way I can figure out the closure used by nix-shell? I can't nix-build the shell.nix file without it complaining.
<jakobrs>
wineWow is the dual-arch wine package I believe
<jakobrs>
I don't know where the "wow" part of the name comes from
OmnipotentEntity has quit [Remote host closed the connection]
<Yaniel>
Windows On Windows
OmnipotentEntity has joined #nixos
OmnipotentEntity has joined #nixos
OmnipotentEntity has quit [Changing host]
<Yaniel>
apparently that is how 64bit windows handles 32bit applications
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
waleee-cl has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
retrocswl has quit [Quit: Connection closed for inactivity]
proofofkeags has quit [Ping timeout: 256 seconds]
drakonis_ has joined #nixos
lord| has quit [Ping timeout: 256 seconds]
jakobrs has left #nixos ["WeeChat 2.7.1"]
<hoverbear>
Any tips for getting `linux/userfaultfd.h` exposed to a `nixos/nix` docker container? I have `linuxHeaders` pulled in and it works totally fine on a `nix-shell --pure` on linux...
drakonis has quit [Ping timeout: 256 seconds]
fuzen has joined #nixos
lord| has joined #nixos
<fuzen>
Hi, I'm having an issue connecting to the internet on my NixOS instance on Linode
<fuzen>
I'm able to ssh into it, but i cant ping 1.1.1.1, any ideas what could be wrong?
chewzerita has joined #nixos
noudle has joined #nixos
alp has quit [Ping timeout: 272 seconds]
proofofkeags has joined #nixos
<hoverbear>
Think I got it `CPATH="${pkgs.linuxHeaders}/include";`
<fuzen>
Fixed with DHCPD, which previously didnt work
<kenran_>
That is, in a Dockerfile where I'd do `COPY client client`, I now have a ${client} with contents that I need for the things I do in my `Cmd`.
<kenran_>
instead of in a Dockerfile*
ncakerlist has quit [Read error: Connection reset by peer]
<kenran_>
I don't know how to get those files/directories into my WorkingDir.
ncakerlist has joined #nixos
<simpson>
You would call your script directly from the store, rather than from the working directory.
<kaliumxyz>
how do I add udev rules in a package?
tno has quit [Quit: tno]
domogled has joined #nixos
tno has joined #nixos
<simpson>
kaliumxyz: You can put them in $out/lib/udev, IIUC.
<simpson>
Hm, or is it $out/etc/udev? Not sure, but one of those, I'd guess.
<kaliumxyz>
$out/etc/udev/rules.d appears to work but only when I add the package to services.udev.packages
ph88 has joined #nixos
<kenran_>
simpson: Sorry, I don't understand it yet. It's not a script, but think HTML. The application I am starting inside `Cmd` is relying on those files being next to it unfortunately.
ph88 has quit [Remote host closed the connection]
<kenran_>
Maybe I can do it in a hacky way and make copying this stuff from the store part of my `Cmd` though...
<kenran_>
I was hoping there'd be another way.
domogled has quit [Ping timeout: 264 seconds]
justanotheruser has joined #nixos
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos
<ornxka>
how do i do nix-shell -A and set an option for the expression in question?
<ornxka>
like nix-shell '<nixpkgs>' -A 'zfs.override {configFile = all;}'
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jf9i4
<gueorgui>
Hmm, now p11-kit says: no configured writable location to store anchors
<Habbie>
gueorgui, so, i have to check, if you're asking about both update-ca-certificates and trust, are you sure you know what you are doing?
<gueorgui>
I'm not sure :D
<gueorgui>
I'm trying to set up a development web server called puma-dev
<Habbie>
go on :)
lsix has quit [Ping timeout: 272 seconds]
user_0x58 has quit [Ping timeout: 256 seconds]
<gueorgui>
For that, I need to add its SSL certificate to the system trust store. The instructions offer a solution for systems that have `trust` and for systems that have `update-ca-certificates`. On Arch the `trust` version worked, so that's what I'm trying now.
<gueorgui>
The question basically is how can I trust an arbitrary cert.crt?
<gueorgui>
Ah I see, with pki.certificateFiles
<gueorgui>
Awesome, thanks LnL
leungbk has quit [Quit: ERC (IRC client for Emacs 27.0.91)]
veleiro has quit [Ping timeout: 264 seconds]
ashkitten has quit [Quit: WeeChat 2.8]
noudle has quit []
ramses_ has quit [Quit: Connection closed]
<dutchie>
i'm trying to install nixos from an existing Arch install, but nixos-install is erroring out with "cannot build derivation '/nix/store/dsj9b31a9rprc0mjqw7py9g4hfbmnrvp-nixos-system-sirius-20.03.2107.70717a337f7.drv': 1 dependencies couldn't be built"
jared-w has quit []
<dutchie>
and "builder for '/nix/store/7d6lh6j1lr9wd8y2yz9r1rgvg753is24-system-path.drv' failed with exit code 1; last 2 log lines: <snip> install-info: Cannot allocate memory for gzip -d"
jonge has quit [Quit: quit]
jared-w has joined #nixos
<dutchie>
I've tried with -v and -L but I'm not seeing anything useful
<dutchie>
i have plenty of memory free
ashkitten has joined #nixos
<energizer>
dutchie: how much do you have?
<dutchie>
8G + 8G swap, if I leave top open while running it I don't see it drop below 4G "avail Mem"
<justanotheruser>
does nixpkgs CI not test builds for individual packages?
<energizer>
justanotheruser: the tests happen before release, not before merge
<dutchie>
ok, slight fib, it went down to 3.8G
<energizer>
justanotheruser: and also, they're semimanual
<justanotheruser>
energizer: you mean merging master int 20.03?
<justanotheruser>
into*
<justanotheruser>
is that considered a release?
<energizer>
justanotheruser: yes, but also into nixos-unstable
<justanotheruser>
I see
ncakerlist has quit [Read error: Connection reset by peer]
ncakerlist has joined #nixos
<dutchie>
it does also spit out "warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixpkgs' does not exist, ignoring"
alp has joined #nixos
<dutchie>
but i don't think that's relevant?
icey_ has joined #nixos
<energizer>
yeah usually ignore that
<justanotheruser>
Can you remind me the command line argument to skip the checkPhase when building?
iceypoi has quit [Ping timeout: 256 seconds]
iceypoi has joined #nixos
icey_ has quit [Ping timeout: 256 seconds]
jonge has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #90157 → Add socket-based IPFS support → https://git.io/Jf9Xb
<kenran_>
,locate bin ln
lsix has joined #nixos
<{^_^}>
Found in packages: toybox, busybox, coreutils, klibcShrunk, coreutils-full
endformationage has joined #nixos
<aterius1>
scott: Sorry to necro this but did you ever fix your kwin lag problem? I have the same thing on nvidia, it seems to get better if I disable gsync/flipping
<kenran_>
I added pkgs.coreutils to my `contents` in the buildImage, but still `ln` can't be called. Shouldn't I be able to use it when entering a container?
<justanotheruser>
I'm trying to skip the check phase for google_cloud_bigquery. Why doesn't this prevent the check phase from ocurring? http://paste.debian.net/plain/1151673
<infinisil>
justanotheruser: You're not using packageOverrides anywhere
<bqv>
i have two overlays, one of which updates emacsPackagesFor with overrideScope, the other of which updates emacsPackages using emacsPackagesFor, and also the emacs-overlay overlay which updates emacsPackagesFor with overrideScope to use more up-to-date archives
<bqv>
something in that chain is not correct, because i'm not seeing things in emacs-overlay but not nixpkgs at all
<bqv>
is overrideScope not stackable?
<bqv>
cc adisbladis
<dsx>
How to fix this: collision between `/nix/store/…-netcat-gnu-0.7.1/bin/nc' and `/nix/store/…-libressl-3.0.2-nc/bin/nc'?
<energizer>
dsx: do you need both?
<dsx>
Uhm… For some maybe, for this one — no. Any will do.
vandenoever has quit [Read error: Connection reset by peer]
<dsx>
(I have few more collisions than that one particular)
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<bqv>
if it doesn't matter which, then ignore it, if it matters, then you know which to force
<sshow>
I have nix files in a subdirectory in my repo. How can I create a derivation that fetchGit's it and loads the subdir/.nix/default.nix to create a package?
<sshow>
I have attempted fetchGit then overrideAttrs, but "overrideAttrs" doesn't exist on what I get from fetchGit, so I'm blank
<colemickens>
Does nix ever act differently depending on if options are specified to the daemon vs on the command line? (specifically, the way nix copies back from a remote builder)?
<dkjii>
hey, I'm making progress compile my system, but I'm getting an issue build sharutils-4.15.2; the test suite gives me a "tar: invalid option -- 'c'" and the test for shar-3 fails
<dkjii>
any idea whats going wrong? how can i debug this myself