<{^_^}>
[nixpkgs] @l0b0 opened pull request #66738 → pythonPackages.vcard: init at 0.13.0 → https://git.io/fjd9H
count1 has joined #nixos
vika_nezrimaya has joined #nixos
<vika_nezrimaya>
how to disable APXS2 in PHP? apr fails to cross-compile and I don't use apache anyway, this is an RPi, Apache is too bulky for it!
jgt has joined #nixos
<vika_nezrimaya>
it'll probably just waste space on my SD card >.<
<count1>
Hello, just started messing around with Nixos the other day and i'm very new to the workflow of things like nixpkgs. I was trying to download a package that is in the all-packages.nix file on github but nix-env keeps returning no matches. I get no issues downloading any other packages from that list at all. Have been looking online for a while now with no luck. Appreciate any help, if anything I could just but
<count1>
I really wanted to go through and run the binary/set up dynamic linking myself but I wanted to do the conventional nix route
jgt has quit [Ping timeout: 252 seconds]
<jackdk>
I don't have time to sit and help, I'm sorry, but I think if you mentioned the package and/or linked the all-packages.nix on github at the line for the package you're trying to install, it will help you get a better answer
sb0 has joined #nixos
chuenifule has quit [Quit: leaving]
<count1>
yeah sure no problem it is wasabiwallet package
<drakonis>
count1: which channel are you on?
<count1>
I tried on the default and the unstable
<drakonis>
its not on 19.03
<count1>
shoot ok thanks my bad
<drakonis>
it was included a few months ago
<count1>
that makes sense
<drakonis>
it is on nixos-unstable though
kleisli has quit [Ping timeout: 245 seconds]
<aanderse>
vika_nezrimaya: looks like you need to set config.php.apxs2 = false
* aanderse
digs a bit more
Guanin has quit [Remote host closed the connection]
<vika_nezrimaya>
aanderse: I assume I need to override nixpkgs.php with that option?
<kaliumxyz>
how should I set up the env for a script with writeScript?
<aanderse>
vika_nezrimaya: yeah, that, or i believe it would be nixpkgs.config.php.apxs2 = false; appended to your configuration.nix (or equivalent)
<vika_nezrimaya>
wow, so Nixpkgs has a system-wide config for packages? I never knew about that!
<vika_nezrimaya>
Which packages support this, apart from PHP? I assume, to load something from config, you need to declare "config" in your function arguments?
<aanderse>
vika_nezrimaya: it isn't great. see work from ... @oxiji or someone to improve it
<aanderse>
anywho, some packages use nixpkgs.config, but not that many
<count1>
Is there an extra step you have to do after you add unstable to your channels? I already did nix-channel --update. Do you have to specify to nix-env which channel you want to look under?
ris has quit [Ping timeout: 245 seconds]
<dansho>
does anyone know how to compute the sha256 needed by requireFile?
<clever>
dansho: i think its just the plain sha256 of the file
<vika_nezrimaya>
oh well it seems like clucene fails to cross compile, making me unable to use dovecot without modifying its nix expression :3
<vika_nezrimaya>
aanderse: that includes a lot of stuff I'm doing right now + some things I haven't done yet (because I don't use these packages)
<vika_nezrimaya>
actually would be nice to `grep -e x11Support -e guiSupport -e withGnome -rl $nixpkgs` and add all of that
<vika_nezrimaya>
once this thing is merged, I could probably do that...
<aanderse>
yeah i think "is for hydra to build the X-less variants of the packages as well" is a pretty important step to make noXlibs more practically useful, or at least useful to a larger audience
<vika_nezrimaya>
agreed
<vika_nezrimaya>
infinisil: any ways to setup nix-shell for cross-compiling? so I can reproduce the environment
<vika_nezrimaya>
alternatively - setting up nix-shell from a .drv
m0rphism has quit [Ping timeout: 268 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vika_nezrimaya has quit [Ping timeout: 246 seconds]
lunik18 has quit [Quit: :x]
vika_nezrimaya has joined #nixos
<vika_nezrimaya>
Wow I had a kernel panic rn
<vika_nezrimaya>
I dunno what was that
<vika_nezrimaya>
has anybody wrote something to me while I was offline?
lunik18 has joined #nixos
<infinisil>
Nope
<vika_nezrimaya>
whew
<vika_nezrimaya>
I hope my /nix/store isn't corrupted :3
<infinisil>
(There's logs btw)
<vika_nezrimaya>
I'm in tty rn so no logs for me
<vika_nezrimaya>
if they can't be read with Emacs of course
nisstyre has joined #nixos
nisstyre has quit [Client Quit]
aleph- is now known as Gilfoyle-
nisstyre has joined #nixos
<markasoftware>
if it can't be read with emacs, it's not worth reading
zeta_0 has joined #nixos
tmaekawa has joined #nixos
kleisli has joined #nixos
<vika_nezrimaya>
infinisil: Indeed it could be an easy fix! Except that I'll have to rewrite like, half of the nix expression? The toolchain defaults (native toolchain) is configurable via makeFlags but configurePhase already modifies makeFlags...
jgt has joined #nixos
<vika_nezrimaya>
well I could modify makeFlags array but I don't guarantee it'll work on Darwin
<vika_nezrimaya>
probably will
<vika_nezrimaya>
wait. how to get the cross-compiler's name when you're actually cross-compiling?
fragamus has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
<vika_nezrimaya>
is ranlib prefixed when cross-compiling?
buckley310 has quit [Remote host closed the connection]
buckley310 has joined #nixos
<vika_nezrimaya>
yes it is
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
fragamus has quit [Ping timeout: 245 seconds]
<vika_nezrimaya>
wait it doesn't work?!
<vika_nezrimaya>
I overrid the makeFlags with CC, AR and RANLIB, but I can't see them anywhere!
Rusty1 has quit [Quit: Konversation terminated!]
<vika_nezrimaya>
oh well
<vika_nezrimaya>
I guess I'm going to file an issue for that
<k0ral>
many nix commands stall on my side when copying path '/nix/store/f74zj9535vgk9nlrskk1qgk3v6m7w6n4-stdenv-linux' from 'https://cache.nixos.org'
<k0ral>
notably nix-shell and nixos-rebuild
slack1256 has quit [Ping timeout: 258 seconds]
<infinisil>
k0ral: Throw a bunch of -vv's on
<k0ral>
as a matter of fact, when I manually run: nix copy -v --from https://cache.nixos.org /nix/store/f74zj9535vgk9nlrskk1qgk3v6m7w6n4-stdenv-linux, it does not progress at all
<infinisil>
k0ral: That command finishes successfully in a second for me
<k0ral>
adding -vv to `nix copy` does not show much more, let me paste that
<infinisil>
Add moooore
<infinisil>
Oh not sure if -vvvvvv's work with nix commands, I'd try nix-shell
<k0ral>
ok, but nix-shell seems just to be doing much more than nix copy so I fear I would be showing you a lot of unrelated stuff
<k0ral>
I will paste nix-shell -vvvvvv output
<k0ral>
btw, I am using nixos-unstable
<{^_^}>
[nixpkgs] @c089 opened pull request #66743 → http-prompt: Allow installation on Mac OS → https://git.io/fjdQD
<k0ral>
also, I never get the `error: Nix daemon out of memory`, even after waiting for several hours
<k0ral>
so a memory issue looks pretty unlikely in my case
<{^_^}>
[nixpkgs] @Infinisil opened pull request #66744 → doc: Replace google groups reference with Discourse Patch category → https://git.io/fjd7e
jgt has joined #nixos
slack1256 has joined #nixos
<infinisil>
k0ral: It seems like the cache in your region doesn't respond well
<infinisil>
k0ral: You can probably build it with --fallback
<infinisil>
Well, maybe not, not sure
jgt has quit [Ping timeout: 264 seconds]
<Miyu-chan>
Stupid realization. Unfree is a Nixpkgs construct that doesn't exist in Nix at all.
<Miyu-chan>
That means you can freely build unfree drvs without specifically allowing unfree.
<infinisil>
Indeed :)
<infinisil>
Same for cross compilation, which might be surprising
<kandinski>
Miyu-chan: same for broken, right?
<Miyu-chan>
kandinski: I think so, yeah.
<Miyu-chan>
infinisil: Yeah. :)
<k0ral>
infinisil: how do you check whether this is a region-only issue ? So that I do not bother you next time it happens :)
<infinisil>
Well I guess you could check multiple regions, but that's hard unless you have multiple machines
<infinisil>
Actually I do have a server in france, lemme see
kleisli has joined #nixos
<Miyu-chan>
k0ral:You can try the fastly scripts.
<infinisil>
Seems to be downloading stuff for the `nix copy -v --from https://cache.nixos.org /nix/store/f74zj9535vgk9nlrskk1qgk3v6m7w6n4-stdenv-linux` command
<thedavidmeister>
if i crank the timeout way up and it dies then i'll try something else :shrug:
<infinisil>
thedavidmeister: You're gonna have to provide some more info, like the full log output, because you'd have to override the specific derivation that produces the timeout
<thedavidmeister>
oh ok, so there's no top level cli flag i could pass into the curl that fetches from the nix cache?
<thedavidmeister>
i'll do it again and send you -vvv output
<infinisil>
Nope there's not
trinityhex has quit [Ping timeout: 250 seconds]
<infinisil>
Well I gotta go sleep, but what you'd have to do is probably something like `failingSrc.override { curlOpts = "<options to increase timeout>"; }`
<infinisil>
Oh wait, there is a way
<infinisil>
thedavidmeister: Probably just `NIX_CONNECT_TIMEOUT=<number> nixos-rebuild ...`
<infinisil>
Apparently this is one of the few (intensional) impurities in Nix
<infinisil>
s/Nix/nixpkgs
thedavidmeister has quit [Ping timeout: 246 seconds]
<infinisil>
Although, that's probably the wrong timeout
thedavidmeister has joined #nixos
felixfoertsch has joined #nixos
felixfoertsch has quit [Client Quit]
thedavidmeister has quit [Ping timeout: 268 seconds]
thedavidmeister has joined #nixos
ng0 has joined #nixos
<k0ral>
I guess I will open an issue with all the info I collected
<thedavidmeister>
ininisil++
<thedavidmeister>
infinisil++
<{^_^}>
infinisil's karma got increased to 121
k0ral has quit [Quit: WeeChat 2.5]
jgt has joined #nixos
felixfoertsch has joined #nixos
dasj19 has quit [Quit: dasj19]
tmaekawa has quit [Quit: tmaekawa]
jgt has quit [Ping timeout: 250 seconds]
kleisli has quit [Ping timeout: 248 seconds]
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
felixfoertsch has quit [Client Quit]
felixfoertsch has joined #nixos
felixfoertsch2 has joined #nixos
felixfoertsch2 has quit [Client Quit]
<{^_^}>
[nixpkgs] @FRidh pushed 214 commits to staging-next: https://git.io/fjd7z
FRidh has joined #nixos
<thedavidmeister>
i'm seeing this
<thedavidmeister>
copying path '/nix/store/npdlhmkx59rb0j8q6nc30nz1r1w2617i-chromium-76.0.3809.100.tar.xz' from 'https://cache.nixos.org'...
<simpson>
Even after a Nix release, a commit like this still needs to happen.
<tilpner>
thedavidmeister: Please keep in mind that you will be running Nix master, which may or may not eat your store. It is up to you to decide whether that risk is worth it
<tilpner>
(But I just wanted to point that out again)
<thedavidmeister>
what are the consequense of that?
<thedavidmeister>
a rebuild or a bricked laptop?
<tilpner>
If you need your installation tomorrow for an important thing, you should delay this experiment
ardumont has quit [Ping timeout: 250 seconds]
<thedavidmeister>
ok i will comment out everything then
<thedavidmeister>
i don't *need* chrome and f
<thedavidmeister>
f
<thedavidmeister>
i have brave
<thedavidmeister>
what is the frequency of nix releases?
jgt has quit [Ping timeout: 250 seconds]
<tilpner>
thedavidmeister: The link I sent contains a snippet you can include in your config. That will change your system to use the currently most recent Nix master
<thedavidmeister>
unfortunately i gotta gsd this weekend
<thedavidmeister>
i'm already a bit frustrated from the delays so far
<thedavidmeister>
i think i'll triage and try again later
ixxie has joined #nixos
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
asymptotically has joined #nixos
Guest59 has joined #nixos
Ariakenom has joined #nixos
LastBreath has joined #nixos
Yakulu has joined #nixos
ardumont has joined #nixos
Yakulu has left #nixos [#nixos]
Guest59 has quit [Client Quit]
<thedavidmeister>
thanks for the help
chloekek has joined #nixos
thedavidmeister has quit [Ping timeout: 258 seconds]
thedavidmeister has joined #nixos
<thedavidmeister>
exit
thedavidmeister has quit [Client Quit]
winem_ has joined #nixos
chagra has joined #nixos
<chagra>
I login as my user from tty, is there an option to change the text displayed before the login prompt?
chagra52 has quit [Remote host closed the connection]
chagra has quit [Ping timeout: 260 seconds]
ixxie has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 74 commits to python-unstable: https://git.io/fjd5z
jgt has joined #nixos
lurpahi has joined #nixos
LastBreath has quit [Remote host closed the connection]
rprije has joined #nixos
LastBreath has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @erikarvstedt opened pull request #66746 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/fjd51
o1lo01ol1o has quit [Ping timeout: 272 seconds]
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 250 seconds]
freeman42x has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @erikarvstedt closed pull request #66746 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/fjd51
nexgen has quit [Remote host closed the connection]
nexgen has joined #nixos
<LouisDK>
Coming from Arch I've been playing around with NixOS unstable just wondering why some packages are way outdated eg. nano which is 9 months old.
<laas>
nobody has bothered to update it probably
<laas>
or it's being blocked by something
<laas>
check PRs
jollyjester has joined #nixos
rprije has joined #nixos
<jollyjester>
hello, i just installed nixos.fantasque-sans-mono but when doing fc-list | grep "Fantasque" nothing is showing up and also emacs gives me an error that the font is missing
<jollyjester>
any idea on what i can do?
<tilpner>
jollyjester: Use fonts.fonts, not nix-env or systemPackages
o1lo01ol1o has joined #nixos
tmaekawa has joined #nixos
<jollyjester>
tilpner: how do i do that
<jollyjester>
i'm new to nixos
<tilpner>
You add fonts.fonts = [ pkgs.fantasque-sans-mono ]; to your configuration.nix
<jollyjester>
makes sense
<jollyjester>
thanks
<jollyjester>
i wonder, what will happen when we add a few more thousand options to configuration.nix, will it get slower? how much more storage will it take/
<tilpner>
Yes, it will get slower (assuming no improvements elsewhere)
<tilpner>
Also see #57477
<jollyjester>
hmmmm, nixos kind of tries to make you configure parts of your operating system easily with a global configuration file but that arrises problems such as these, i sitll believe vanilla systems somewhat like slackware will pass the test of time
<tilpner>
NixOS will certainly not replace all other distros soon
<tilpner>
But the evaluation time is an acceptable cost to many people
LouisDK has quit [Remote host closed the connection]
<jollyjester>
isn't the model of nixos kind of monolithic?
jgt has joined #nixos
<tilpner>
I guess it is
<__monty__>
I'd argue it's the opposite.
<jollyjester>
well it uses a global configuration that configures everything, that's kind of monolithic
<jollyjester>
instead of tools interacting with other tools
<simpson>
jollyjester: If we imagine the filesystem as a store of state, then it's about mutable vs. immutable state.
<tilpner>
Well, it still uses "tools interacting with other tools" to configure everything
<__monty__>
*OR* it's the only tool that allows modular configuration, in the sense of doing one thing well.
<simpson>
jollyjester: You are, to be clear, free to use non-NixOS. Nix should work on any Linux.
<jollyjester>
yes i know
<jollyjester>
i like nixos
<jollyjester>
it's just that i'm concerned that adding more packages and options to work with will make the system slower
<__monty__>
jollyjester: Slower than? Manually applying all the configuration and installing packages and setting up services?
<tilpner>
__monty__: TBF having to wait 20s to add a package globally can be slower than apt install
o1lo01ol1o has quit [Remote host closed the connection]
<tilpner>
I've been meaning to check how to separate my system into NixOS containers, so that I don't have to eval the entire thing at once
<simpson>
But also, TBF, adding packages globally is something that drops off rapidly after the first week with NixOS.
jgt has quit [Ping timeout: 264 seconds]
<tilpner>
simpson: Bad example then, use adding a single line to /etc/sudoers.conf
<__monty__>
tilpner: Sure but they're not equivalent things. `apt-get install` is closer to imperative nix-env or nix-shell if we're ok with pretending imperative nix-env doesn't exist : )
<tilpner>
*/etc/sudoers
<__monty__>
tilpner: Adding that to configuration.nix is still doing a lot more work than simply editing a text file though.
<simpson>
tilpner: Sure. Totally agreed there, and this is the mutable vs. immutable tradeoff. Hard to improve this without falling into the potholes that tools like Puppet and Ansible have.
<tilpner>
__monty__: I know, I'm just advocating for users that are no longer here because it seemed slow
<tilpner>
alexarice[m]: IIRC nixos-rebuild and nix-env use different users channels by default, so changing just one will not affect their user profile
<tilpner>
But it's been so long since I've used channels or seen a default config, so I might be wrong
<__monty__>
root v. your user ordinarily.
<alexarice[m]>
tilpner: ah I see, I'm used to installing everything with `configuration.nix`
<{^_^}>
[nixpkgs] @FRidh merged pull request #66744 → doc: Replace google groups reference with Discourse Patch category → https://git.io/fjd7e
<{^_^}>
[nixpkgs] @FRidh pushed commit from @Infinisil to master « doc: Replace google groups reference with Discourse Patch category »: https://git.io/fjdbx
rsoeldner has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
jgt has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
rprije has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #66751 → treewide: name -> pname → https://git.io/fjdNq
<juhe>
Hi, I'm trying to repair botched nix store after not smart usage of "nix-path --delete --ignore-liveness", so I booted from usb stick, mounted root to /mnt and used "nix-store --dump" on machine which contains required paths and "nix-store --restore" on target. This even though copies files, doesn't seem to work as I expected, because nixos-enter brings "bash-4.4" and not usual root promt. The nix-store --verify-path (from withing chroot)
<juhe>
marks the copied paths invalid as well... Any idea what am I missing?
leotaku has quit [Ping timeout: 245 seconds]
rprije has quit [Ping timeout: 246 seconds]
<__monty__>
If nothing better's suggested, as long as you have your configuration.nix I think nixos-install should get you set up right.
jb55 has quit [Read error: Connection reset by peer]
klntsky has quit [Read error: Connection reset by peer]
ng0 has quit [Read error: Connection reset by peer]
Palpares has quit [Remote host closed the connection]
oida has quit [Remote host closed the connection]
phreedom_ has quit [Remote host closed the connection]
klntsky has joined #nixos
jb55 has joined #nixos
<juhe>
Yes, that would work, but I would like to know why copied path is not considered valid. Is there any extra metadata kept outside of /nix/store/ that was not updated by "nix-store --dump"?
ng0 has joined #nixos
<juhe>
actually by "nix-store --restore"...
Palpares has joined #nixos
<__monty__>
There's a database in /nix/var I believe but that should be updated by restore.
jgt has joined #nixos
phreedom has joined #nixos
leotaku has joined #nixos
tilpner has quit [Quit: WeeChat 2.4]
<juhe>
Hm, maybe it is not updated with nix-store --restore, but nix-store --import. The difference between the two seems to be in --import/--export using some more metadata. But, I can't use that since it seems to use /nix/store and not /mnt/nix/store. I'll check man page if it is possible to change default /nix/store path with nix-store --import/export ones.
jgt has quit [Ping timeout: 250 seconds]
<__monty__>
Shouldn't your store be in the right place after the chroot?
<gchristensen>
--export and --import are better choices
<gchristensen>
juhe: how did you come to decide to use --ignore-liveness?
o1lo01ol1o has quit [Remote host closed the connection]
anderslundstedt has quit [Remote host closed the connection]
<juhe>
gchristensen: well, don't ask... :-|. I wanted to free up some space since the machine has only 32GiB storage. I know it is pretty stupid thing to do, but I didn't find the command that would remove some (unimportant) stuff from /nix/store even if it would render it somewhat broken. My idea was to nix-deploy to that machine and reboot and then collect garbage so the rest of the paths would be removed.
anderslundstedt has joined #nixos
<gchristensen>
juhe: aye, but how did you learn that --remove-liveness exists?
<juhe>
gchristensen: from manual page of nix-store
<gchristensen>
okay
<gchristensen>
it seems that while it is very silly to use the flag, the results seem more severe than I expect
<__monty__>
Depends on what you remove though.
<juhe>
Yes it's dangerous command :)
<gchristensen>
the man page doesn't indicate that well
<adisbladis>
bendlas: Ping?
<__monty__>
adisbladis: How do you know I'm having trouble with ping?
<juhe>
It could be inferred though. Maybe having explicit note that it removes also paths it is depending on (like system-path or some etc stuff), it would be fine though.
<Palpares>
is nix intended to work fully on other distro such debian or is it normal 50% of packgs are broken there?
<juhe>
I'll try nix-store --export/--import with explicitly set NIX_{STORE,DATA,LOG,STATE,CONF}_DIR env variables, maybe it'll solve my problem.
oida has joined #nixos
<gchristensen>
Palpares: Nix should work on other distros, yes
<gchristensen>
there are some caveats with programs which use GL etc.
dm9 has quit [Quit: WeeChat 2.5]
<Palpares>
tried to install qutebrowser, vim.youcompleteme without success on debian while this works fine on nixos. is it ok to post issues on github for debian ?
<bendlas>
<adisbladis "bendlas: Ping?"> yep?
<gchristensen>
Palpares: yep
LastBreath has quit [Read error: Connection reset by peer]
<Palpares>
also, I do have package collision: eclipse and scala-ide both produce an eclipse executable and make both not working together. Is it a normal behavior, or should it be corrected in the nixpkg ?
Thra11 has quit [Ping timeout: 246 seconds]
Walker3R has joined #nixos
tilpner has joined #nixos
<adisbladis>
bendlas: Why is the melpa update run as --fg-daemon instead of using --batch ?
<juhe>
Unfortunately using nix-store --import/--export and custom NIX_*_DIR env vars doesn't work, getting "error: path '...' is not in the Nix store.
eof has quit [Ping timeout: 246 seconds]
<Miyu-chan>
nix-store --export does not export the closure btw.
<juhe>
Miyu-chan: that's ok, I can loop through the referrers and get the missing paths.
<juhe>
ideally, nix-copy-closure would have an option to specify alternate nix store path, that would be easiest.
jgt has joined #nixos
<nkaretnikov>
i'm trying to define a custom set of packages. is there a way to automatically derive all inputs from the current scope when calling `import ./path/to/package { <here> };` instead of specifying all of them instead of `<here>`?
<nkaretnikov>
i think this is somehow related to `inherit`, but i'm not sure. i recall it's possible, but maybe i'm just mistaken
<Miyu-chan>
juhe: Just for reference, `nix-store -qR` gets the whole dependency list.
Walker3R has quit [Remote host closed the connection]
<LouisDK>
I tried to upgrade nano to 4.3 by editing nano/default.nix after cloning the github repo. I only changed the version af sha256sum (which I got from https://ftpmirror.gnu.org/nano/nano-4.3.tar.xz). However I get this error: https://pastebin.com/Qn4qGH7J - neither of the checksums in the output is in my nan/default.nix - do I need to edit another fil
<__monty__>
LouisDK: How did you figure out the sha256?
<__monty__>
Usually people use
<__monty__>
,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.
<AluisioASG>
@LouisDK The hash I get is 108dzj6azqmini9bvgl26r0q1y59s3nnrw75hfzv91bs50davlq0. What is the hash you put in default.nix?
<{^_^}>
LouisDK: 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.
<__monty__>
siraben: Yeah, if you want to keep the 3 most recent generations do `nix-env --delete-generations +3`, this is 3 *including* the current.
<siraben>
__monty__: Ah that's even better. Thanks.
rj1 has quit [Quit: bye]
<{^_^}>
[nix] @toonn opened pull request #3048 → Fix nix-env documentation for --delete-generations → https://git.io/fjdjo
<siraben>
That sort of syntax is confusing. I wonder if nix-env --keep-generations would make more sense.
<__monty__>
siraben: You could open a UX issue at NixOS/nix I guess. Tbh, I intuited the + to mean current+x.
<__monty__>
I have a build that fails because the makefile is trying to change permissions on /etc/bash_completion.d, does nix have a way of patching/providing a good path for the bash_completions? (Better yet a way to turn bash_completions into fish completions?)
<maralorn>
__monty__: It looks like something is circumventing the nixos mechanism for setting PATH. This PATH comes from a non nixos system. Have you perhaps copied your non-nixos .bashrc or .zshrc to the ssh-host?
<__monty__>
andi-: In configuration.nix, users.users.me, specified wheel group and my shell and isNormalUser.
<__monty__>
maralorn: Nope.
<__monty__>
I suspect I'm missing some ssh configuration that loads the right paths.
<maralorn>
__monty__: But the default should definitely be that on nixos every login session is already setup with the right PATH. So I feel like something is overriding it.
<clefru>
Is there a way to talk to wpa_supplicant via wpa_cli when run regularly from NetworkManager? I can't seem to find the control socket for it, also I don't see it having any config file on the command line. It looks like it is spawned with "wpa_supplicant -u" for control via dbus, but how do I hook up wpa_cli with dbus?
orivej has joined #nixos
<__monty__>
maralorn: Why would it override it only for ssh access though? And include just the ssh binary in the PATH? I suspect this is some sort of sandboxing done by nixos which is relaxed when using programs.ssh.
<maralorn>
__monty__: Do I understand correctly that you installed openssh with nix on the client to connect via ssh?
<andi->
__monty__: can you post the configuration somewhere?
<maralorn>
__monty__: Is that PATH in the ssh session?
slyfox has quit [Ping timeout: 248 seconds]
<__monty__>
maralorn: Yes, and I have services.ssh.enable = true in configuration.nix.
<__monty__>
andi-: Nix or ssh? The ssh config is just a bunch of keys and some hosts defined in .ssh/config.
<andi->
__monty__: probably the nix configuration unless you have a very fancy ssh config
<maralorn>
__monty__: This seems a bit weird so maybe we are/I am having some misunderstanding here. But to me it looks like you are carying the client PATH over to the session in your host? So maybe you are using an ssh option which is transfering environment variables?
<__monty__>
maralorn: I'm not specifying any ssh options, just the user@ip.
<__monty__>
andi-: https://github.com/toonn/nix-config relevant parts are in nixos/ and home/, note that part of that home.nix is commented out here.
<{^_^}>
[nixpkgs] @florianjacob opened pull request #66761 → nixos/utils: use removePrefix in escapeSystemdPath → https://git.io/fjFva
jgt has joined #nixos
<andi->
__monty__: have you tried with another shell? Not sure what fish does…
ryantrinkle has joined #nixos
<__monty__>
andi-: I haven't, just ssh user@ip bash?
<andi->
i mean as the login shell of the user you are connecting as
<andi->
Is my best guess so far
<andi->
I'll have to run now. Good luck :-)
<clever>
__monty__: youll also want a -t for ssh there
jgt has quit [Ping timeout: 264 seconds]
<ryantrinkle>
is there a standard way to supply iana-etc stuff to builds?
<ryantrinkle>
i.e. place something in the sandbox's /etc
<ryantrinkle>
(without being impure)
<maralorn>
And bash will probably not be in the PATH?
ddellacosta has quit [Ping timeout: 245 seconds]
<__monty__>
Bash isn't, sh is but it indeed just inherits the path. Can I avoid rebuilding to just test a different login shell?
<maralorn>
__monty__: You can probably find the path to a bash in the /nix/store manually?
<maralorn>
find /nix/store -name bash
<maralorn>
But I am not convinced that will help :-/
<__monty__>
maralorn++ Stellar idea : ) The path is indeed correct if I `ssh user@ip -t /nix/store/blah-bash/bin/bash`.
<{^_^}>
maralorn's karma got increased to 1
<maralorn>
\o/
<maralorn>
[x] My first karma.
<__monty__>
So for some reason fish-over-ssh is not loading the same environment as fish-on-target, hmm.
<maralorn>
__monty__: Is the home.nix already installed on the host your ssh-ing into?
juhe has quit [Quit: Leaving.]
<__monty__>
Yes, modulo some commenting.
<maralorn>
Well I can‘t tell. But maybe the culprit is in "~/src/dotfiles/fish/functions"?
<__monty__>
maralorn: Those are just some aliases I use basically.
Shouou has quit [Ping timeout: 252 seconds]
wildtrees has joined #nixos
<maralorn>
I still think that a vanilla fish should have a correct PATH so I wonder where it‘s geting overriden.
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
<__monty__>
I am innocence incarnate!
<maralorn>
__monty__: From https://nixos.org/nixos/options.html#users.users.%3Cname%3F%3E.shell "Don’t forget to enable your shell in programs if necessary, like programs.zsh.enable = true;"
<maralorn>
__monty__: After reading nixos/modules/programs/fish.nix I am now nearly convinced that "programs.fish.enable = true" will solve your problem.
<__monty__>
maralorn: Won't that clash with home-manager's programs.fish?
<maralorn>
__monty__: Don‘t think so.
<hyperfekt>
__monty__: iirc programs installed via home-manager appear in the path first, so it won't clash but it'll use home-managers package
<maralorn>
The programs.fish in configuration.nix sets some environments files in /etc.
<{^_^}>
#66689 (by ryantrinkle, 1 day ago, open): wireguard: allow routes to overlap with other routes
Thra11 has joined #nixos
<ryantrinkle>
this is necessary if your device is sometimes physically connected to the network it's VPNing into, and sometimes not, and you don't want to bother doing anything in between
<Thra11>
Do I need zfs-kernel if I'm not planning to use any zfs filesystems?
<clever>
Thra11: you can skip it
<Thra11>
(It doesn't compile with the kernel sources I'm using, so I figure I'll try to disable it rather than fix it)
<Thra11>
clever: Do you know what change to make to skip it when building an sd-image?
hoijui has quit [Quit: Leaving]
<clever>
Thra11: first, you want to see what depends on it, check something like nix-store -q --tree
<{^_^}>
[nixpkgs] @FRidh merged pull request #66668 → remove all instances of nix-env -i without -A in the NixOS manual → https://git.io/fjdY4
<{^_^}>
[nixpkgs] @FRidh pushed commit from @symphorien to master « remove all instances of nix-env -i without -A in the NixOS manual »: https://git.io/fjFfa
<Thra11>
It's linux-modules which depends on it
<clever>
Thra11: what does `nix show-derivation` say about the linux-modules drv file?
freeman42x has quit [Quit: Leaving]
freeman42x has joined #nixos
freeman42x has quit [Remote host closed the connection]
<aveltras>
does anyone have an example of a haskell project default.nix with an override of all-cabal-hashes ? it doesn't seem to work the way i think it works. Im trying to get the latest polysemy but i complains it's not found in the archive, here's my default.nix
<clever>
aveltras: you give it the name of a package, the version, and the sha256 of its tarball from hackage, and then it can operate without being present in all-cabal-hashes
<clever>
,tofu
lyvidev has joined #nixos
<{^_^}>
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.
<clever>
the hash
<LouisDK>
I'm searching for a way to use a git repo for specific packages in configuration.nix. The closest I've come is nixpkg pinning but I don't want to add a snapshot.
nexgen has joined #nixos
<nh2>
How should I best test treewide changes PR'd to staging?
<clever>
aveltras: oh, right, you need to use the set that this override applies to
<clever>
aveltras: so the packages can inter-link
<nh2>
clever: does `nixos/release.nix` include the full set of packages, and just does the automated tests in addition? I'd like to check both that my change passes all nixos tests, but also buidls all nixpkgs packages that are supposed to work that don't have NixOS tests
<clever>
nh2: that would be release-combined.nix
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<nh2>
clever: so that would be `nix-build nixos/release-combined.nix` and I'm good?
<clever>
nh2: note that the eval of the nix expr alone requires several gig of ram, and the resulting jobs need linux, darwin, and aarch64 build slaves, and at least 80gig of disk space
<nh2>
clever: the disk and RAM by static-haskell-nix CI server can provide, but can I restrict it to do only Linux?
<nh2>
clever: hmm, it fails for me with `Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS`. Not sure if that means I ran out of RAM on the desktop, or that I have to increase something somewhere
<clever>
nh2: the default heap size for the nix evaluator is fairly small
<nh2>
how can hydra evaluate it? Does it set some options?
<clever>
nh2: you need to increase the number the error says to increase
<freeman42x>
when I try to install smartgit I am getting the following error: "hash mismatch in fixed-output derivation"
<freeman42x>
how could I fix this?
__monty__ has quit [Ping timeout: 245 seconds]
<{^_^}>
freeman42x: Please expand your question to include more information, this will help us help you :)
<freeman42x>
freeman42x, I think I got it. This is fixed in nixpkgs but not in the channel yet
dsiypl4 has quit [Ping timeout: 245 seconds]
<freeman42x>
so my question would be, how do I install something from a nixpkgs clone?
<tilpner>
Wait, you can't do that, {^_^}!
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<tilpner>
freeman42x: Many Nix tools look up the path to nixpkgs in NIX_PATH
<tilpner>
freeman42x: So setting NIX_PATH=nixpkgs=/path/to/your/clone nix-build ... will use your clone
rsoeldner has quit [Read error: No route to host]
<freeman42x>
tilpner, ah, ok. I would rather just run the install command in the clone folder though. Do you know what the command to install from the clone is?
rsoeldner has joined #nixos
<tilpner>
nix-env -f . -iA foo or something like that
<vika_nezrimaya>
Why is polkit in my closure despite me disabling polkit?...
ottidmes has quit [Ping timeout: 272 seconds]
tomatze has joined #nixos
<tilpner>
vika_nezrimaya: Use "nix why-depends" to answer that question
jgt has joined #nixos
<vika_nezrimaya>
tilpner: is it normal that it wants to build 199 packages before giving me the answer?
<vika_nezrimaya>
it's gonna fail
<tilpner>
No, it doesn't need to build anything
slack1256 has joined #nixos
<vika_nezrimaya>
weird.
<tilpner>
You can pass store paths to it directly
<tomatze>
hey, I'm new to nixos and I'm trying to make my first derivation of the following project: https://github.com/nealey/hdjd . The project says, that I should just "make" it and the just run it. My problem is, that mkDerivation fails, because it trys to "make install" it after making it. how can I tell mkDerivation to just copy the binary to the nix-s
<tomatze>
tore instead of trying to do "make install" and failing with: "make: *** No rule to make target 'install'. Stop." ?
jgt has quit [Ping timeout: 250 seconds]
slack1256 has quit [Remote host closed the connection]
<tilpner>
vika_nezrimaya: The cause of our misunderstanding was that there are two important closures. why-depends works on the runtime closure, while --query --tree will show you the build-time closure
<tilpner>
And you can only determine the runtime closure of something if you have it realised already, so that you can scan it against the buildtime closure
<vika_nezrimaya>
Ok. I seem to be in need of a quick git-blame on nixpkgs.freetalk
<tomatze>
symphorien thx again, now it works like a charm, I'm still fascinated, how simple it is to build stuff with nixos in a reproducable way
<vika_nezrimaya>
Because I don't know who put autoconf and automake in buildInputs instead of nativeBuildInputs :D
dsiypl4 has joined #nixos
<tilpner>
Don't blame, just improve :)
<vika_nezrimaya>
does texinfo need to be native or not?
<tilpner>
I think that depends on how texinfo is used there
<vika_nezrimaya>
ok I'm about to find out :3
<vika_nezrimaya>
aaaand syntax error
<tilpner>
Huh
Shouou has quit [Remote host closed the connection]
<tilpner>
If it uses /bin during buildPhase/installPhase, I'd say nativeBuildInputs
Shouou has joined #nixos
wfranzini has quit [Remote host closed the connection]
<tilpner>
If it uses /lib during runtime, buildInputs
<tilpner>
And no, I don't know what to do if it does both
<vika_nezrimaya>
well, it's an XMPP client
wfranzini has joined #nixos
<vika_nezrimaya>
I doubt it would link to texinfo
<vika_nezrimaya>
it's not Emacs
<tilpner>
While you're fixing that package, please fix the indentation too
<tilpner>
:)
<vika_nezrimaya>
I'm overriding it with an overlay, not rewriting it
<tilpner>
Aww. Maybe nixpkgs-format will do it eventually
<vika_nezrimaya>
I'll upstream my stuff once I have this system built :3
<vika_nezrimaya>
It contains a lot of nasty hacks I will not upstream, but rather file issues about them
tomatze has quit [Remote host closed the connection]
<vika_nezrimaya>
It's a hard blocker for me, but I'm trying to power through as much as I can without it. Next thing I'm gonna complain about is probably Spidermonkey, which doesn't cross-compile too - but I an live without it...
<vika_nezrimaya>
oh, also clucene-core fails to compile
<vika_nezrimaya>
apr (Apache portable runtime) too
<c74d>
What's the proper way to convert a Nix `int` value into a `float`? I'm using `builtins.fromJSON "${toString someInt}.0"`, but that feels... improvable.
rsoeldner has joined #nixos
slack1256 has quit [Read error: Connection reset by peer]
<vika_nezrimaya>
Wow. Git doesn't want to link to libcurl
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjFLp
mildred has joined #nixos
<{^_^}>
[nixpkgs] @mmahut opened pull request #66793 → nbstripout: moving buildInputs to checkInputs → https://git.io/fjFtJ
<vika_nezrimaya>
What's the benchmark feature in the builders configuration for distributed builds? The wiki said it's a marker that builds on that machine take constant time, but how to utilize it? how does it get utilized?
<{^_^}>
[nixpkgs] @mmahut opened pull request #66794 → mumble_overlay: fixing the library path → https://git.io/fjFtZ
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #66795 → nixos/pantheon: adjust to renamed gnome3 options → https://git.io/fjFtn
mexisme has joined #nixos
rsoeldner has quit [Remote host closed the connection]
<joepie91>
freeman42y: the reason I ask is that I've only seen your problem twice, on my own system, and that was when I had memory corruption issues (hardware conflict and bad RAM stick respectively)
<joepie91>
which had corrupted the Nix store
<joepie91>
but that usually goes accompanied by other strange behaviour, like rendering glitches, applications suddenly not starting or looking weird, etc.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjFqR
<joepie91>
freeman42y: if you want to exclude a bad RAM stick, it's worth running a memtest at some point
<joepie91>
though if you've seen no other oddities, that's not very likely to be the case
<freeman42y>
joepie91, "I *think* that's a path in the nix store" might be. I think I installed hie via nix-env. how can I remove it?
<infinisil>
c74d: The problem with floats is only that they're not associative, adding 0 or multiplying by 1 will still be identities, so this should be fine
<joepie91>
freeman42y: there's a remove flag for nix-env
<joepie91>
I forgot what it is, I never use nix-env
<joepie91>
should be in the manpage
<joepie91>
`man nix-env`
mexisme has joined #nixos
<joepie91>
freeman42y: out of interesting, are you running on a system with an AMD CPU/GPU by any chance?
<joepie91>
interest*
<freeman42y>
joepie91, no, It's an intel i7 with an nvidia deicated gpu
<joepie91>
ah, seems `--uninstall` is the flag
<joepie91>
freeman42y: ah, then at least it won't be the hardware conflict I had :D
fendor_ has joined #nixos
<joepie91>
but yeah, I have no idea what the problem /is/ then
<vika_nezrimaya>
how can I add a certain derivation to environment of a builder? I need curl-config to appear, but it doesn't. The derivation is... git
<freeman42y>
joepie91, well, the issue is gone after reboot, so it's fine
<joepie91>
freeman42y: alright. make sure to watch for any other odd behaviour. if you see other odd behaviour (especially behaviour that cannot be easily explained by a simple developer mistake), you should immediately shut down the system and run a memtest -- continuing to run with a bad RAM stick can end up corrupting data on disk, so it's not a good idea to do that if you have a suspicion of RAM issues
ixxie has quit [Remote host closed the connection]
<joepie91>
(also, in the unlikely case that it really /is/ a RAM issue, you can repair your nix store using the repair flag in the nix-store command, but you should only do that AFTER removing the bad RAM, otherwise you run the risk of creating a ton of corruption in your store)
<{^_^}>
[nixpkgs] @Ma27 opened pull request #66799 → curlie: init at 1.2.0 → https://git.io/fjFqg
<{^_^}>
[nix] @goodwillcoding closed pull request #292 → Add named id to all chapters, sections, and appendices so they are easier to link to. → https://git.io/Y4uECw
<rycee>
It was a bit of a struggle to get all the puzzle pieces to line up. And gitlab was having problems at the same time so I was tearing my hair out when nothing worked and I couldn't figure out what I did wrong.
<infinisil>
Though it looks like the website is just a github readme mirror
Mateon1 has quit [Ping timeout: 246 seconds]
<infinisil>
I've been thinking this for a while:
<infinisil>
A way to speed up Nix is to have the daemon keep evaluations in memory
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<infinisil>
E.g. you could say it should keep the evaluation for `nixos-rebuild` in memory, and anytime any file that influences it changes, it gets reevaluated
<infinisil>
And only those parts get reevaluated that need to be
<infinisil>
Then a `nixos-rebuild` command can just fetch the result from memory instantly
<infinisil>
The only problem is that this will use up a lot of memory all the time..
<infinisil>
I guess this could be solved by writing the result to disk when a while has passed, to get it out of memory, reload it on demand
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<infinisil>
With this, the whole evaluation step could be hella fast
<infinisil>
Then we'd have to look into what making building so slow..
___laika has quit [Ping timeout: 272 seconds]
<pie_>
obviously tons more caching could be done than what is done
<infinisil>
pie_: Caching what?
<pie_>
intermediate eval results
<pie_>
except maybe not so "obviously"
orivej has quit [Ping timeout: 245 seconds]
jgt has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
Mateon1 has joined #nixos
sigmundv_ has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
<infinisil>
Okay so after a quick benchmark, for a trivial derivation (the simplest you can have), it takes Nix about 2 seconds to build it
<infinisil>
But most of that time is spent querying substituters
<infinisil>
With --option substitute false it takes 180ms!
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
<andi->
and with --option sandbox false?
tertl3 has joined #nixos
<tertl3>
nixos ftw
ng0 has quit [Quit: Alexa, when is the end of world?]
shibboleth has quit [Quit: shibboleth]
rsoeldner has quit [Ping timeout: 252 seconds]
<infinisil>
andi-: Another 50ms shaved off, about
<infinisil>
And for the sandbox thing you can control by setting allowSubstitutes = false
<emily>
hm, nix should race substitutions and builds :p
<infinisil>
emily: Yeah am thinking the same
<emily>
would make for annoying CPU spikes I guess
<infinisil>
emily: Though it's a bit problematic, because if it can substitute it doesn't need to download dependencies for the build
<emily>
why can't you just cache all the hashes the caches have?
<emily>
(tongue-twister)
<emily>
like apt and so on do
<emily>
I guess you need an explicit update step then is the problem
<infinisil>
Not sure what you mean
<emily>
as in, rather than querying over the internet, just look up whether the substituters have the hash available locally.
<emily>
ofc this would require architectural changes.
<infinisil>
Ohh I see, neat idea
<infinisil>
That might work really well
<infinisil>
To just download a differential update of the hash list once when the build starts, then base all the lookups on that
<adisbladis>
The entire cache manifest in a bloom filter would be <3
<adisbladis>
Ze speeds
<infinisil>
Hehe that's also a nice idea
<infinisil>
Bloom filter has false positives or negatives?
<adisbladis>
False positives
<adisbladis>
infinisil: Which would be perfect for the cache
<infinisil>
It would sometimes end up thinking it's in the cache when it's really not?
<adisbladis>
Yeah
<emily>
oh a bloom filter would be great :)
<emily>
I'm guessing "every hash hydra has" would be pretty big to download initially so that might actually be a good idea
chloekek has quit [Ping timeout: 245 seconds]
<infinisil>
Ping gchristensen for maybe getting a count on the number of paths in hydra's store
evanjs has joined #nixos
<adisbladis>
infinisil: You'd have to check the s3 bucket directly
<evanjs>
Okay, going to finally just ask here. Any idea how I might idiomatically get the newest version of a package (and by extension, a list of packages) from a given set of channels (e.g. config.nixpkgs.config.packageOverrides)?
<evanjs>
Currently trying to do so with JetBrains packages, and while it works, it's sorta messy and I can't figure out how to use it with a package list (I'm calling the function on each package individually as shown here - https://github.com/evanjs/nixos_cfg/blob/master/modules/jetbrains.nix#L11)
<davidtwco>
I've just accidentally removed "users.users.<name>.shell" for my user and rebuilt, now when I ssh to my remote machine I get "/run/current-system/sw/bin/zsh: No such file or directory" - any ideas on how I can get back in?
<infinisil>
evanjs: Ah I see, how about changing the option to `listOf str`
mbrgm has quit [Ping timeout: 250 seconds]
mbrgm_ has joined #nixos
<infinisil>
So you specify the package name instead of the package itself when assigning the option, which allows you to freely choose the version in that module