<hodapp>
"UPGRADE ME! UPGRADE ME! UPGRADE ME! UPGRADE ME OR I'LL STOP WORKING!" so I upgrade and then "!! (Qt:Fatal) This application failed to start because it could not find or load the Qt platform plugin "xcb" in ""." even with the console version
Guest68067 has quit [(Quit: nite nite)]
endforma1 has joined #nixos
endformationage has quit [(Ping timeout: 276 seconds)]
<adisbladis>
How can I put something in the binary cache manually?
<nixy>
adisbladis: What do you mean by that?
<adisbladis>
nixy: I have a file that I want to put into the binary cache, but /nix/store is read-only
<catern>
adisbladis: nix-store --add [file]
<catern>
but are you sure this is what you want to do?
zraexy has quit [(Ping timeout: 268 seconds)]
<adisbladis>
catern: I think so? Trying to resolve this issue http://ix.io/y4j
<adisbladis>
Downloading the file from the cache manually works out fine
<adisbladis>
Disk space is plentiful so I don't know what this "no space left on device" is about
<catern>
well, you can try nix-store --add or nix-prefetch-url
<catern>
but consider that maybe disk space is not plentiful
<catern>
check df -h :)
<adisbladis>
catern: I did, 15G available
<catern>
on tmpfs?
<catern>
anyway: try nix-store --add or nix-prefetch-url
<pxc>
Mic92: no. I want to package showterm, which uses native extensions for ttyrec. It chokes when it can't find gcc. (I'm trying to do a simple setup with bundix)
Sonarpulse has quit [(Ping timeout: 246 seconds)]
<Mic92>
pxc: you need to pass additionally dependencies to ttyrec. This is usually done in the said file
<pxc>
Mic92: this is great! is there anything about this in the current Nixpkgs manual?
arianvp2 has quit [(Quit: arianvp2)]
markus1199 has quit [(Ping timeout: 240 seconds)]
hotfuzz_ has joined #nixos
markus1209 has quit [(Ping timeout: 240 seconds)]
<Mic92>
pxc: mhm. I cannot find something. But if their would be something, it would be in nixpkgs/doc/languages-frameworks/ruby.xml
hotfuzz has quit [(Ping timeout: 240 seconds)]
markus1189 has joined #nixos
markus1199 has joined #nixos
<Mic92>
pxc: you could add some lines, when you figure it out.
<pxc>
Mic92: great idea :-)
Itkovian has joined #nixos
<adisbladis>
Mic92: I wanted to give bcachefs a go but it seems you pretty much have to use their kernel tree
<Mic92>
I have not yet found the time to compile it and run somewhere.
<adisbladis>
Mic92: Nice :)
dalaing_ has joined #nixos
freusque has quit [(Ping timeout: 240 seconds)]
<pxc>
so just adding gcc worked, but the way showterm includes ttyrec is just be building all the binaries executables (as a ruby extension?) how can I tell it to use Nix's? a replacement Makefile that links into the right package? https://github.com/ConradIrwin/showterm/tree/master/ext
justbeingglad has joined #nixos
<pxc>
to restate: I have a working showterm package now, but it features gcc as a buildInput and doesn't use Nixpkgs' included ttyrec package. This is because showterm appears configured upstream to use its own bundled copy of showterm which it compiles from source. Is this worth trying to work around?
justbeingglad has left #nixos []
<Mic92>
pxc: maybe youd a wip pull request
<Mic92>
*you add
<Mic92>
probably a preBuild is required where, make is run
<sphalerite>
gchristensen: just had another odd keyboard bug, one I haven't seen before — it seems to have missed the release event so it just kept repeating n after I pressed it only once
freusque has joined #nixos
dalaing_ has quit [(Remote host closed the connection)]
<clever>
sphalerite: that used to be a daily occurance for me
<clever>
sphalerite: with one of my old laptops, the first one with cpufreq scaling, the entire system would lock up for ~0.5 seconds every time the freq changed
<sphalerite>
ouch
<clever>
and "ls -ltrh" used enough cpu to make it want to clock up
<clever>
and the timing was just right, that it always dropped key events when i finished reading and tried to do something
<clever>
the hardware keyboard buffer must have been really short
<clever>
but that was back before the kernel even had automatic freq changing, it was all driven by powernowd, which had flexible config
<clever>
so i could just raise the averaging window, and it was less eager to change freq
<pxc>
Mic92: yeah, I think it only affects the package as a whole. But really I don't want to affect the inner Makefile so much as bypass it completely. Idk enough about how Ruby works, though
<Mic92>
pxc: it calls make itself
<pxc>
Mic92: do you think maybe I could just replace the Makefile with one that has a bunch of dummy outputs where the build commands are "ln -s ${ttyrec}/bin/ttyrec ttyrec", "ln -s ${ttyrec}/bin/ttyplay ttyplay", etc.?
<pxc>
in like prePatch?
<Mic92>
pxc: I think the paths of least resistance is to just keep the gcc thing there
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQcSt
<NixOS_GitHub>
nixpkgs/master 8a62a9b Frederik Rietdijk: Merge pull request #26125 from volth/webkitgtk-naming...
NixOS_GitHub has left #nixos []
markus1199 has quit [(Ping timeout: 240 seconds)]
<raunov>
Hey, any hints how to write custom file after package installing? (custom package)
markus1189 has joined #nixos
cpennington has quit [(Remote host closed the connection)]
jbgi has quit [(Ping timeout: 240 seconds)]
<raunov>
trying to use writeText but it doesn't allow to specify path (only file name) and currently its even failing with filename for no premissions
magnetophon1 has joined #nixos
arianvp2 has joined #nixos
<tilpner>
What custom path do you want to write to?
<raunov>
its quite uncommon, /root/.terraformrc
<raunov>
but even without path, it's failing cause of permissions
ragge has quit [(Quit: Connection closed for inactivity)]
<raunov>
error: /nix/store/ysa06zk7hz9k4f9l03681vfnnbscp5l5-stdenv/setup: line 69: /nix/store/apx562zq5gf42bn7wc19sbfv268plra2-terraformrc.conf: Permission denied
<tilpner>
Oh, yes, that's harder. I'll send you how I solved that for me
<raunov>
cause didn't find any other possbility to tell terraform where to look for plugin :)
<raunov>
would really appreciate it
<goibhniu>
raunov: in general, you're not allowed to write to a path outside of the store
arianvp2 has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
<raunov>
goibhniu: makes sense yes..but any other good ideas :D ?
* goibhniu
is curious to see tilpner's approach
<raunov>
quite weird that terraform states thats only users home dir .terraformrc is for plugin discovery..
<tilpner>
This is in my configuration.nix, tx0.co/nRYu/nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to release-17.03: https://git.io/vQCYy
<NixOS_GitHub>
nixpkgs/release-17.03 a2c7482 Eelco Dolstra: systemd: Apply fix for CVE-2017-9445
NixOS_GitHub has left #nixos []
<tilpner>
And tx0.co/cpoN/nix is the used dotfiles-activation.nix
<tilpner>
Note that this is quite dangerous to do. If you screw up, you can't activate system generations. I'm not entirely happy with this approach, but it works quite well
<raunov>
hum
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vQCYj
<NixOS_GitHub>
nixpkgs/master 32e4922 Eelco Dolstra: systemd: Apply fix for CVE-2017-9445
NixOS_GitHub has left #nixos []
<raunov>
quite scary indeed
<tilpner>
All other solutions require you to call a generated script, which is easily done with a shell alias
<tilpner>
But that adds more components to the system, and that's why I use this approach on my server, to keep it as simple as possible
<raunov>
basically i could symlink it from store also ?
<raunov>
or that's also forbidden
<tilpner>
It won't blow up unless you touch dotfiles-activation, which has worked fine for some months here
<tilpner>
Yes, you can import to the store, then symlink from there, or you can symlink from a path outside the store
<tilpner>
And the example also shows how to use pkgs.writeText to a custom place
<raunov>
okay, i'd try first that approach
<raunov>
but any idea why the regular writeText fails for permissions ?
* raunov
copied error above
<tilpner>
Sorry, no idea just from that error line. Maybe with a little bit more context
<goibhniu>
BTW raunov, you can symlink to a path in /var/run/current-system/sw/ or ~/.nix-profile/ instead of symlinking directly to a path in the store (which would be garbage collected)
arianvp2 has quit [(Quit: arianvp2)]
<tilpner>
postInstall is usally inline text, not a file. That doesn't explain your error message, but might indicate that you're using it oddly/wrong
orivej has quit [(Read error: Connection reset by peer)]
orivej has joined #nixos
simukis has quit [(Read error: Connection reset by peer)]
aminechikhaoui has joined #nixos
<magnetophon1>
I'm sure this is a FAQ, but idk how to google it: where do I find the status of the unstable channel updates? As in what is holding back https://nixos.org/channels/nixos-unstable from being updated?
<Fare>
can I copy things to $out during the build phase? I'd like to copy all the sources plus a few output files, but if I copy in the installPhase, I need to manually filter out a lot of intermediate files
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vQCzw
<NixOS_GitHub>
nixpkgs/master 8de4530 Domen Kožar: Add static binary for stack2nix
NixOS_GitHub has left #nixos []
<jabranham>
So I'm looking at using NixOS as my primary OS for a while but have a few questions that I couldn't find an answer for: I like Arch's rolling model. Is the unstable channel similar to this? And can I search this somewhere? And how unstable is it, exactly? Should I expect major breakage or just minor stuff?
tv has quit [(Quit: WeeChat 1.8)]
FRidh has quit [(Quit: Konversation terminated!)]
<goibhniu>
hi jabranham, the unstable channel is fine to use day-to-day (I've been using it many years), if something breaks you can always roll back to an earlier generation anyway
<goibhniu>
however, you don't get security updates as soon as you do with a release channel
ThatDocsLady is now known as ThatDocsLady_afk
<goibhniu>
it's not as fresh as arch, because a new channel isn't created until a range of tests pass ... sometimes this can take quite a while
magnetophon1 has joined #nixos
<jabranham>
So the security updates are also delayed until those tests pass?
<goibhniu>
you can also mix channels i.e. use a stable channel for most of your system, but unstable for particular things you care about
<goibhniu>
yep
ebzzry has quit [(Ping timeout: 260 seconds)]
marsel has quit [(Ping timeout: 240 seconds)]
arianvp2 has quit [(Quit: arianvp2)]
<jabranham>
Oh, that's cool. I didn't know that. Is there somewhere I can browse what packages are available on unstable?
<goibhniu>
I don't think so, other than searching the repo
<goibhniu>
you can search the build farm too
aminechikhaoui has quit [(Ping timeout: 260 seconds)]
<Mic92>
jabranham: a while means 1-2 days
<Mic92>
archlinux has also a staging, which would be similar
<goibhniu>
well, nixos-unstable hasn't updated in 10 days
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vQCae
<NixOS_GitHub>
nixpkgs/master 5015dea Domen Kožar: stack2nix: depend on stack binary as well
NixOS_GitHub has left #nixos []
<jabranham>
OK, so I found the commit that upgraded Emacs from 25.1 to 25.2. It happened on April 22nd. So I can then infer that 1) NixOS 17.03 still has 25.1 (since April is after March) and 2) 25.2 is available on unstable since the latest unstable build is later than April. Is that right?
<gchristensen>
Sonarpulse: I mean there are real problems
<gchristensen>
manual.xml:400 has an error ... manual.xml is only 10 lines long and validates! actual error is hidden elsewhere
<Sonarpulse>
yes that is bad
<goibhniu>
thanks tilpner!
<Sonarpulse>
docbook just appeases whatever OCD I have
mudri has quit [(Ping timeout: 258 seconds)]
<gchristensen>
Sonarpulse: I've split up the xinclude and the validation in to two phases, so you can keep the xincluded version and see the validation errors
<Sonarpulse>
oh, nice!
<gchristensen>
outputs "big.xml:116:60: error: element "chapter" not allowed here; expected the element end-tag, text or element "abbrev", "accel", "acronym", "address", "alt", "anchor",..."
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQCoW
<NixOS_GitHub>
nixpkgs/master 855c1bd Jörg Thalheim: suid-chroot: do not set suid bit during install...
NixOS_GitHub has left #nixos []
<Sonarpulse>
I had to do a --keep-failed and fish it out
<Sonarpulse>
that's much better
<gchristensen>
I'll clean up my changes and PR them separately from my bigger chang
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vQCoE
<NixOS_GitHub>
nixpkgs/release-17.03 a10cbbd Jörg Thalheim: suid-chroot: do not set suid bit during install...
NixOS_GitHub has left #nixos []
<gchristensen>
which is I've made automatic how-to-install docs based on the installer tests
<Sonarpulse>
looking forward to it!
<Sonarpulse>
and wow! that's really neat
<gchristensen>
:) I've got a bit more work to make those good, but yeah, I think it'll be cool
wak-work has quit [(Read error: Connection reset by peer)]
wak-work has joined #nixos
arianvp2 has joined #nixos
orivej has joined #nixos
<Mic92>
gchristensen: nixpkgs/doc already uses a java based application
jabranham has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
Neo-- has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
<gchristensen>
Mic92: which one?
<Mic92>
gchristensen: jing
<Mic92>
this docbook/xslt stuff feels weired.
<gchristensen>
jing is exactly what I want to use, xmllint emits really bad error info
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
arianvp2 has quit [(Quit: arianvp2)]
roconnor has joined #nixos
cpennington has quit [(Read error: Connection reset by peer)]
ryanartecona has joined #nixos
cpennington has joined #nixos
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
Ralith_ has quit [(Ping timeout: 240 seconds)]
<tilpner>
How would I import every Nix expression in a directory into an array/a list?
Ralith_ has joined #nixos
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
hotfuzz has joined #nixos
<Mic92>
tilpner: take a look at lib/sources.nix
hotfuzz has quit [(Client Quit)]
arianvp2 has joined #nixos
jensens has quit [(Ping timeout: 240 seconds)]
<Mic92>
basically readdir
<Mic92>
builtins.readDir
<tilpner>
Are all builtins implemented in C++/Perl?
<clever>
c++
<tilpner>
Thanks, readdir looks good, filterSource will be useful too
<simpson>
ixxie: It makes sense to want to use nixops/disnix to deploy a mesos/openstack/k8s platform base, sure. I don't know if there's anything like that, though.
mudri has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
<ixxie>
but in a way it seems disnix and mesos both serve a similar function
<sphalerite>
qknight: Again, I disagree re submitting patches to the mailing list making more work. The material work in reviewing a PR is the actual review — whether you're typing some text on github or typing some text in your mail client doesn't really make much of a difference… As for actually merging them, some people don't seem to have a problem with running git am <file> rather than clicking a button on gi
<sphalerite>
thub ¯\_(ツ)_/¯
erasmas has quit [(Remote host closed the connection)]
erasmas has joined #nixos
erictapen has joined #nixos
jgertm has joined #nixos
pietranera has quit [(Quit: Leaving.)]
<erictapen>
Hello everyone, I'm set up a nixos user service and then changed and updated it via nixos-rebuild. How do I reload the service without rebooting? When I run systemctl --user status myservice.service, I get the old one.
<erictapen>
this is probably more of a systemd issue than a nixos one
<sphalerite>
erictapen: did you use nixos-rebuild switch?
phinxy has joined #nixos
<erictapen>
sphalerite: yes, I used the short form but I meant nr switch
<sphalerite>
modified services should get restarted by the configuration switch unless they have a specific flag that stops that from happening
<bennofs>
sphalerite: the thing that becomes hard on a ML imo is revision management. someone recently posted 4 patches to systemd-dev (like Patch V1 patch v2 patch v3 and patch v4) and I found it really hard to follow which is the current versions etc
<erictapen>
sphalerite: I think the special thing is, that these are user services
<erictapen>
from nixos-rebuild switch output I can see, that the service files get rebuild. But the services are not restarted
<Thra11>
Hello, I'm looking to install NixOS on an Odroid XU4. I have found this guide from feb 2016: https://lastlog.de/blog/posts/odroid_xu4_with_nixos.html Have there been any significant changes since then or should I just follow the instructions as they are?
<sphalerite>
erictapen: oh right, I missed that. I didn't even know those can be specified in the system config. My guess is that you would need to restart your session, but maybe just doing systemctl --user --daemon-reload would do the trick
<pbogdan>
erictapen: iirc for user services systemd needs to be reloaded to pick up any changes
<sphalerite>
Otherwise maybe you can restart systemd without ending your session
<bennofs>
systemctl --user daemon-reload reloads the daemon
<erictapen>
systemctl --user daemon-reload did the trick. Thanks alot!
erasmas has quit [(Remote host closed the connection)]
<sphalerite>
Great, good to know for my own purposes as well :)
mudri has quit [(Ping timeout: 240 seconds)]
<erictapen>
I have no clue of systemd, but would'nt systemctl --user daemon-reload be a nice part of nixos-rebuild switch? At the moment I had a short moment of confusion, because neither the old service was restarted nor it was updated at all. Took me while to notice, that my small change did'nt got into the service.
<sphalerite>
erictapen: potentially, but I imagine there are some caveats related to how it needs to run as the users in question
ris has quit [(Ping timeout: 240 seconds)]
erictapen2 has joined #nixos
<erictapen2>
sphalerite: Do you mean, that nixos-rebuild does'nt know anything about current sessions?
<sphalerite>
Well the switch-to-configuration script runs outside the context of nix. It doesn't know about current sessions in its current form afaik, but there's nothing preventing it from doing so, I think
erictapen has quit [(Read error: Connection reset by peer)]
mudri has joined #nixos
erictapen2 has quit [(Remote host closed the connection)]
taktoa has joined #nixos
erictapen2 has joined #nixos
ambro718 has quit [(Ping timeout: 246 seconds)]
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
erictapentest has joined #nixos
bugworm has joined #nixos
simukis has joined #nixos
<erictapen2>
spalerite: okay that sounds like it's not easy to implement.
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
orivej has quit [(Ping timeout: 260 seconds)]
Thra11 has quit [(Read error: Connection reset by peer)]
bennofs has quit [(Quit: WeeChat 1.8)]
Thra11 has joined #nixos
jonte has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vQWef
<NixOS_GitHub>
nixpkgs/master 64ff2e2 Vincent Laporte: ocamlPackages.mtime: 0.8.3 -> 0.8.4, 1.1.0
<NixOS_GitHub>
nixpkgs/master 607650a Vincent Laporte: ocamlPackages.ptime: 0.8.2 -> 0.8.3
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
bugworm has quit [(Quit: Konversation terminated!)]
mudri has quit [(Ping timeout: 240 seconds)]
Guest4168 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vQWvq
<NixOS_GitHub>
nixpkgs/master 2014db3 Vladimír Čunát: nixos xkb-layouts-exist: try to debug on Hydra...
NixOS_GitHub has left #nixos []
<Mic92>
Thra11: better to ask qknight itself
<Mic92>
he is in the channel
erictapen2 has quit [(Quit: Leaving)]
erictapentest has quit [(Remote host closed the connection)]
<Infinisil>
Well, what can one do when the cache is down? I would totally build all the stuff myself from the local nixpkgs, but I don't know how one can do that
<joachifm>
Infinisil: how do you mean?
<Infinisil>
Well the cache is just a cache, it's supposed to be there so you don't have to build everything yourself. But you should be able to turn that off, so it actually build everything locally
<Infinisil>
s/build/builds
<joachifm>
Infinisil: you can do that, but why?
<Infinisil>
joachifm: Because it's super slow for me for some reason
<joachifm>
Infinisil: oh, now I get what you mean
<Infinisil>
joachifm: Does it work for you?
<roconnor_>
Infinisil: nixos or nix?
<Infinisil>
cache.nixos.org
<roconnor_>
I mean are you doing a nixos-rebuild or nix-env or nix-build?
<joachifm>
Infinisil: cache is plenty fast on my end. perhaps amazon is slow closer to you
<Infinisil>
I'm doing a nix-shell
<Infinisil>
Takes forever to download bootstrap tools
<LnL>
but replace <nixpkgs-unstable> with your drv
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
erasmas has quit [(Client Quit)]
<Infinisil>
LnL: Ohhhhhhh, I thought it wasn't possible because import requires the thing at build time, does builtins.fetchTarball run before everything else so the downloaded expression can be properly imported?
hotfuzz has joined #nixos
<Infinisil>
I recently wanted that, but couldn't figure out how to do it and ended up concluding it's impossible. I even used this trick in my configuration.nix but didn't think of it
<LnL>
yes, import will cause it to get evaluated so it will create the paths first
<sphalerite>
it's possible, just discouraged because it results in evaluation getting blocked by builds
<sphalerite>
A big no-no in nixpkgs, but for your own stuff it may well make sense
<LnL>
we just don't allow this in nixpkgs
<LnL>
since it could cause the expressions to change without any changes in the repo
<Infinisil>
Yeah makes sense
katyucha has joined #nixos
<Infinisil>
I'm a bit confused regarding nativeBuildInputs/buildInputs/propagatedBuildInputs and propagatedNativeBuildInputs
<LnL>
the install section glances over that part pretty quickly
oida has quit [(Ping timeout: 260 seconds)]
<ixxie>
Infinisil: assumed is that the git repo and its nix files would follow a predefined structure
<LnL>
Coyin: there's probably a nicer way but I usually do this: sgdisk -a1 -n2:34:2047 -t2:EF02 /dev/foo
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #26938: coreutils: skip tests that fail due to setgid usage (master...fix/perms-fallout-coreutils) https://git.io/vQWCG
NixOS_GitHub has left #nixos []
<Coyin>
LnL even if i create one partion ext4 mounted on /boot and another one for root ?
<LnL>
are you using legacy or efi?
snikkers has joined #nixos
<Infinisil>
ixxie: Where was `stream` defined? I don't see it in your nix file
<Infinisil>
ixxie: You can't import a string, it needs to be a path
<clever>
Coyin: that is the first bullet point under "partition the disk" when it says the type must be ef02
<Infinisil>
ixxie: And because it needs to be a path you need to use builtins.fetchurl/fetchTarball if you want to something from outside
pie_ has quit [(Remote host closed the connection)]
pie__ has joined #nixos
<GetalMear>
Hello. I have one of those "nix-shell + Python" questions. I use `nix-shell -p` with a number of python27Packages and `--run` a shell script that, in turn, calls `python` from whatever the ${PATH} is at that moment, which then fails with an ImportError. Is it possible to make python-called-from-a-shell-script-run-from-nix-shell behave like python-run-from-nix-shell? Or should it work and I'm doing it wrong?
<Infinisil>
ixxie: And because fetchurl/tarball takes a path as well, you can't use a string, aka you can't expand variables
<manveru>
Infinisil: you can use toPath, no?
<sphalerite>
GetalMear: use python27.withPackages to get a python that has everything on the path
<Infinisil>
manveru: Oh maybe
<sphalerite>
GetalMear: so nix-shell -p 'python27.withPackages (ps: with ps; [django pygame whatever])'
<Coyin>
thanks for all clever , LnL
<Infinisil>
manveru: Yeah that might actually work
magnetophon1 has joined #nixos
<GetalMear>
sphalerite: Interesting. I'll give that a try. You learn something new every day...
<srhb>
In the category of interesting things I haven't seen before: If you forget you did sudo login in an xterm to test something out and try to show a movie with vlc, you 1) get dropped to a console 2) vlc has some sort of ascii renderer running in the xterm
<Infinisil>
manveru: Oh, maybe not, that function only works with absolute existing paths
<srhb>
I understand how 2) works, but 1) is truly mysterious
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aristidb pushed 1 new commit to master: https://git.io/vQWl4
<clever>
srhb: this gist shows where every variable setting winds up, and how they chain together
<sphalerite>
clever: will it be a login shell? And that requires sudo :p
<srhb>
Thank you both, I've learned something new. :)
<Infinisil>
manveru: pkgs.fetchurl is at build-time though, can't import nix expressions from there
<clever>
Infinisil: import from derivation
<manveru>
you can with import
<manveru>
i do it all the time to import nixpkgs :)
<clever>
Infinisil: import (fetchzip .... ) will load the default.nix in whatever it just unpacked
pie__ has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill closed pull request #26938: coreutils: skip tests that fail due to setgid usage (master...fix/perms-fallout-coreutils) https://git.io/vQWCG
NixOS_GitHub has left #nixos []
<clever>
sphalerite: i think it makes an interactive shell, not a login shell
<ixxie>
Infinisil: I see, a typing error
<ixxie>
ill try and see if I can work with paths instead
mkoenig_ has quit [(Ping timeout: 240 seconds)]
<ixxie>
but fetchgit returns what kind of value?
<sphalerite>
clever: I think srhb might have wanted a login shell specifically. Just a guess though
<clever>
ixxie: all derivations return a string pointing into the store
<Infinisil>
clever manveru: But does somethnig like `map (a: import (fetchzip https://example.com/${a})) items` work?
<clever>
ixxie: and import can take strings pointing to a local path
<Infinisil>
clever manveru: Because that's what ixxie needs
<clever>
Infinisil: i would instead do map (a: import (fetchzip "https://example.com/${a}")) items, and thats not fixed-output, so its impure
<Infinisil>
clever: I don't have a way to test this, but are you sure this works? nix needs to build the whole expression before it can start the build, but it can't do that because the import requires the nix expression to be evaluated, so it's circular dependency
<clever>
Infinisil: import from derivation will download those things at eval time, and then import the result
<clever>
as long as the value of items doesnt depend on the result of map, its not circular
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #26939: Fixup various setuid/setgid permission problems, part 2 (master...fix/perms-fallout-misc-2) https://git.io/vQW4l
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
<ixxie>
uuurg keep getting those errors about coersing function to string
<clever>
ixxie: can you gist your code and the error?
<LnL>
dont forget to call the imported nixpkgs with {}
<clever>
ixxie: line 17 makes mention of the dbus.service file
<Infinisil>
clever: Well, I could try with tarballs
<clever>
ixxie: line 46 mentions the unitConfig, that eventualy lands into the service file
<Infinisil>
Hold on, I'll just put some on the server
<clever>
ixxie: and line 84 mentions the pkgs attribute of the system-path derivation, which is responsible for merging all of systemPackages up
<clever>
ixxie: so you can safely ignore lines 1-84 in this example
<clever>
ixxie: do you have another trace i can explain?
<Infinisil>
clever: Nah, tarballs don't work either
<Infinisil>
same error
<ixxie>
clever: from this I will take home the message that its better to start at the end of the error log xD
<ixxie>
but what I was really looking for is a way to trace things which emphasizes the nix expression I am working on rather than the locations of stuff it calls
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
<GetalMear>
Sorry. It's actually the third shell.nix example
<GetalMear>
It may be blindingly easy (maybe just append), or I may need to use other syntax.
<ixxie>
anyway, I guess I will continue this tomorrow; thanks for all the help - clever, Infinisil, LnL
<Infinisil>
ixxie: See ya!
<GetalMear>
In other words, do I write (pkgs.PACKAGE0 pkgs.PACKAGE1 pkgs.PACKAGE2).env or what? :)
ixxie has quit [(Quit: Lost terminal)]
<Infinisil>
GetalMear: Hmm, I'll have a try on that
isidore has quit [(Quit: WeeChat 1.9)]
<Mic92>
GetalMear: what is your current state?
<GetalMear>
Mic92: Interesting question. I doubt you want to hear all of it.
<GetalMear>
Mic92: Right now I'm trying to create a shell.nix that includes a few Python dependencies and a few non-Python dependencies. One the former, one isn't in nixpkgs.
<Sonarpulse>
gchristensen: looks great, and well described!
<gchristensen>
:d
<GetalMear>
Infinisil: Does this mean that I need to construct a new derivation as soon as I have more than two expressions that I want in my nix-shell?
<GetalMear>
Infinisil: Because you can just list many of them after `-p`
<Infinisil>
GetalMear: the python withPackages thing also creates a new derivation already, pretty much everything in nix is a derivation
<sphalerite>
Anyone know anything about laptop trackpads not working?
<Mic92>
GetalMear: nix-shell will take the dependencies of a derivation
<GetalMear>
Infinisil: I can't say I understand why this requires stdenv.mkDerivation and the other doesn't.
<sphalerite>
I'm getting output when I touch it from od /dev/input/event6, so it's not dead or anything, but moving it doesn't do anything in X
<Infinisil>
GetalMear: The python withPackages thing maybe does some things that python works nicely todegther, but you could just list all of the stuff you need: buildInputs = [ hello pythonPackages.<foo> pythonPackages.<bar> ]
simukis has quit [(Quit: simukis)]
<Infinisil>
GetalMear: The python withPackages already is a derivation, but mkDerivation is needed when you need more than that
<Infinisil>
Or withPackages... *.env* is a derivation to be exact
<GetalMear>
Infinisil: Maybe. I was under the impression that just using python27Packages is not sufficient when you don't call python immediately, but in a shell script which then calls python. But I guess I may have misunderstood.
freezeboy has quit [(Quit: Konversation terminated!)]
<gchristensen>
Sonarpulse: who shuold I CC on that ticket do you think?
<Sonarpulse>
gchristensen: hmm
<Sonarpulse>
not really sure
<Infinisil>
GetalMear: I'm not sure, but nix-shell -p <foo> <bar> <baz> is only enough for simple stuff, a nix file is preferred for more complex stuff
<Sonarpulse>
eelco?
<Sonarpulse>
I can't think of anyone who really "owns" the manual
riclima has joined #nixos
<gchristensen>
yeah, I feel bad for pinging eelco too much :P
<Infinisil>
Anybody here planning on going to NixCon17?
<sphalerite>
me!
snikkers has joined #nixos
riclima has quit [(Client Quit)]
<Infinisil>
Oh and I see gchristensen is doing a speech :D
Guest53073 has quit [(Quit: Lost terminal)]
<GetalMear>
Infinisil: So does this mean that .env is unnecessary?
<Infinisil>
GetalMear: You may have to check the source, maybe
<gchristensen>
Infinisil: :)
justelex has joined #nixos
<Infinisil>
Well, a nix-shell actually only has the dependencies (aka the env.) but doesn't build the derivation itself
<Infinisil>
sphalerite gchristensen: I'm thinking about going to NixCon, but I'm generally very antisocial and don't do very much except sitting at home :P
<Infinisil>
So mehhh
<gchristensen>
same tbh
<clever>
same
<Infinisil>
gchristensen: Well I guess it's kinda the same demographic, so maybe
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #26941: certstrap: init at 1.0.1 (master...certstrap-1.0.1) https://git.io/vQWw6
NixOS_GitHub has left #nixos []
<gchristensen>
though I'd like to pull the doublepitty card in that I don't even know the local language
Mateon3 has joined #nixos
<Infinisil>
gchristensen: I do :) Coming from Switzerland
<Infinisil>
Would even be only a 4 hour train ride
<LnL>
gchristensen: are you also going?
<gchristensen>
yeah
<LnL>
same, most likely :)
<gchristensen>
awesome!
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
<sphalerite>
I'll have to fly but I don't want to miss it :D
<Infinisil>
Where do you come from LnL gchristensen and sphalerite ?
<sphalerite>
Hard to say where I come from, but I live in Glasgow
<gchristensen>
eastern USUA
<sphalerite>
(I come from all over Western Europe)
<gchristensen>
USA* (damn keyboard)
<LnL>
I live in belgium, ghent
<Infinisil>
Nice nice
apeyroux has quit [(Quit: leaving)]
_ris has quit [(Read error: Connection reset by peer)]
ris has joined #nixos
apeyroux has joined #nixos
<apeyroux>
hello
<Infinisil>
apeyroux: Good evening
ambro718 has joined #nixos
ryanartecona has joined #nixos
ris has quit [(Client Quit)]
_ris has joined #nixos
riclima has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
justbeingglad has joined #nixos
<gchristensen>
is 0xABAB here?
<gchristensen>
they keep leaving github reviews rejecting my changes saying "read my comments" without leaving any comments
phreedom has joined #nixos
<Infinisil>
gchristensen: Do they specifically mention IRC comments?
<gchristensen>
no
<Infinisil>
But also don't leave comments in the PR?
<Infinisil>
gchristensen: Well, I guess they messed up somehow
<gchristensen>
Infinisil: do you see them?
<Infinisil>
gchristensen: Nope
<Infinisil>
Nice PR btw :)
<gchristensen>
thank you:)
riclima has quit [(Max SendQ exceeded)]
justbeingglad has left #nixos []
boj has quit [(Quit: byte byte)]
<sphalerite>
I'm making a USB stick to boot into my presentation tomorrow because I anticipate difficulties :|
riclima has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
mudri has joined #nixos
<Infinisil>
sphalerite: I don't know if that gives fewer problems, are you sure you can boot from usb?
<sphalerite>
Infinisil: I can on my flatmate's old laptop (and I can't mess around with the windows installation on it)
<sphalerite>
Infinisil: the main problem being that my laptop doesn't output VGA
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<Infinisil>
sphalerite: Ah I see, well that should work perfectly then :)
<Infinisil>
When somebody sees nixos running on my laptop I almost feel bad saying nixos, because it looks kinda ugly right now and nixos' beauty is invisible to outsiders
hellrazo1 has joined #nixos
<Infinisil>
Because a lot of people seem to think that on OS defined what it looks like
<Infinisil>
s/on/an
hiratara has quit [(Ping timeout: 246 seconds)]
<Infinisil>
Wait no, correct to "looks define the OS"
<sphalerite>
Infinisil: I'm booting straight into my presentation, how's that for awesome :p
<Infinisil>
sphalerite: With a command running at startup? Or into a presentationOS??
<sphalerite>
Infinisil: services.xserver.displayManager.auto + an activationScript that links the presentation-starting script to /home/bob/.xsession
hiratara has joined #nixos
riclima has quit [(Ping timeout: 240 seconds)]
<Infinisil>
sphalerite: Nice :)
<sphalerite>
the only thing I still need to do manually is place all the windows where they're meant to be (I have three, as shown in the video I linked earlier)
<sphalerite>
hm, the wifi also isn't autoconnecting
<Infinisil>
sphalerite: Did you put the correct stuff in /etc/wpa_configuration?
<sphalerite>
Infinisil: I set networking.wireless = {enable = true; networks = {ssid.psk = "psk goes here"};};
ryanartecona has quit [(Quit: ryanartecona)]
<dtzWill>
presentation unikernels
<dtzWill>
containers per slide for maximum security
<dtzWill>
powerpoint: the microkernel
mkoenig has joined #nixos
<sphalerite>
haha
<sphalerite>
actually it's mupdf and I made a hacky little remote control server so I can control it from my phone, but basically yeah
<sphalerite>
and the "unikernel" runs on bare metal without a hypervisor
<sphalerite>
it's also 477MB which I think is still quite a lot. I could probably strip a fair bit of that out
<Infinisil>
sphalerite: Ah
bennofs has joined #nixos
<Infinisil>
Maybe at some point in the future, you could just have your requirements (e.g. need to run presentation, needs wifi, ...) and map that to an OS that has only exacly what is needed to do that
<sphalerite>
well that's what I'm doing, more or less
<Infinisil>
sphalerite: But you're still using nixos?
<sphalerite>
the only part that's amiss is that I'm dragging the rest of the stuff in the minimal nixos installer image with it
<dtzWill>
boot2pdf
<sphalerite>
yep
<Infinisil>
sphalerite: Yeah that's what I mean, not a full os that can do all sorts of stuff, just an OS that as soon as it starts does the presentation
<Infinisil>
No user/kernel land needed
<Infinisil>
no threading needed
<Infinisil>
(well maybe 1 for user input)
<sphalerite>
So a real minimal unikernel
<Infinisil>
Yeah
<sphalerite>
handling modern hardware needs threads too, I'm fairly sure
<Infinisil>
like optimize it to hell, only including the functions that get aclled
<sphalerite>
ld mupdf.a linux.a
<sphalerite>
why is there no systemd unit for wpa_supplicant even though I set networking.wireless.enable = true? :(
proteusguy has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #26942: mendeley: ignore errors attempting to install link handler on startup (master...fix/mendeley-ignore-handler-errors) https://git.io/vQWXo
NixOS_GitHub has left #nixos []
<Infinisil>
LnL: Perl does seem pretty important though
<Infinisil>
But I guess it doesn't necessarily have to be included in minimal
<sphalerite>
Infinisil: got it, it's the installer config which makes the services not wanted by anything (nixos/modules/profiles/installation-device.nix)
<LnL>
it's just a bunch of example contrib scripts
<Infinisil>
LnL: Well actually the website mentions only that "The minimal installation CD does not contain X11"
<Infinisil>
That's what we're talking about right?
<Infinisil>
The minimal installation CD
<Infinisil>
But I guess minimal should probably more like "it runs, but if you want anything at all you need to install it"
<Infinisil>
be*
<sphalerite>
I don't think the minimal installation CD includes git at all, minimal or not
<LnL>
no, just pkgs.gitMinimal
<sphalerite>
gitMinimal is for fetchgit, no?
<Infinisil>
Didn't know about gitMinimal
<sphalerite>
It wouldn't have made sense to remove its dependency on perl back when nix depended on perl too, but now it might be nice
eacameron has quit [(Remote host closed the connection)]
<LnL>
yeah sure
eacameron has joined #nixos
<Infinisil>
from all-packages: gitMininmal is git overriden with { withManual = false; pythonSupport = false; }
Neo-- has quit [(Remote host closed the connection)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<LnL>
so it looks like gitMinimal still has some stuff enabled like sendEmailSupport
Neo-- has joined #nixos
<GetalMear>
Question: I want to define dependencies in buildPythonPackage via propagatedBuildInputs. If I start like "propagatedBuildInputs = with self; [ whatever ];" then nix complains that the "Self" interpreter does not build on macOS - so "self" was interpreted as a package name. However, if I leave it off, then it doesn't find my Python dependency either
<LnL>
and svnSupport
mellowmaroon has joined #nixos
<mellowmaroon>
can someone tell me how I can put Rust from the Mozilla overlay into configuration.nix?
<Infinisil>
git has svn support? WHAT? And why does git need python??
<mellowmaroon>
Infinisil: I know you can do `git svn`, not 100% what it does though
<Infinisil>
GetalMear: What is self? Don't you want something like with pythonPackages? or with pkgs.pythonPackages?
<mellowmaroon>
Infinisil: And dunno about python, but I'm pretty sure it depends on perl
<clever>
Infinisil: "git svn" will download every commit from an svn repo, and create a local git commit that applies the same changes
<clever>
Infinisil: you can then work locally using normal git
<clever>
but when you push it back to the svn repo, it will rewrite the git commits to match the format used by "git svn", and also flatten the history out (no more branching and merging history)
<anelson>
hi guys, anyone here familiar with wine?
hiratara has joined #nixos
<Infinisil>
clever: I see
<anelson>
I'm wondering why the default even on 64 bit systems is "wineWow" which (idk what it is) but it seems to be 32-bit
<Infinisil>
Well I thought so, but it's weird to see
<clever>
Infinisil: i only ever use it to do one-time conversion from svn to git, but i have seen others use it to work full-time on svn based projects
<anelson>
and actually, that default is overridden in the top-level definition to default to wine32 regardless of architecture
<anelson>
is wine64 unstable or something?
<clever>
i'm guessing its because its flagged as unstable
<clever>
some things like .net i think, just dont work in the 64bit wine
ambro718 has quit [(Ping timeout: 260 seconds)]
<mellowmaroon>
anelson: I used to have separate WINEPREFIXes for 32 and 64 bit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQWMd
<NixOS_GitHub>
nixpkgs/master 8797e3e Volth: certstrap: init at 1.0.1
<clever>
thats because you had multiple things in systemPackages, that all provide rustc
<clever>
it doesnt know which rustc to use
<mellowmaroon>
clever: oh, about rustc. Let me check that speficically
riclima has joined #nixos
<mellowmaroon>
clever: ...no mention of rustc in it :\
<mellowmaroon>
clever: I do see rustfmt and cargo here though
<clever>
not sure then
<mellowmaroon>
and if I don't install compilers globally, how do I keep it in the store? I dont want to have to redownload them each time I need it
goibhniu has quit [(Ping timeout: 276 seconds)]
<clever>
nix-build -A rust.rustc -o rustc-root
<clever>
as long as the rustc-root symlink remains, it cant be GC'd
<clever>
and you can nix-shell -p rust.rustc to open a shell with that
<Infinisil>
clever: OH that's nice
<Fare>
how do I prefer stdenv from removing doc/ from my $out/ ?
<mellowmaroon>
clever: if I only put rustc/cargo again, it gives the 'cannot coerce a set to a string' again, same location
<GetalMear>
Question: In shell.nix, after defining a new library via buildPythonPackage, is there a simple way to make some other library that already exists in Nixpkgs depend on the new library instead?
<GetalMear>
Can I override a dependency?
* Fare
tries forceShare = [ ];
<clever>
mellowmaroon: without more context, i cant really see why its doing that again
<mellowmaroon>
clever: :( oh well. thanks for the help anyhow!
<GetalMear>
Or do I need to copy the whole buildPythonPackage of the existing package and only change propagatedBuildInputs?
<clever>
GetalMear: overrideAttrs lets you change any attribute in the derivation
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
dalaing_ has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vQW5x
<NixOS_GitHub>
nixpkgs/master b0a4c2c Graham Christensen: nixos: installer.nix test: test ZFS install use case
<NixOS_GitHub>
nixpkgs/master 425e9ce Graham Christensen: Merge pull request #26917 from grahamc/zfs-installer-test...
NixOS_GitHub has left #nixos []
riclima has joined #nixos
dalaing_ has joined #nixos
<GetalMear>
clever: The documentation seems to say it only works with stdenv.mkDerivation, or is that wrong?
markus1209 has joined #nixos
<GetalMear>
Or is buildPythonPackage really stdenv.mkDerivation behind the scenes?
markus1219 has joined #nixos
<clever>
GetalMear: nearly everything in nixpkgs calls stdenv.mkDerivation
<mellowmaroon>
clever: Is there some way I can have compilers available on the system globally? I'd rather not have to do `nix-build` per user/project just to keep it around
<clever>
GetalMear: yeah, buildPythonPackage leads to python.stdenv.mkDerivation
<clever>
mellowmaroon: the issue, is that each project may want a different version, and now you have to rebuild the entire system to change it
<clever>
mellowmaroon: its better to just GC less, and use nix-shell everywhere
<mellowmaroon>
clever: Makes sense :) thanks
aneeshusa has quit [(Quit: WeeChat 1.9)]
dalaing_ has quit [(Ping timeout: 260 seconds)]
ebzzry has quit [(Ping timeout: 255 seconds)]
dalaing_ has joined #nixos
mellowmaroon has quit [(Quit: Leaving)]
<Infinisil>
Hey clever, you probably know this, what exactly is /nix/var/nix/profiles/default ?
<clever>
Infinisil: everything managed by nix-env as root
<Infinisil>
Ohhh, hold on
ebzzry has joined #nixos
<Infinisil>
Ohh yeah that was it!
<Infinisil>
I also got 1.17 when rustc --version
<Infinisil>
Because I installed it with sudo nix-env -iA