<gchristensen>
oh cool, I used to live off 38th street
<gchristensen>
hmm when you reboot, /boot is not mounted?
* samueldr
looks at log
<growpotkin>
gchristensen: Dude I literally lived on 38 1/2 in 2011 haha
<samueldr>
isn't that the issue for another user?
<growpotkin>
gchristensen: we were probably neighbors
<samueldr>
unless growpotkin is camsbury?
<growpotkin>
gchristensen: I just added my `configuration.nix` to the gist as well.
<samueldr>
(/boot shouldn't change anything with regards to pulseaudio)
<gchristensen>
samueldr: I assumed it must be the same person :P
<gchristensen>
growpotkin: I miss the pazole at avenue b grocery so bad ;_;
<gchristensen>
growpotkin: wait. what issueare you having?
<gchristensen>
seems we got mixed up perhaps
<growpotkin>
gchristensen: YES I loved that spot. There was that kind of odd vietnamese BBQ burger joint near there too that I miss. Sadly they shut down when I moved back
<growpotkin>
gchristensen: I'm having 2 issues related to Brave and 1 with chrome
kvda has joined #nixos
<growpotkin>
gchristensen: Both will just randomly lock up in what seems like a graphical failure and require `pkill` to reset them
<gchristensen>
ah, sorry I was trying to help with a boot problem :)
<growpotkin>
gchristensen: and Brave can't be detected by Pulse Audio, and will randomly get picked up on random audio devices sometimes, and other times will just not have audio at all
<scott>
unfortunately, the newest nix i can see in the store is 2.1.3 and it also complains that the DB is too new. it's weird that i don't have one new enough... i don't know how the system got into this state
<cbarrett>
nice user name btw, ol' peter would approve
<growpotkin>
cbarrett: Petr is the boy!
<growpotkin>
haha
<growpotkin>
cbarrett: I'm just installing spacemacs for the first time on NixOS and thought I would check in to see about any NixOS specific caveats I should be aware of.
<growpotkin>
cbarrett: I'm
<growpotkin>
cbarrett: I'm a vim user but I've been playing with emacs and evil for the last two weeks, I wanted to try out spacemacs now
<cbarrett>
None that I'm aware of but I'm primarily a nix on darwin user
<growpotkin>
cbarrett: I'm assuming we have some weird "gotchas" per usual on nixos haha
<cbarrett>
user pxc comes in here might know
<growpotkin>
cbarrett: did you just install by cloning to .emacs.d and just use spacemacs itself to install everything?
<cbarrett>
Yes
<growpotkin>
cbarrett: This is actually unbelievable to me.
<growpotkin>
cbarrett: do you mean to say that we have something on NixOS that does not require some bizarre wrapper and a 5 page Manual entry? lol
<cbarrett>
try the develop branch
<growpotkin>
cbarrett: This is a first
o1lo01ol1o has joined #nixos
<growpotkin>
cbarrett: thanks for the tips comrade!
<cbarrett>
yw! pm me anytime
<cbarrett>
growpotkin: nice to meet you comrade
<growpotkin>
Ⓐ
o1lo01ol1o has quit [Ping timeout: 244 seconds]
nornagon4 has joined #nixos
nornagon has quit [Ping timeout: 245 seconds]
jluttine has joined #nixos
Miyu-chan has joined #nixos
growpotkin has quit [Quit: WeeChat 2.5]
lambda-11235 has quit [Quit: Bye]
growpotkin has joined #nixos
mexisme has joined #nixos
zfnmxt has quit [Quit: Bye!]
zfnmxt has joined #nixos
<{^_^}>
[nixpkgs] @carlosdagos opened pull request #63970 → sonobuoy: init at 0.15.0 → https://git.io/fjKI9
lambda-11235 has joined #nixos
dbmikus has joined #nixos
dbmikus has quit [Client Quit]
dbmikus has joined #nixos
day|flip has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjKLD
<ashkitten>
Failed to read server status: Process org.freedesktop.systemd1 exited with status 1
Supersonic has joined #nixos
lurpahi has quit [Quit: leaving]
freeman42x has quit [Ping timeout: 276 seconds]
wfranzini has quit [Remote host closed the connection]
<ashkitten>
is this possibly related to some sort of bug in lightdm? since a recent update i've had to input my username as well as password into the greeter as it doesn't show my user anymore
<worldofpeace>
ashkitten: what's the output of `/var/lib/AccountsService/users/$username` it could possibly contain SystemAccount=true I think causing that
wvwww has quit [Quit: Bye!]
<ashkitten>
nope
<ashkitten>
tho i did just rebuild the system after updating so it's possible it could have changed
zfnmxt_ has joined #nixos
<worldofpeace>
huh, sounds exactly like it would be that issue
sindrip has quit [Ping timeout: 260 seconds]
adamantium has quit [Remote host closed the connection]
wfranzini has quit [Read error: Connection reset by peer]
Moredread[m] has joined #nixos
<Moredread[m]>
How do I best format/create a patch for use in nixpkgs? I see some have "diff --git", but my source comes from a tarball.
gerschtli has quit [Quit: WeeChat 2.4]
gerschtli has joined #nixos
<clever>
Moredread[m]: i usually unpack the tar, copy the entire dir to something-orig, edit one copy, then `diff -ru something-orig something > foo.patch`
phreedom has quit [Quit: No Ping reply in 180 seconds.]
mniip has quit [Read error: Connection reset by peer]
bakakuna has joined #nixos
mniip has joined #nixos
<Taneb>
I'm writing a "how to use nix tools" cheat sheet for new starters at work. ANyone have ideas for things that could go on it that I may have forgotten?
<dminuoso>
Taneb: You have forgotten to share the link pointing at your WIP. :-P
<betaboon>
Taneb: usage of overlays, usage of several channels (eg using a package from unstable), usage of nix-shell with a custom default.nix
<aveltras>
Taneb: might be nice to talk about "nix search" and give "https://nixos.org/nixos/options.html" link, since it's very useful to know what is possible to configure
<Taneb>
dminuoso: "IP" is a bit rich right now
<dminuoso>
(Wouldn't want to guess what you do have on it already)
<etu>
Taneb: "man configuration.nix"
<dminuoso>
Oh yes. `man configuration.nix`
<dminuoso>
I second that.
<Taneb>
Sadly we don't use NixOS much at work (we depend on propreitary tools that barely support Ubuntu and would be a right pain to set up on NixOS)
<dminuoso>
Taneb: So just nix the package manager?
<Taneb>
dminuoso: yes
<dminuoso>
What's the scope? Tools for writing nix derivations/expressions?
<dminuoso>
Or just using nix for endusers?
<aveltras>
Taneb: might be nice to talk about direnv too if you're explaining development environments
<Taneb>
Mostly nix for end-users ("how our builds work") sort of thing, but a bit about writing derivations
<__monty__>
And if you talk direnv, lorri might be interesting too.
<aveltras>
__monty__: i didn't really get the use of lorri vs simple direnv, could you enlighten me please ? :)
<aveltras>
i think it's just a direnv cache automation but not even sure
<Taneb>
I think I'll provide a list of interesting things as further reading
<__monty__>
aveltras: It basically just runs in the background making things more efficient, the cache is one thing. Then there's managing roots for all your various nix-shells so they don't get garbage collected and updating all of them in the background when you update channels. Granted these features are mostly nice if you're impatient or you frequently have to work offline.
bakakuna has quit [Remote host closed the connection]
<__monty__>
aveltras: Except it doesn't run in the background so your shells aren't up-to-date if you update your channels but forget to visit the dirs of the projects you're working on.
<sgraf>
What's the status on multi-user Nix installs on Ubuntu? I realise there's a --daemon option to the install script, but running it won't add a nix profile for the current user... At least no symlinks from $HOME. Is this https://github.com/KaiHa/nix-debian the way to go?
Makaveli7 has joined #nixos
<Taneb>
sgraf: the installer works fine, in my experience. It puts stuff in /etc/profile.d so you may need to log out and back in again for things to take effect
hyper_ch2 has quit [Remote host closed the connection]
<sgraf>
Ah, makes sense... Although the installer just asked me to open a new console, which doesn't seem to work
<sgraf>
Taneb: Relogging seemed to work, but it seems my profile in ~/.nix-profile misses all kinds of subfolders...
<Taneb>
I'd imagine they're created as needed
<sgraf>
Or maybe it's related to the multi-user install: Where do I find what was previously ~/.nix-profile/etc/profile.d/nix.sh? Is there now just the global /etc/profile.d/nix.sh? I see that it only sourced from the default profile...
jomik has quit [Quit: WeeChat 2.4]
Ariakenom has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.4]
v88m has quit [Ping timeout: 272 seconds]
drakonis_ has joined #nixos
<aveltras>
how can i query the current value of a configuration key ? with the repl ? for example i'd like to know the current value of "services.gnome3.gnome-disks.enable"
<teto>
is that weird to have networkmanager running in the tests ? I created 2 multihomed machines and the kernel crashed but beforehand, I saw DHCP requests from a 10.0.2.2 server "server# [ 8.555212] dhclient[661]: DHCPACK of 10.0.2.15 from 10.0.2.2". I believe that comes from the tests but not sure where from ?
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
Drakonis has quit [Read error: Connection reset by peer]
Drakonis has joined #nixos
drakonis1 has quit [Ping timeout: 250 seconds]
<teto>
also I wonder if the kernel crashed is "normal" (a qemu fault) or something else. The stack trace links it to memory https://paste.ubuntu.com/p/DxPyDdr3wg/
<{^_^}>
[nixos-hardware] @Mic92 pushed to xps-13 « dell/xps/13-9380: also import intel profile »: https://git.io/fjKOT
<{^_^}>
[nixos-hardware] @Mic92 opened pull request #110 → dell/xps/13-9380: also import intel profile → https://git.io/fjKOk
o1lo01ol1o has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
kvaster has quit [Ping timeout: 248 seconds]
<ivan>
teto: either memory corruption or extreme memory pressure leading to insufficient contiguous memory
veske2 has quit [Quit: This computer has gone to sleep]
ottidmes has joined #nixos
o1lo01ol1o has joined #nixos
<ocharles>
Does anyone know if IOHK's haskell.nix supports statically built executables?
<clever>
ocharles: there are plans to make that work on linux, so we can distribute 100% static ELF files, and then users dont need to worry about /nix/store/ deps
<ocharles>
I don't need that much support
<ocharles>
Just the parity with what nixpkgs' Haskell builder does
<ocharles>
Something that still needs dynamcially linked glibc is fine
<ocharles>
I just want to avoid ending up with GHC in the closure, basically
<clever>
ocharles: ah, i think its already doing static haskell linking, havent confirmed that though
o1lo01ol1o has quit [Remote host closed the connection]
<ocharles>
Ok, I haven't played with it at all. I'll take a look!
<ottidmes>
strangely enough I don't get those warning on my desktop, only on my freshly installed server (both share most configuration, including this for their host keys)
kvaster has quit [Read error: Connection reset by peer]
<ottidmes>
could it be something caused by ZFS?
kvaster has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
kvaster has quit [Ping timeout: 245 seconds]
alex`` has quit [Ping timeout: 248 seconds]
<aveltras>
is there a builtin function to apply on two list which returns the value from the first list which are not in the second ?
<nefix>
Hello! I'm trying to update my sistem, but it fails compiling QT Base 5.12. Is it a known issue and is there a fix? I can't write derivations because of this :(
shah^ has quit []
<philipp[m]>
Normally you shoudn't even need to compile qt base. What channel are you on?
<nefix>
philipp[m]: That's what I thought, but I'm not sure why is it doing it. I'm on unstable
<philipp[m]>
Do you have any package overwrites concerning that derivation? Could you paste the build log somewhere?
<Gopal[m]>
when it is already defined in a file you import
<etu>
Gopal[m]: That was a good password ;)
<Gopal[m]>
something is up with my copy paste lol
<nefix>
This started when I tried to add steam, but after removing it, it continues happening. And I doubt I have a derivation overriding QT Base, philipp[m]. I'm going to share the log when it finishes
<Gopal[m]>
etu: thanks :P
hyper_ch2 has quit [Remote host closed the connection]
<philipp[m]>
nefix: Maybe you just ran out of disk space? Adding steam tends to have this affect :-)
<Gopal[m]>
so I was asking if it is possible to add to a set. I want to add to `boot.kernel.sysctl` which is already defined in a file I import
<nefix>
philipp[m]: no, I have plenty of space left
hyper_ch2 has joined #nixos
<betaboon>
ouh brno. that looks more reasonable for me :)
<philipp[m]>
nefix: When did you update your channel the last time? The fact alone that nix compiles qt base makes me think that there is something wrong.
orivej has quit [Ping timeout: 248 seconds]
vincent_ has joined #nixos
lordcirth_ has quit [Read error: Connection reset by peer]
<user_____>
What is the equivelant directory of ~/.nix-profile or /run/current-system/sw in a nix-shell? Meaning, if there is a file in the documentation described as being located in one of those directories, where would it be located in a nix-shell?
gentauro has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @r-ryantm to master « copyq: 3.8.0 -> 3.9.0 »: https://git.io/fjKs9
stevejb has joined #nixos
logzet has joined #nixos
<stevejb>
hello, I am trying out nix. Currently have it installed on a mx-linux VM. I am having trouble running nix-channel --update
<stevejb>
the error I am getting is "SSL peer certificate or SSH remote key was not OK"...
vdemeest has quit [Quit: vdemeest]
<srhb>
stevejb: Is the time on the server OK?
<srhb>
Er, the VM.
<stevejb>
srhb: hmm, good point
<stevejb>
its not
<srhb>
Sounds like the culprit.
<stevejb>
srhb: thanks, didn't know a time issue could do that. I'm restarting the VM now.
<aanderse>
Izorkin: i do not. and i'm trying to understand why anyone would want to prefer using tcp instead of socket for this module. as far as i am aware socket is superior in every way and upstream suggestion is to use socket.
<etu>
aanderse: You're right about that. TCP is extra overhead. And most people run their webserver on the same machine as their PHP install. And yeah, then a socket works great.
<{^_^}>
[nixpkgs] @Ekleog pushed commit from @dtzWill to release-19.03 « openjpeg: 2.3.0 -> 2.3.1 »: https://git.io/fjKGl
Yakulu[m] has joined #nixos
<Izorkin>
aanderse: etu: need remove option listenTCP from PR?
<etu>
Izorkin: We should default to socket
<Izorkin>
etu: the default used is a socket
<etu>
I don't think we need a listenTCP option, because if I remember the configs correctly, to listen to a tcp connection you just specify that as the same argument as the socket in the same file? So then it would be enough to be able to customize the listen config option?
<Izorkin>
if listenTCP = ""; used socket, if listenTCP = "127.0.0.1:9000"; - used tcp connections
<Izorkin>
etu: socketName = "127.0.0.1:9000" will not work
<{^_^}>
[nixpkgs] @edolstra pushed 2 commits to release-19.03: https://git.io/fjKZL
hio has quit []
rprije has quit [Ping timeout: 258 seconds]
<immae>
Hello there, I have a NIX_PATH that contains an url that is outdated, can I force nix to clear its cache and refetch it?
steell has joined #nixos
<jomik>
Trying to package nativescript sidekick for NixOS.. It is saying that it can not find libX11-xcb.so.1, but I did add it to the rpath of the executable. So I am guessing maybe it is a library or something trying to use it. How can I trace the cause of this error? I can't remember the command :
<jomik>
:(
<jomik>
I have found two .so library files, but none of those have any rpath when I print it with patchelf in the preFixup phase.
<jomik>
I am getting this udev_loader error thing with my package now, hope someone can help https://git.io/fjKnT I posted the error in a comment on the gist.
o1lo01ol1o has quit [Remote host closed the connection]
<nh2>
immae: I remember that there's some setting for how long to cache NIX_PATH tarball URLs. I can't quite find it though
sindrip has joined #nixos
<immae>
nh2: yes, I’ve looked for that but I cannot find it either
<nh2>
immae: I'm sure I read about it in the last week, hmm
xkapastel has joined #nixos
<immae>
nh2: I know the default is 12h (I don’t know where I found that information though), but I don’t remember any mention of a way to change the value
<nh2>
immae: maybe `tarball-ttl`?
<nh2>
> The fetched tarball is cached for a certain amount of time (1 hour by default) in ~/.cache/nix/tarballs/. You can change the cache timeout either on the command line with --option tarball-ttl number of seconds or in the Nix configuration file with this option: tarball-ttl number of seconds to cache.
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):255:80
<immae>
Ah it’s 1h
<immae>
but too late my cache got refresh before I had a chance to test :(
<immae>
I’ll note it for next time though, thanks nh2 :)
<nh2>
immae: just try it again with setting it to something short and see if it re-fetches :D
<immae>
Right
<immae>
Yes it works nh2 :)
<immae>
I looked at the options but couldn’t see it (I grepped for "cache")
<immae>
Thanks a lot!
kvaster has joined #nixos
<nh2>
how to build the manual.html? I want to add the missing config section for tarball-ttl
<nh2>
`make manual.html` does nothing
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @mmlb to master « pythonPackage.pip-tools: 3.3.2 -> 3.8.0 (#63632) »: https://git.io/fjKnu
<fgaz>
hmm... does it benefit nixpkgs if I review prs even without being able to merge? and alternatively, are there hard requirements for getting merge access?
<msuperdock>
I have a default.nix file in a Haskell project generated by cabal2nix and am trying to override shellHook in shell.nix. I can't seem to get it to work. Here is my current code:
o1lo01ol1o has quit [Remote host closed the connection]
<srhb>
msuperdock: did you mean foo.env.overrideAttrs?
kvaster has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to release-19.03 « firefox: fix highly parallel make by upstream patch »: https://git.io/fjKcP
<msuperdock>
srhb: That worked! Thanks.
<srhb>
msuperdock: No problem.
acarrico has quit [Ping timeout: 258 seconds]
sindrip has quit [Ping timeout: 260 seconds]
<srhb>
msuperdock: (the problem is akin to the classical version = foo override where it's a common pitfall that name does not get updated when it's defined as eg. `name = "foo-${version}", because it was evaluated with the old value.)
stepcut has quit [Remote host closed the connection]
njd42 has quit [Remote host closed the connection]
<msuperdock>
@srhb: OK. So foo and foo.env are both derivations on which I can call overrideAttrs, but foo.env does not preserve the shellHook of foo?
<srhb>
msuperdock: iirc it does -- but it's the shellHook from before your override.
<srhb>
But I didn't read the source in a while, so check if you're curious :)
<{^_^}>
[nix-pills] @cdyson37 opened pull request #113 → Point to Python 3 docs → https://git.io/fjKCp
<{^_^}>
[nix-mode] @j-piecuch opened pull request #86 → SMIE: parse paths enclosed in angle brackets (e.g. <nixpkgs>) correctly → https://git.io/fjKCj
coconnor has quit [Ping timeout: 245 seconds]
domogled has joined #nixos
marius851000[m] has joined #nixos
msuperdock has quit [Remote host closed the connection]
coconnor has joined #nixos
Tucky has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @ehamberg opened pull request #64027 → Install postgresql extensions under `$out/share/postgresql` → https://git.io/fjKWO
<Yaniel>
is something up with the steam setup?
Ariakenom has quit [Quit: Leaving]
<Yaniel>
most linux-native stuff fails to start due to missing glibc
<srhb>
Fellowes: Were you going to include a link or something? :)
hyper_ch2 has quit [Remote host closed the connection]
devalot has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
<karetsu>
does nix-shell not play well with .directory as the location?
<{^_^}>
[nix] @nh2 opened pull request #2978 → manual: Add missing section on tarball-ttl → https://git.io/fjKWG
<srhb>
karetsu: Can you elaborate that question a bit?
<aveltras>
is there a way to disable cache when doing a nixos-rebuild ? i have included a fetchTarball in my configuration.nix fetching a master.tag.gz from github and it doesn't redownload it when master changes
<srhb>
aveltras: I would caution very much against doing this. But you may get a similar result by using the builtins.fetchTarball and setting the nix option for tarball-ttl.
<srhb>
aveltras: Of course, your build is now entirely unreproducible.
chris___1 has joined #nixos
<karetsu>
srhb: https://pastebin.com/xEMD9A3e trying to set up shell.nix/default.nix to create a build for my xmonad, and I'm not sure where the problem really lies, that's the last line of a long chain of 'while evaluating the attribute' lines
<srhb>
aveltras: imo the right approach is to add a pre-phase to your build: Have a script (eg. nix-prefetch-git) get the newest "master" revision and throw that in a json file along with its sha256. Use builtins.fromJSON to get the relevant information.
<immae>
Thanks nh2
<srhb>
aveltras: So an update becomes "update-git-rev-and-sha256 -> nixos-rebuild"
<srhb>
aveltras: Now reproducibility is preserved.
<aveltras>
srhb: ye, i wanted to have a simpler approach but i guess i'd be better using fetchGit then
<aveltras>
i'll do some alias for nixos-rebuild then
<aveltras>
thanks
<srhb>
You can still use fetchTarball, but with a sha256. github serves github.com/owner/repo/archive/sha.tar.gz
<srhb>
Much safer :)
<aveltras>
is it supposed to be really faster on small repos ?
<srhb>
On small repos, probably not.
<chris___1>
Is there some where I can get a previous relaase of the Nixos ISO? Hitting a issue that keeps hitting a `Network Time Sync` job relating to systemd - effectively unusable.
<srhb>
chris___1: You can build it yourself from a nixpkgs checkout.
Henson has joined #nixos
<aveltras>
chris___1: i think there s a fix for this
<srhb>
chris___1: nix-build nixos/release.nix -A iso_{minimal,...} -- depending on your needs.
<aveltras>
chris___1: you're installing nixos right now ?
<chris___1>
aveltras: Well... Yes haha
o1lo01ol1o has quit [Remote host closed the connection]
fenedor has joined #nixos
<lordcirth_>
samueldr, So I'm now trying to use a a nixos VM to run the image build. It seems to be trying to exec one of the ARM binaries: ../../build-aux/ylwrap: line 176: /nix/store/<hash>-bison-3.3.2-armv6l-unknown-linux-gnueabihf/bin/bison: cannot execute binary file: Exec format error
<srhb>
But yeah, older isos are available iirc.. Let me check.
<aveltras>
chris___1: have you tried updating the nix-channel before installing ? might fix it
<srhb>
chris___1: Every time we run a commit through hydra, one is generated and saved I think.
<karetsu>
srhb: so that means that I can't start a nix-shell based off of a cabal2nix in my ~/.xmonad directory, would it just work if my default.nix had a ghcWithPackages.foo instead of trying to base it on the cabal file?
<fellowes>
what is wrong here? it's a pythonPackages.buildPythonApplication with dontbuild true
<fellowes>
what is wrong here? it's a pythonPackages.buildPythonApplication with dontbuild true
<srhb>
Fellowes: You're not including the actual problem.
<srhb>
Fellowes: Maybe you're using some kind of funny irc client that chomps it off?
<fellowes>
yes, because it starts with slash, lol
<fellowes>
/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/bin/python2.7: can't open file 'nix_run_setup': [Errno 2] No such file or directory
<fellowes>
yes!! :)
<fellowes>
sorry for that
<simpson>
/say
<srhb>
Fellowes: Well, the error message is clear but it's less clear what caused it. maybe you can include your derivation?
<srhb>
Pastebin somewhere.
<srhb>
chris___1: karetsu: fwiw the reason that works is that src is not called .xmonad in that case.
<fellowes>
I cannot do the build, as it doesn't have setup.py, just requires.txt
lambda-11235 has joined #nixos
<karetsu>
ah, you manually used cabal2nix, I was trying to use it on the fly when building the shell so I didn't have to do it - my xmonad is an unweildy beast of a billion directories so not going to put it into home-manager yet
<karetsu>
srhb: ty
<srhb>
Fellowes: I'm guessing you need to not use the setuptools format which is the default for buildPythonApplication
nefix has quit [Remote host closed the connection]
<fellowes>
how do I change that?
<chris___1>
karetsu: I think you can use `callCabal2Nix` in that case?
<srhb>
Fellowes: It's an argument in the buildPythonPackage argset. eg format = "other"; -- it might be easier to package it properly though.
<srhb>
Fellowes: "other" means you have to create your own buildPhase and installPhase entirely.
<fellowes>
like you mean not using buildPythonPackage?
<srhb>
Fellowes: buildPythonApplication rec { ... format = "other"; } or patch it to include a proper setuptools setup.py
<karetsu>
chris___1: went with builtins.path and just changed the name it gets when in the store and stuck with the same default/shell.nix I've used before
<codedmart>
Is it possible to have my plyouth load before luks. In Arch I added plymouth to the initramfs. I am not seeing an option for that in nixos?
fellowes has quit [Remote host closed the connection]
<srhb>
davidtwco: The official way is through nixos/release.nix, but you can often just nix-build nixos/tests/thething.nix
laalf has quit [Ping timeout: 248 seconds]
<srhb>
Well, I say "officia" -- that's the way hydra and ofborg do it
laalf has joined #nixos
<srhb>
ie. nix-build nixos/release.nix -A tests.openssh
domogled has quit [Ping timeout: 245 seconds]
chris___1 has quit [Quit: Lost terminal]
<davidtwco>
srhb: The manual recommends "nix-rebuild test -I nixpkgs=$path" but I've found that takes quite a while and I'm cautious of not interfering with any running services (whose modules I'm updating).
<srhb>
davidtwco: Assuming you mean nixos-rebuild test, that creates a vm with your current configuration but with that nixpkgs checkout
<srhb>
davidtwco: While what I was referring to runs specific module tests.
<srhb>
davidtwco: Not sure which you were asking for :)
<ottidmes>
I checked what was being copied, source path does exist, and if I do it manually with `cp` it does not fail for me (the files being setup already exist in /etc BTW, so during nixos-install they were setup correctly it seems)
<ottidmes>
ah! probably neededForBoot
<srhb>
davidtwco: Oh oops, forgot something. You need to specify an arch too or it'll try to build for every system. ❯ nix-build nixos/release.nix -A tests.openssh --arg supportedSystems '[ "x86_64-linux" ]'
<davidtwco>
srhb: thanks! I just ran into that.
<ottidmes>
since /nix is a seperate ZFS thingy (subvol?)
<gchristensen>
dataset
wfranzini has quit [Remote host closed the connection]
<ottidmes>
gchristensen: ah, still getting used to ZFS, still a bit scary, like did I got all config options right, I did have ashift=12 while its 512 and not 4096 but I read its best to always use 12 on modern hardware
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<tobiasBora>
Hello,
<tobiasBora>
I'd like to configure in my nixos the appearence of my desktop (I was using KDE for a while, but now I want to try xfce which seems way quicker). Is there a way to declaratively setup the configuration? I tried with home-manager, but can't find an option to configure xfce
<eraserhd>
Is there some kind of build status page for nixpkgs packages? I have a failing installCheck, and I'm curious if it passes on build servers.
<ottidmes>
in case someone (maybe myself) checks the log for it, adding neededForBoot = true; indeed solved the warnings produced by setup-etc.pl when it fails to copy over the file
<srhb>
eraserhd: Yeah, on Hydra, if it isn't unfree or anything else funny.
<srhb>
eraserhd: What's the package? It might be easier to navigate from there to figure out the structure.
simukis_ has joined #nixos
<eraserhd>
plan9port, installCheck should be failing on Mac only, I think?
asheshambasta has quit [Ping timeout: 252 seconds]
<srhb>
eraserhd: Due to History™ "master" is "trunk"
<srhb>
Search for plan9port there.
drakonis_ has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
<eraserhd>
srhb: I'm in! <hackerglasses>
<srhb>
Good job!
<srhb>
:-)
<dermetfan>
Is there a way to run scp/rsync/ssh from inside a nix build? (I know this is not pure) It appears there's no internet connection within builds.
<srhb>
dermetfan: Without sandbox, yes. But if all you need to do is fetch something, perhaps you can keep it pure by making it a fixed output derivation.
<srhb>
dermetfan: Otherwise it's usually a Bad Idea.
jabranham has joined #nixos
root2 has joined #nixos
Drakonis has quit [Ping timeout: 268 seconds]
jb55 has quit [Ping timeout: 260 seconds]
<dermetfan>
srhb: Thanks, I'll try that. We want to copy files to a web server we have no admin rights for, so our usual setup of Hydra+Hail is not possible.
<srhb>
dermetfan: Someone using Hail! Don't see that often. :-)
Soo_Slow has joined #nixos
revtintin has quit [Quit: WeeChat 2.5]
<lordcirth_>
samueldr, ah, I forgot to switch to the unstable branch again, I think
Miyu-chan has quit [Ping timeout: 272 seconds]
<dermetfan>
srhb: Yeah IIRC it doesn't even build anymore, I had to pin nixpkgs 17.03. The missing piece for a completely nix-based CD
user4324 has quit [Quit: leaving]
<srhb>
I have had it building for at least 18.09, but haven't used it since.
rfold has joined #nixos
alpounet has quit [Ping timeout: 252 seconds]
<srhb>
eraserhd: Well, running --check on it at least reveals that it appears to be nondeterministic. but it built (at least on linux)
<ornx>
hi, does anyone know where systemd units are kept in nixos? i am having trouble disabling a service and would like to delete the symlink manually, but its not in /etc/systemd or /lib
kvaster has joined #nixos
<gchristensen>
best to disable it with Nix itself, or if it is temporary do a runtime only mas
<gchristensen>
k
<ornx>
i didnt actually set it up with nix at all, its a systemd user unit i have been managing with systemctl --user
<kalbasit>
I got a report at work that cache.nixos.org is failing TLS: `warning: unable to download 'https://cache.nixos.org/mp1gqzm63piczd8lfhqyqpsdd27wlnxv.narinfo': SSL peer certificate or SSH remote key was not OK (60);` I can't reproduce though, anyone else has seen this today?
<ornx>
id like to remove it completely since it is supposed to set up an ssh connection to a server i no longer own, but even after deleting the ~/.config/systemd/environment/ files, it still gets autostarted every boot
silver has joined #nixos
<gchristensen>
ornx: for user service files managed by you, it would be whatever systemd does on any other distro
<lordcirth_>
kalbasit, I notice that the cert begins June 27. Perhaps the client's clock was off?
<ornx>
i dont suppose you would happen to know what it does on other distros, do you? i assume systemd must keep some state somewhere about what unit files it has but i cant for the life of me find it
<aanderse>
srhb: are you planning on taking the lead on zero hydra failures for 19.09, at least as far as you did with 19.03?
fenedor has quit [Ping timeout: 272 seconds]
<Henson>
it looks like /nix/var/nix/profiles/default is the root user's profile. Why isn't that stored in /nix/var/nix/profiles/per-user/root? Does the root profile get shared with other users?
<lordcirth_>
Henson, as I understand it, /nix/var/nix/profiles/default is the global system profile, rather than "root's" profile
kvaster has joined #nixos
aramiscd has quit [Ping timeout: 245 seconds]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
freeman42x has joined #nixos
* Henson
adds another user
day|flip has quit [Remote host closed the connection]
selfsymmetric-mu has quit [Remote host closed the connection]
MmeQuignon has joined #nixos
<srhb>
aanderse: I would not say I took the lead, I just tried to be helpful by providing the failure lists as often as I remembered. For what that's worth I'm happy to do so again, if it helps any.
<gchristensen>
<3 srhb
<{^_^}>
srhb's karma got increased to 56
<aanderse>
srhb++
<{^_^}>
srhb's karma got increased to 57
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « emacs-irony: Remove server directory »: https://git.io/fjK48
<aanderse>
I'd say it was certainly helpful :-D
<srhb>
Then sure. :)
astrofog has joined #nixos
<aanderse>
i wonder if organizing weekly online code sprints to chip away a hydra failures would be motivating to people or not
<aanderse>
hmm...
xkapastel has joined #nixos
<srhb>
I think that sounds like a given.
<gchristensen>
that sounds cool
hoijui has quit [Ping timeout: 264 seconds]
<srhb>
Agreed. One thing I tried last time on a personal level was try and mentor a few "beginners" that I know personally. It was great, but there was a nontrivial amount of preparation in classifying failures for them, and often they were beat to the point. i think it was mostly a good experience, but maybe not really as suited for a release sprint as I thought.
aramiscd has joined #nixos
<aanderse>
ah yeah fair enough
knupfer has quit [Ping timeout: 252 seconds]
Ariakenom has joined #nixos
<srhb>
I think I'm trying to say that it'll probably work better with an issue tracker and/or not as complete beginners material. :D
<codedmart>
ottidmes: So you have plymouth load early and input your password in the graphical plymouth for luks?
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit merged pull request #63958 → olm: Allow building on Darwin → https://git.io/fjKfM
<Gopal[m]>
I already have a key with `dropbear` set up
<Gopal[m]>
Added `virtio_pci` to `availableKernelModules`
v0|d has joined #nixos
<ottidmes>
Gopal[m]: When I was stuck at the same place yesterday it was due to the boot loader not being setup correctly. I thought my VPS would support EFI, it needed BIOS, and then it booted just fine
<Gopal[m]>
srhb: any idea why this might be happening?
<DigitalKiwi>
are there reasons it would be good or bad to use the all-hardware.nix in a regular installation not the live disk?
<codedmart>
How do I override a specific gnome3 app? In this case geary? I want the upstream package that is in master, but not in 19.03?
<codedmart>
Not sure I understand the override syntax yet.
asheshambasta_m has quit [Quit: Leaving.]
<ottidmes>
DigitalKiwi: it should only actually load on-demand AFAIK, so the only slight downside would be space? I have had the same config for hardware of the liveCD on my desktop for ages without any problem (without it some things no longer worked)
ris has joined #nixos
<DigitalKiwi>
that makes sense
trevorriles has joined #nixos
<eraserhd>
It seems there's no /tmp in sandbox, is it safe to use $TMPDIR?
<ottidmes>
codedmart: you could do that with overrideAttrs, but in practice I tend to just have an unstable channel next to my stable 19.03, so I can install say, pkgs.unstable.geany, downside of this approach is that you have to update two channels and that it will use the unstable dependencies for those packages as well, but the costs are worth the convenience for me
<simpson>
eraserhd: Yeah, should be fine.
<codedmart>
ottidmes: Interesting... I never thought of that.
stanibanani has joined #nixos
<ottidmes>
codedmart: in my overlay I have: unstable = import /wheel/fork/nixpkgs-unstable { config = { allowUnfree = true; }; overlays = []; }; and thats all it takes, and then in my configuration.nix I could e.g. have environment.systemPackages = with pkgs; [ unstable.geany ];
domogled has quit [Ping timeout: 246 seconds]
dermetfan has quit [Ping timeout: 272 seconds]
dermetfan has joined #nixos
m0rphism has quit [Ping timeout: 248 seconds]
Shoubit has quit [Ping timeout: 268 seconds]
karetsu has quit [Quit: WeeChat 2.4]
<codedmart>
ottidmes: Thanks
<simukis_>
what are the reasons a file with matching contents would end up having a different path when in nix store? I have verified that file contents match (both inside and outside the store), permissions match, even owning user id matches
<simpson>
simukis_: But the derivations are different? What are you building and what did you expect?
dermetfan has joined #nixos
<{^_^}>
[nixpkgs] @tbenst opened pull request #64047 → python: wxPython: init at 4.0.6 → https://git.io/fjKBA
<simukis_>
simpson: I have a derivation that references this file as a patch via `patches = [./file]` and have found that on two different machines this patch file ends up having a different path when stored in nix store. The only difference between source files I can see so far is modification date
<simukis_>
simpson: this then makes derivation hash different as well.
alex`` has joined #nixos
<simpson>
Curious. And the other hashes match?
<simukis_>
yeah, everything else matches… gimme a sec, I’ll cleanup the diff and share it here
<{^_^}>
pi-hole/pi-hole#2686 (by flannelhead, 13 weeks ago, closed): Resolution of domain pi.hole fails ue to DNSSEC issue (systemd-resolved, dnsmasq)
<srhb>
Gopal[m]: I thought it'd continue the boot, I'll check the docs then..
<acowley>
I think the problem is that my network configuration is through NetworkManager rather than systemd, but the systemd networkConfig attribute is the only place I could add the desired negative trust anchor.
<Gopal[m]>
This comes up at boot so I login via ssh, load the key
<Gopal[m]>
it boots when I press the asterisk via the VNC connection which is very inconvenient
<srhb>
Gopal[m]: Ah, i thought you were using the initrd to load keys, nevermind then
<acowley>
The approach on that GH Issue is to create a file in /etc/dnssec-trust-anchors.d but I don't know how to do that in my configuration
<arcnmx>
hm... if a library has a nonstandard include path and requires pkg-config or something, is there some helper or setup hook or something that just does NIX_CFLAGS_COMPILE=$(pkg-config --cflags libs) or similar or should a derivation just NIX_CFLAGS_COMPILE="${dep}/include/dep" or what's the best way to deal with that?
<arcnmx>
er, that was meant to be -I${dep}/include/dep but
<Gopal[m]>
riot freaks out when I copy paste code snippets for some reason
<noonien>
how can i do that? also, the package i'm building is an overlay in my nixos config, can i build just that?
<noonien>
i'm currently doing a nixos-rebuild to build it
<srhb>
noonien: Easiest is probably to extract the overlay and then nix-build -E 'with import <nixpkgs> { overlays = [ (import /path/to/your/overlay) ]; }; yourpackage'
<acowley>
Ah. environment.etc is the magic I needed!
<Gopal[m]>
any ideas srhb ?
ambro718 has joined #nixos
<srhb>
Gopal[m]: Afraid not. :/ Is this from a recent nixos installer?
<noonien>
along with --verbose-build?
<Gopal[m]>
yeah I'm on nixos-unstable
<srhb>
noonien: I think you want to set NIX_DEBUG to something, but I forget what..
<noonien>
oh, ok
m0rphism has joined #nixos
<noonien>
will look that up, thanks!
<noonien>
srhb++
<{^_^}>
srhb's karma got increased to 58
<srhb>
noonien: 6 or higher apparently, from setup.sh
<DigitalKiwi>
you can use -l to load the key on import
<srhb>
noonien: That will set -x in the generic builder
srl295 has quit [Quit: Connection closed for inactivity]
qqlq_ has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
qqlq has joined #nixos
<jabranham>
I think my GPU might be failing, but I've never dealt with this before on linux. Does anyone have experience with this sort of thing and willing to glance at this log? https://gitlab.com/snippets/1870980
<eraserhd>
AFAICT, $NIX_LDFLAGS doesn't contain -F options with paths for Mac frameworks, even when they are build inputs. Is there another variable to use or something?
<{^_^}>
[nixpkgs] @danbst pushed commit from @NilsIrl to master « alacritty: build on i686-linux (#63199) »: https://git.io/fjKEZ
<__red__>
apparently, this is too hard for me since the nixos-rebuild just won't play nice - even though I've tried both the files and the direct entry
<__red__>
maybe because it can't reference it until the package itself it built?
<__red__>
and nixos-rebuild explictily ignores the env variable you quoted above.
Czen has quit [Remote host closed the connection]
<__red__>
nix-env will work, but not nixos-rebuild
<__red__>
So, I've modified security.pki.certificateFiles to be [ "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" "/var/run/ca.crt" ];
<__red__>
That should be reading the file - I've put it in tmp, I've put it in home directories - I have no idea where else I could put it where nixos-rebuild should be able to find it
adamantium has joined #nixos
<__red__>
the error I'm getting is: cat: /var/run/ca.crt no such file or directory
<noonien>
i am in a few layers of nix-shell, but, why would this happen?
<lordcirth__>
Has anyone looked into setting up a watchdog, probably at the bootloader level, that can do a generation change to unbrick a NixOS system?
<lordcirth__>
I think grub's once-only feature is the way to go
<samueldr>
something like "update the bootloader config only once the new generation has been booted", or something like that?
<{^_^}>
[nixpkgs] @timokau opened pull request #64067 → python2: backport fix for pyc race condition → https://git.io/fjKue
noudle has quit []
<lordcirth__>
samueldr, yeah, basically an automated hook in nixos-rebuild, when doing 'switch' or 'boot', to set once-only, then upon a successful boot (preferably as defined by customizeable scripts) actually change the config.
<steve-chavez>
Running nix-index.. + querying available packages ...
<infinisil>
It does take a long time to index
<steve-chavez>
How long approximately?
<infinisil>
Hm maybe 15 minutes
<infinisil>
And it requires a bunch of RAM
<infinisil>
Which is the reason why a lot of people like ,locate
<infinisil>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<steve-chavez>
But nix-locate 'bin/xmonad' fails locally
<steve-chavez>
with
<steve-chavez>
This may be caused by a corrupt or missing database, try (re)running `nix-index`` to generate the database.