i-am-the-slime has quit [Ping timeout: 255 seconds]
anelson- has quit [Ping timeout: 240 seconds]
ma27 has joined #nixos
oida has quit [Ping timeout: 252 seconds]
hellrazor has joined #nixos
oida has joined #nixos
pjan_ has joined #nixos
jrolfs__ has quit [Ping timeout: 248 seconds]
jrolfs__ has joined #nixos
<dhess>
LnL: ok trying nix-darwin again on my remote builder. Just to clarify -- I had previously installed nix with the latest multi-user installer; so in order to get nix-darwin to manage nix-daemon, I just need to remove the "# Nix...# End Nix" bit from /etc/bashrc, correct?
<dhess>
sorry /etc/profile
<LnL>
yeah
<dhess>
cool
<LnL>
and whatever method you prefer to get the environment from bashrc loaded
<dhess>
sorry, what do you mean?
<dhess>
I told the nix-darwin installer to update /etc/bashrc, is that what you mean?
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vNt31
<NixOS_GitHub>
nixpkgs/master fe05782 Orivej Desh: hplip: fix quoting for makeWrapper...
<NixOS_GitHub>
nixpkgs/master 2e285a3 Orivej Desh: mercurial: fix quoting with guiSupport for makeWrapper...
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has quit [Quit: Konversation terminated!]
FRidh has joined #nixos
<sirkha>
trying to add an expression for https://github.com/drahnr/oregano and it mentions XDG_DATA DIRS. I have tried wrapProgram in install phase, but it says, "wrapProgram: command not found" I tried it in the postInstall, but nothing seems to happen. I have makeWrapper on the first line.
<dhess>
LnL: got this when I did `darwin-rebuild switch`: warning: not linking environment.etc."bashrc" because /etc/bashrc exists, skipping...
<dhess>
LnL: so should I remove /etc/bashrc and /etc/nix/nix.conf now that I've got nix-darwin installed, or will everything know to look in /run/current/system/etc
<dhess>
?
<tilpner>
sirkha - I think you have to add makeWrapper to nativeBuildInputs
<dhess>
/run/current-system/etc
<dhess>
look like it will look in /run/current-system/etc
<dhess>
at least my user shell
radvendii has joined #nixos
<sirkha>
tilpner, well, that solved half the problem
<radvendii>
has anyone here tried to get PlaneShift running on NixOS?
<tilpner>
sirkha - But I'm not sure you have to set XDG_DATA_DIRS at all
<radvendii>
I downloaded their installer and it just doesn't run
<tilpner>
That's not surprising :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 27 new commits to master: https://git.io/vNtsw
<NixOS_GitHub>
nixpkgs/master 1bacb88 José Romildo Malaquias: mate-session-manager: add debug option to mate service
<NixOS_GitHub>
nixpkgs/master bf5702e José Romildo Malaquias: mate-session-manager: revise dependencies
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 492ffae José Romildo Malaquias: mate-session-manager: remove explicitly dependence on gsettings_desktop_schemas...
<sirkha>
tilpner, i tried running it and it says, "(oregano:12162): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
<sirkha>
Trace/breakpoint trap
<sirkha>
"
<tilpner>
No idea about that
<sirkha>
based on the readme, that is why it needs the XDG_DATA_DIRS
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ma27 opened pull request #33634: android-studio: add mesa to the runtime path (master...android-studio/support-virtual-devices) https://git.io/vNtsP
NixOS_GitHub has left #nixos [#nixos]
<sirkha>
wrapProgram still isn't wrapping the program, i must be using it wrong
<tilpner>
nixy - Use (import (fetchFromGitHub { ... }) {}).name_of_package
nithor has quit [Ping timeout: 252 seconds]
la_putin has joined #nixos
<tilpner>
nixy - Although I would suggest setting up an overlay with different channels in it, so that you can put nixpkgs_nixy.name_of_package into your systemPackages
<sirkha>
tilpner, i had to make some changes to goocanvas to get it to work, it *is* wrapping it on further inspection, so something else is wrong, but i can work it now, thanks (I added quotes after my first issue, that seemed to fix it, but i didn't notice because i didn't look hard enough)
el_putin has quit [Read error: Connection reset by peer]
<nixy>
I've been meaning to look at what overlays are for a while, but never got around to it
<Sonarpulse>
dhess: thanks, sorry long meeting popped up just then
<dhess>
Sonarpulse: no worries. Need anything else?
<radvendii>
for something that thinks it needs to install in a system directory, is there a way to fool it into installing elsewhere?
<radvendii>
is this what docker is for?
xcmw has quit [Ping timeout: 265 seconds]
jrolfs has joined #nixos
jrolfs__ has joined #nixos
nithor has joined #nixos
<tilpner>
radvendii - Try steam-run
xcmw has joined #nixos
<radvendii>
oh man! like magic it works
<radvendii>
what does steam-run do??
<radvendii>
:P
<samueldr>
runs software in the "environment" steam runs in
<tilpner>
Uses a user mount namespace to construct an FHS-compliant environment
<tilpner>
With game-specific libraries included
ckauhaus1 has joined #nixos
<radvendii>
ah fudge muffins
<radvendii>
now i have to do the patchelf crap
jrolfs has quit [Ping timeout: 248 seconds]
jrolfs__ has quit [Ping timeout: 256 seconds]
<tilpner>
Why?
ckauhaus has quit [Ping timeout: 255 seconds]
<radvendii>
because it has the wrong paths for "ld-linux-x86-64.so.2"
<radvendii>
how do i find the right path again? it involves nix-build somehow
<tilpner>
Why does it need the right paths, if it works in steam-run?
<radvendii>
the thing I was trying to run was just the installer
<tilpner>
Try running the game with steam-run
<radvendii>
oh good call
<sirkha>
is there a way to get nix-build to force a rebuild? i tried --repair but it tells me to shove off ("error: repairing is not supported when building through the Nix daemon")
<radvendii>
but it has the same dumb "not found" error
<NixOS_GitHub>
[nixpkgs] bendlas pushed 2 new commits to master: https://git.io/vNtn1
<nixy>
It seems like overlays would just override whatever current nixpkgs is, unless there is some secret sauce I am missing
<tilpner>
nixy - You got it the wrong way: Not a channel for an overlay, but an overlay for a channel. The channel is the overlayed onto whatever your primary nixpkgs is
<nixy>
So adding something to NIX_PATH that would create a channel from a URL containing an overlay?
<tilpner>
No. A normal overlay that adds imported versions of nixpkgs to your normal nixpkgs
<tilpner>
These imported versions can be fetched from the normal channel URLs
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vNtC2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 067cac7 Tim Williams: mixxx: add AAC support...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] hamishmack opened pull request #33636: haskell: Fix depending on libs with internal libs on darwin. (master...haskell-internal-libs-darwin2) https://git.io/vNtCo
NixOS_GitHub has left #nixos [#nixos]
hamishmack has quit [Quit: hamishmack]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master f4afbf6 Orivej Desh: neovim: fix quoting for makeWrapper...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vNtC7
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vNtCb
<qmm>
osx. how do i inform install to use the edited script?
<samueldr>
looking at the install script, you can probably download the tarball, edit the script, then at the root directory, do `./install`, possibly `sudo ./install`
<iqubic>
so I ran "nix-collect-garbage --older-than 7d" but I'm still seeing all the generations created since I installed NixOS listed in my SystemD-Boot bootloader menu. Anyone know how to trim that list to just the generatations that exist.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Supersonic112_ has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
Supersonic112_ is now known as Supersonic112
ryantrinkle has quit [Ping timeout: 248 seconds]
<magnap>
iqubic: you could either delete the boot loader entries manually, or, more easily, run nixos-rebuild one more time (that also rebuilds the boot loader entries)
Fare has joined #nixos
<tilpner>
iqubic - Make sure to run nix-collect-garbage as root, and then nixos-rebuild
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
aw has joined #nixos
spacefrogg has joined #nixos
iqubic` is now known as iqubic
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
ryanartecona has quit [Quit: ryanartecona]
nithor has joined #nixos
pkill9 has quit [Quit: WeeChat 2.0]
chreekat has quit [Ping timeout: 260 seconds]
yegortimoshenko has joined #nixos
asuryawanshi has joined #nixos
chreekat has joined #nixos
iqubic has joined #nixos
nithor has quit [Ping timeout: 255 seconds]
<iqubic>
is there a way to prevent my computer from going to sleep (IE screen turns black) when I am watching YouTube, or VLC, in fullscreen.
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iqubic>
Also, I wonder if NixOS has any screen locker programs. I'd like to be able to lock my machine and require a password before it can be used again.
asuryawanshi has quit [Ping timeout: 248 seconds]
<adisbladis>
iqubic: systemd has a feature called inhibition locks
pie__ has joined #nixos
<iqubic>
What is that?
<adisbladis>
You can start a program with "systemd-inhibit" to acquire an inhibition lock which prevents sleep
<iqubic>
How can I use that to solve my problem?
<adisbladis>
Some DEs (like KDE plasma) will do that for you for certain programs like media players
<iqubic>
Yeah, I'm using a WM that doesn't do that.
<iqubic>
however I can get other unfree programs just fine.
mrkgnao has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
hamishmack has joined #nixos
<rardiol1>
someone else having problem with update due to dblatex being broken? Something to do with "Error: not found: stmaryrd" ? But stmaryrd is on the tex input list...
<iqubic>
Is someone going to push the latest update for Discord to NixOS stable?
mrkgnao has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
mrkgnao has joined #nixos
nithor has quit [Ping timeout: 265 seconds]
schoppenhauer has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
schoppenhauer has joined #nixos
<rardiol1>
If I have a copy of nixpkgs and run nix-build -A foo, then I should get the exact same result as hydra building foo on the same git commit, correct?
<samueldr>
rardiol1: I don't know where the most up-to-date stuff is about that, but NixOS isn't yet 100% reproducible in the sense that binaries are reproduced byte-for-byte between builds yet.
<rardiol1>
samueldr: ok, but hydra has a working build and my local one fails. That is not supposed to happen, byte-by-byte reproductibility or not, right?
nithor has joined #nixos
<samueldr>
that's mostly right, it should work
<samueldr>
there's a "reproduce locally" button somewhere in the hydra interface, this gives you a script that should do it with all the same inputs
<rardiol1>
samueldr: yes, I just wanted to have a try at finding a solution because that script will take a few hours to finish downloading everything at this rate
<adisbladis>
iqubic: The latest version of discord in master (0.0.3) is already in 17.09. If there is a more recent version available would you mind creating a PR?
<rardiol1>
how do I turn on the sandbox/chroot for a single nix-build?
<Fare>
Rooting Chromebooks is easy. Getting NixOS to work properly is something else.
<hoverbear>
Hm :(
<Fare>
I have NixOS running in a chroot of GalliumOS, but trying to build anything results in its complaining that it can't find some build daemon through some path in /run or something
<Fare>
I'm sure with a bit more work it can be done.
<Fare>
Not sure GalliumOS works on ARM, though. I have mine on x86_64
asuryawanshi has quit [Remote host closed the connection]
<hoverbear>
Hm, my new nvim configuration doesn't seem to be propagating :S
asuryawanshi has joined #nixos
alex`` has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
rogue_koder has quit [Quit: Konversation terminated!]
<srhb>
Does anyone recall how to log in with Spotify when it's set with a Facebook login?
<srhb>
Urgh, maybe I can just disable that...
fogbugz` has joined #nixos
fogbugz has quit [Remote host closed the connection]
<la_putin>
does NIX OS have its own method of executing files?
fogbugz`` has joined #nixos
fogbugz` has quit [Remote host closed the connection]
<srhb>
la_putin: Depends what you mean exactly
<srhb>
la_putin: For instance, the interpreter isn't where it usually is.
<la_putin>
for example, when u type a shell command
<srhb>
la_putin: But they're still ELFs
<srhb>
It's NixOS, by the way :)
<la_putin>
eg [ls]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] veprbl opened pull request #33640: pyslurm: bump to unbreak (release-17.09...17.09_pyslurm_fix) https://git.io/vNtwJ
NixOS_GitHub has left #nixos [#nixos]
<la_putin>
does it have its own methof of executing the ls command
leat has quit [Quit: WeeChat 1.9.1]
<la_putin>
method*
<srhb>
la_putin: Not in any way I can think is relevant.
<srhb>
la_putin: Why are you asking>
<la_putin>
im trying to figure out how to write a file into memory then execute that file from memory
<srhb>
Simple, copy it to /run and run it from there :P
<etu>
srhb: :D
<la_putin>
as far as ik, exec* can only handle physical files
<srhb>
I have no idea how to do what you're asking (regardless of OS) sorry. :)
<srhb>
I think you might have to reimplement ld, which sounds fun.
<MichaelRaskin>
la_putin: exec* handles files accessible via FS interface. /run is a tmpfs, i.e. a RAM-backed FS
<Ralith>
depends on the code
<Ralith>
you only need a linker if there are symbols to resolve
<Ralith>
(LLVM has `RuntimeDyld` if you do in fact need that)
<srhb>
Ralith: Doesn't it also deal with interpreting the actual ELF image?
<dpc>
What's the best way to create a text file with given text content and then get the path to it?
fogbugz`` has quit [Remote host closed the connection]
<srhb>
dpc: writeFile and friends
<dpc>
I'd like to use string interpolation to write out a file in Nix, and then point a service to use it. Hopefully all inline.
<srhb>
dpc: writeText is especially succinct. writeText "nameoffile" "contents";
<srhb>
dpc: The value is the store path.
<dpc>
Yes. That's what I want.
<srhb>
dpc: :)
<Ralith>
srhb: I mean, there's nothing stopping you from `mmap`ing an executable page, copying some instructions into it, and jumping right in
<dpc>
Thanks. Will give it a try.
<Ralith>
but if you have an ELF file then you need a loader as well as a linker, yes
<Ralith>
(probably)
<srhb>
Ralith: True! That sounds fun. :-)
<dpc>
Any tips on workin on nixos-fu?
* Ralith
writes LLVM-based JITs for a living
<srhb>
Ralith: I defer to your expertise. I've never done anything like that. :-)
<srhb>
dpc: Package things, write modules, have fun! :)
<dpc>
I was able to succesfuly deploy something to production with nixops, but I feel that anytime something will break, I'll be stuck.
<dpc>
I really need to switch to nixops now ...
<dpc>
There is no going back, I guess.
<srhb>
dpc: I found it very enlightening to essentially do what nixops does by hand
<Ralith>
keep your configs in version control and it should be hard to screw things up unrecoverably, no?
<srhb>
dpc: Stringing together nix-copy-closure, nix-env and the switch script.
<srhb>
dpc: Made me feel like I can probably recover from most nixops disasters :-)
<Ralith>
srhb: don't get me wrong, I mostly punt the problem upstream
<srhb>
Ralith: That's the spirit. ;-)
MichaelRaskin has left #nixos [#nixos]
mr_sm1th has quit [Remote host closed the connection]
<Ralith>
I know just enough to know that you really don't want to write a general ELF parser yourself >_>
<srhb>
I had a feeling...
* Ralith
has a friend who spen ta few years doing that and eventually gave up
<srhb>
Ow.
matklad has joined #nixos
MP2E has quit [Remote host closed the connection]
<matklad>
Hi! I can use `nix-shell --run zsh` and some `defult.nix` to switch to the build environment with pkg-config and libsodium. Is there an easy way to make this work with login shell? There's mainly a single project I am working on, so I'd love to avoid remembering to call nix-shell
<Ralith>
in fairnes the giving up was more for career reasons
<srhb>
matklad: You mean use nix-shell, but always with zsh?
<dpc>
`writeTextFile` ?
<srhb>
dpc: writeText has the semantics I described, just two arguments.
<srhb>
dpc: writeText is more generic.
<srhb>
dpc: Er, writeTextFile is more generic.
<infinisil>
matklad: I think you just want to use zsh as your login shell and install your build environment with nix-env
<matklad>
srhb: not really, more like putting something to /etc/nixos/configuration.nix, so that I can build my project *without* nix-shell
<srhb>
Ah.
<Ralith>
matklad: it's easier if you don't `--run zsh`, since the default bash prompt clearly indicates when you're in a shell
<Ralith>
alternatively, improve the zsh prompt
<srhb>
I don't know why you'd do that. :-)
<srhb>
But you'd just install all your development environments globally and hope they don't conflict ever.
<infinisil>
matklad: oh, then use configuration.nix instead of nix-env (and zsh as your login shell)
<matklad>
I've tried adding libsodium and pkg-config to `environment.systemPackages`, but pkg-config does not find libsodium
<Ralith>
infinisil: nix-env does not produce build environments
<infinisil>
ahh..
<Ralith>
it's missing setup hooks and such
<infinisil>
right, hmm
<matklad>
Ralith: right, is this why libsodium in environment.systemPackages does not work?
orivej has quit [Ping timeout: 248 seconds]
<Ralith>
matklad: yep
<Ralith>
gotta use nix-shell
<infinisil>
Oh how about this: Use a nix-shell as your login shell?
<Ralith>
that would work
<Ralith>
honestly just get used to shelling manually, the prompt makes it impossible to screw up :P
<Ralith>
having multiple environments is too useful
<infinisil>
although it's rather ugly imo
<infinisil>
(nix-shell as login shell i mean)
<matklad>
Yeah, nix-shell is indeed absolutely great for isolated envrioments. The issue is I mostly need a single environment: I literally `nix-shell` at the start of my day and try to never leave that shell :) However, sometimes I need a second shell, or I need to launch a build from a GUI program, and this requires some more actions =/
<srhb>
matklad: Maybe instead you can set your shell up with some dir env hooks that do the actual loading?
<srhb>
I realize it's not as pretty, but it may be acceptable
Neo-- has joined #nixos
asuryawanshi has joined #nixos
<matklad>
srhb: hm, yeah, I guess I can export `export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${pkgs.libsodium}/lib/pkgconfig"`, that should work for me...
matklad has quit [Remote host closed the connection]
mrkgnao has quit [Ping timeout: 240 seconds]
matklad has joined #nixos
mrkgnao has joined #nixos
matklad has quit [Remote host closed the connection]
<dpc>
Any way for nixops script to know the deployment name? `nixops -d deploy prod` - I'd like to know that `prod`. I want to parametrized my script over it, so I can do `nixops -d deploy staging` etc.
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
flox has joined #nixos
<flox>
hi guys, quick question: when dealing with python packages, is there any way to "wrap the wrapper" in an override for a package? Python packages are normally already wrapped by buildPythonPackage but I need to add additional stuff
<srhb>
flox: Maybe you can override buildPythonPackage?
matklad has left #nixos [#nixos]
dpren has quit [Quit: Connection closed for inactivity]
orivej has joined #nixos
bordel has quit [Quit: #lobsters-advent]
<fearlessKim[m]>
dpc: you can see the deployement names via "nixops list", can't you ?
<dpc>
fearlessKim: but I want to use this in my nix expression
asuryawanshi has quit [Remote host closed the connection]
ixxie has joined #nixos
<fearlessKim[m]>
so nix-shell doesn't install manpages ? or is it that gcc doesn't have a manpage :'( ? (man gcc fails)
lezed1 has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fearlessKim[m]>
dpc: not sure I get what you want ? you want a script to deploy every deployment ?
<dpc>
If my deployment is named `testing` it should write some config files with `testing` name in it.
zzamboni has quit [Quit: Leaving.]
<dpc>
BTW. I already have deployment with db, holding some stuff. How do I redo the config, change "machine name" etc. without loosing that db (basically - how to make sure I keep reusing that existing VM)?
Itkovian has joined #nixos
Tucky has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<srhb>
I think your best bet is to manipulate the database. Very carefully. You can dump the state (to json, I think?) and reimport it
<srhb>
Remember to back up things.
<fearlessKim[m]>
sqlitemanager is good for that
<dpc>
Manipulate the db? Oh my. Is this only about the machine name or if I leave the machine name, everything will be fine?
<dhess>
is cache.nixos.org down?
<dpc>
Basically I did `nixops create -d prod do.nix` at some point, and I wonder if I can ever use a file other than `do.nix`
<srhb>
dhess: Not in my region at least.
<dhess>
cool thanks
<dhess>
working now
asuryawanshi has joined #nixos
<srhb>
has anyone done non-trivial evaluations with hnix? Eg passing pkgs as argument and so on
<srhb>
I'm not sure if it's even supposed to be in a state where that's possible
<srhb>
nix-instantiate is a poor interface. :-)
reinzelmann has joined #nixos
hotfuzz_ is now known as hotfuzz
<dhess>
srhb: johnw was around earlier, he's the author :)
<dhess>
srhb: also I think that iohk-ops uses it?
asuryawanshi has quit [Ping timeout: 246 seconds]
<johnw>
hi
<srhb>
hi!
<johnw>
there are people who use hnix all the time, maybe ask by opening an issue?
<dhess>
I guess it's not iohk-ops... who was it
<srhb>
Sure, I can do that.
<srhb>
dhess: Either awake or iohk I guess
<vaibhavsagar>
I was under the impression that hnix can't be used as a nix-instantiate replacement just yet
tusj has quit [Remote host closed the connection]
<vaibhavsagar>
and that it's more a parser
<dhess>
srhb: maybe it was dhall-nix
<srhb>
dhess: Yeah, dhall-nix uses it :)
<srhb>
dhess: I think that's a product of Gabriel being at Awake.
<dhess>
sure
<johnw>
vaibhavsagar: it does have an evaulator
<vaibhavsagar>
yes, I noticed that, but it looks like only simple expressions?
mrkgnao has quit [Ping timeout: 240 seconds]
mrkgnao has joined #nixos
<johnw>
I haven't looked in a while
civodul has joined #nixos
zzamboni has quit [Quit: Leaving.]
<vaibhavsagar>
as compared to something that would take a .nix file and evaluate it to a .drv
<vaibhavsagar>
not that hnix isn't cool and useful as it is :)
<johnw>
contributors most welcome :)
<johnw>
i give push rights fairly easy
<vaibhavsagar>
I've contributed a few small things :)
<vaibhavsagar>
in fact the most recent one
nschoe has joined #nixos
ilyaigpetrov has joined #nixos
zzamboni has joined #nixos
jensens has joined #nixos
zzamboni has quit [Ping timeout: 240 seconds]
<manveru>
cbarrett: yo
<dpc>
Any way to import a map directly into another map (merge them) ?
<vaibhavsagar>
dpc: //
<vaibhavsagar>
merge: a: b: a // b
jtojnar has quit [Read error: Connection reset by peer]
<vaibhavsagar>
(I think)
<dpc>
vaibhavsagar: ?
<manveru>
dpc: you can change the path to do.nix in your nixops state db
<pauldub>
It's so nice to see that nixos weekly is back! kudos!
<vaibhavsagar>
dpc: I thought you were asking about merging attribute sets
<dpc>
I can't figure out how to pass arguments to `imports = [ ./foo.nix ]` that nixops seem to use
<dpc>
So I want just directly import stuff from `./foo.nix` and pass arguments myself.
<dpc>
vaibhavsagar: So I would do `{ ... my old stuff } // import foo.nix` ?
<vaibhavsagar>
I think you could do that, yes
<dpc>
`{ ... my old stuff } // import ./foo.nix { argx = 1 }` etc.
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<johnw>
vaibhavsagar: then thank you!
<vaibhavsagar>
:)
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
sigmundv__ has joined #nixos
zzamboni has quit [Client Quit]
klntsky has quit [Ping timeout: 272 seconds]
ertes-w has joined #nixos
zzamboni has joined #nixos
nico202 has joined #nixos
jtojnar has joined #nixos
<nico202>
hi, how was the link to check how old a nixpkgs channel is? I keep forgetting about it
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pauldub>
Why does nixos-17.09-small get updated much more often than nixos-17.09? I'm not sure I understand the difference between the two of them.
<nico202>
manveru: Nice! herokuapp is more clear but this makes it clear that nixos-unstable is recently been updated... once a week in the last month
<vaibhavsagar>
pauldub: AFAIK nixos-17.09-small is nixos-17.09 without the binary cache
orivej has quit [Ping timeout: 252 seconds]
cfricke has joined #nixos
Itkovian has joined #nixos
a6a3uh has joined #nixos
<makefu>
pauldub: not really, -small only builds and tests a smaller set of packages, not all tests need to run through for this channel to be releases
dan_b has joined #nixos
alex`` has quit [Ping timeout: 265 seconds]
<pauldub>
Which explains why it is released more frequently, thanks!
<makefu>
exactly
asuryawanshi has joined #nixos
<cbarrett>
manveru: I've been working on discovering the requirements for this. I think it's going to be a fun project.
goibhniu has joined #nixos
<manveru>
can't say i know anything about cocoapods... it's some xcode library thing?
a6a3uh has quit [Quit: Bye]
<vaibhavsagar>
manveru: that's pretty much it, it's an Objective-C package manager
<vaibhavsagar>
there's a fun story about how they brought GitHub to its knees because they refused to organise their repo sensibly
<vaibhavsagar>
I'm not sure how that was addressed in the end but the repo structure seems unchanged
<flokli>
Aarch64, and they're aiming to support 'debian'
<hoverbear>
Hey wow that does look quite nice
<manveru>
vaibhavsagar: i think there was an issue with shallow clones as they used it?
periklis has quit [Ping timeout: 240 seconds]
<manveru>
it's been a while since i heard about this thing, but GH basically said that shallow clones are quite expensive to pull
<vaibhavsagar>
manveru: their tree is very flat, so even a small change creates a ton of new objects
i-am-the-slime has joined #nixos
<vaibhavsagar>
AIUI anyway
<dhess>
isn't GitHub really slow showing the contents of directories with a large number of entries?
<dpc>
It's so bloody hard to figure out what is calling what in Nix ...
<dhess>
in the web interface, I mean
<vaibhavsagar>
yeah
<vaibhavsagar>
but I think nixpkgs has more nesting than Specs
<vaibhavsagar>
and we don't rely on GitHub for all our fetching
<dhess>
so if Cocoapods was putting all their podspecs in one directory and every iOS developer was viewing the Cocoapods repo several times a day or whatever...
<NixOS_GitHub>
[nixpkgs] dhess opened pull request #33641: Revert "gcc, binutils: Get rid of 32-bit ARM configure flag exception" (master...gcc-armv7l-fix) https://git.io/vNtMp
NixOS_GitHub has left #nixos [#nixos]
fyuuri has joined #nixos
atrx has quit [Read error: Connection reset by peer]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
pmeunier_ has quit [Ping timeout: 256 seconds]
<dhess>
LnL: hmm a bit too hacky for me. I think I'll wait until it's merged.
<dhess>
LnL: is your nix-docker stuff still working with nix-darwin?
orivej has quit [Ping timeout: 248 seconds]
qknight has joined #nixos
<LnL>
yes, but you’ll need to configure it slightly differently when using the daemon
laumann_ is now known as laumann
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qknight>
hey! i've installed 'nix-env -i arandr -p paul' into the paul profile but how to activate it again, couldn't find it in the 'nix-env manpage' or help
coot has joined #nixos
<LnL>
./paul/bin/hello
arianvp2 has joined #nixos
a6a3uh has joined #nixos
<qknight>
LnL: thanks!
<joko>
Hello, a job in my Hydra server has status "Scheduled to be built", but Hydra does nothing. Any way to debug this?
<joko>
"journalctl -f -u hydra-queue-runner" shows '"nrUnfinishedSteps":6,"nrRunnableSteps":1', any way something is wrong? I remember LibreOffice needs something special
<joko>
dhess: more than a day
<LnL>
what kind of build is it?
<joko>
LnL: a NixOS system
<joko>
packages for a NixOS system *
<LnL>
well yes...
a6a3uh has quit [Ping timeout: 248 seconds]
<dhess>
joko: oh. :( so it's not just slowness due to useSubstitutes
<joko>
Maybe it's a missing supportedFeature? How to check this?
i-am-the-slime has quit [Ping timeout: 260 seconds]
<joko>
LnL: I'm not building LibreOffice, I've just mentioned it as an example
<LnL>
ah, misread that
<joko>
No worries... The derivation file doesn't mention anything about requiredSystemFeatures
JosW has joined #nixos
orivej has joined #nixos
coot has quit [Ping timeout: 268 seconds]
coot_ has joined #nixos
arianvp2 has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teozkr opened pull request #33642: Added JDK dependency to libguestfs (master...libguestfs-java) https://git.io/vNtQf
NixOS_GitHub has left #nixos [#nixos]
Itkovian has quit [Ping timeout: 256 seconds]
Itkovian_ has joined #nixos
ssmike has joined #nixos
blym has joined #nixos
<dhess>
joko: I assume you've tried to bump the job(s)?
zzamboni has quit [Quit: Leaving.]
<dhess>
sometimes if I've built the inputs already (via nix-build but using the same remote builders/binary cache as the Hydra uses), the jobs get stuck until I bump them, and then they instantly change to "successfully built"
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<taohansen>
are periods in interpolated strings ${foo.bar} translated as relative paths?
<taohansen>
so foo/bar?
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
Turion has quit [Remote host closed the connection]
simukis has joined #nixos
Neo-- has quit [Ping timeout: 248 seconds]
<dhess>
LnL: the tests in nix-darwin, I assume those run on the builder? There's no special virtual machine thing going on here, right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cillianderoiste pushed 2 new commits to master: https://git.io/vNt78
<NixOS_GitHub>
nixpkgs/master 880c9a2 Christian Kauhaus: symlinks: 1.4 -> 1.4.3...
<NixOS_GitHub>
nixpkgs/master 5057675 goibhniu: Merge pull request #33611 from ckauhaus/submit/symlinks-1.4.3...
NixOS_GitHub has left #nixos [#nixos]
<srhb>
taohansen: foo is an attributeSet, bar is the attribute you're interpolating
<LnL>
dhess: no, don't have any full integration tests
<joko>
dhess: I've just tried it, no luck :(
<srhb>
taohansen: (ie. foo = { bar = "value that will get interpolated"; })
<dhess>
joko: any other jobs running at the moment?
<joko>
dhess: I do so all the time, no change unfortunately
<dhess>
joko: do you just have the one remote builder for this particular job?
<joko>
dhess: I have just one, the local one
<dhess>
joko: ohh is the Hydra also the builder?
<taohansen>
srhb: i understand this partially. if foo imports a derivation that creates a node.js package, does bar then begin in the directory of that package?
<taohansen>
it's 3am, i think my brain is giving up
zzamboni has quit [Ping timeout: 260 seconds]
<dhess>
ugh yeah, 3am
<srhb>
taohansen: I think we're better off talking about a concrete example here, because I'm not sure I understand your question exactly. :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] AmineChikhaoui opened pull request #33643: pcstat: init at (shortRev 91a7346) (master...pcstat) https://git.io/vNt7F
NixOS_GitHub has left #nixos [#nixos]
<srhb>
taohansen: If foo = import SOMETHING, then in ${foo.bar}, bar is the bar attribute of SOMETHING.
zzamboni has joined #nixos
<taohansen>
srhb: okay, so i have this typescript app i'm trying to deploy. i've defined a systemd service to run it.
i-am-the-slime has joined #nixos
<srhb>
taohansen: Yeah, that's fairly typical. :)
<taohansen>
i need to make that typescript app available to systemd so i import its definition
<srhb>
Right.
<srhb>
You'll see "${pkgs.myPackage}/bin/executable" in a lot of NixOS modules
<taohansen>
let sister = import ./default.nix {pkgs=pkgs}; in "${nodejs}/bin/node ${sister.src}/index.ts";
<dhess>
joko: well anyway, if you Hydra is also the builder, that can be tricky, apparently. I was doing that originally and clever said there were cases where it could deadlock. I saw enough suspicious behavior that I eventually dumped that and put Hydra on a separate host than the builder.
<dhess>
joko: clever pointed out at least one place where there was some special-case code for "localhost" so if you want the Hydra to be a builder, you should probably call it "localhost" in your nix.buildMachines configuration
<srhb>
taohansen: It's passing the pkgs argument to the function you're importing, with the value of pkgs
<taohansen>
2. i basically have no idea how this let expression interacts with the path in in
<srhb>
taohansen: (it would be clearer as import ./default.nix { inherit pkgs };
<srhb>
taohansen: So, let's assume that default.nix produces a package that has a path foo
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ckauhaus opened pull request #33644: Update my e-mail address (master...update-mailaddr) https://git.io/vNt5m
NixOS_GitHub has left #nixos [#nixos]
<srhb>
taohansen: Then, "${sister}/foo" is that path
zzamboni has quit [Ping timeout: 265 seconds]
<taohansen>
srhb: i think that is most likely
<srhb>
taohansen: Try building that package by hand
<srhb>
taohansen: You should get a store path back
<srhb>
You can not inspect the file structure in it :)
zzamboni has joined #nixos
<srhb>
now*
<srhb>
er, and nixpkgs, not nixpgks
<ghuntley>
howdy folks in the middle of contributing a PR to add more DSL coverage. How does one do type conversion from bool -> true|false aka string?
<michaelpj>
the point is that I don't think that will do what you want, since for some inexplicable reason it prints true as 1 and false as 0
<joko>
dhess: I have indeed Hydra as a remote host with hostName "localhost"
<michaelpj>
ghuntley: I see a depressing amount of `${if x then "true" else "false"}` in nixpkgs :(
<dhess>
joko: what does `systemctl status nix-daemon.service` say?
zzamboni has quit [Ping timeout: 240 seconds]
<ghuntley>
funny enough for xrdp 0 and 1 is valid input for this setting, as is "yes|no" and "true|false".
<ghuntley>
ah yeah I've noticed similar patterns - still 48 hours new in the codebase.
<joko>
dhess: It's active (running)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vNtFY
<NixOS_GitHub>
nixpkgs/master 792d48b Sander van der Burg: titaniumenv: fix path to IPA build product
NixOS_GitHub has left #nixos [#nixos]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/vNtFn
<NixOS_GitHub>
nixpkgs/release-17.09 cc78f9a Sander van der Burg: titaniumenv: fix path to IPA build product...
NixOS_GitHub has left #nixos [#nixos]
<taohansen>
srhb: i'm calling it quits for tonight. too tired. i can look more thoroughly over your notes tomorrow . thanks for taking the time and the kindness
<dhess>
joko: well unfortunately I'm out of ideas. It could be that you've run into one of these corner cases. When this happens to me (it has happened maybe once or twice in the last week I've been running my Hydra), I usually resort to a reboot and that will un-stick the jobs. Not a great solution but I don't know enough about Hydra internals to debug any better than that at this point. :(
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<srhb>
taohansen: Catch you later :)
<srhb>
taohansen: (Sorry, i also got called away)
<ocharles>
Does anyone have a magic trick for writing default.nix expressions in projects, such that builds can be done that also share Hydra's builds? The problem I'm having is that somewhere I have `src = ./.`, which means that the final .drv's output is actually dependent on the name of the current directory
taktoa has joined #nixos
<ocharles>
In Hydra, I have a Git input, which will be added to the store as /nix/store/<hash>-git-export. If on another machine I just clone the git repository and cd into it, the output build will be different, because I'm not building from that exact path in the Nix store
<ocharles>
I wonder if I can do some import-from-derivation magic to kind of bootstrap from a source repository, and then switch into a predictable environment that would share Hydra's result
dan_b has quit [Ping timeout: 240 seconds]
Ivanych has quit [Ping timeout: 268 seconds]
zzamboni has quit [Remote host closed the connection]
<dhess>
LnL: ugh, *still* can't get remote builds to work from macOS to an x86_64-linux, even with nix-darwin installed and nix.buildMachines configured
<dhess>
what on earth am I doing wrong. I've like completely changed my Nix setup since the last time I had trouble with this, still can't get it to work
<dhess>
so frustrating
fyuuri has quit [Ping timeout: 260 seconds]
<domenkozar>
ocharles: best workaround is to use subfolder
<domenkozar>
ocharles: I never use ./. because of that
<ocharles>
I thought you might say that :(
<domenkozar>
as per my nixconf talk
<domenkozar>
./. is borked
<ocharles>
fortunately we're moving to a mono-repo so at least having a top level folder won't be a problem then
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<ocharles>
got info on that talk? I don't think I saw it
<joko>
dhess: that's ok, thanks for your help nonetheless :D
<domenkozar>
ocharles: yeah noone mentions my talk dissing nix :)
<ocharles>
haha
<Taneb>
Trying «nix-shell -p "python.withPackages (p: [p.tensorflow])"» doesn't work for me and I don't understand the error
<Taneb>
"ERROR: /tmp/nix-build-python2.7-tensorflow-1.3.1.drv-0/source/tensorflow/tools/pip_package/BUILD:100:1: no such package '@org_python_pypi_backports_weakref//': BUILD file not found on package path and referenced by '//tensorflow/tools/pip_package:licenses'.
<ocharles>
ta, will give it a watch
<Taneb>
"
c0c0n3 has joined #nixos
<c0c0n3>
hello, does anyone know how to set up PHP + xdebug?
<c0c0n3>
is that the recommended way to set it up?
pjan_ has joined #nixos
rardiol1 has joined #nixos
<joko>
dhess: I think I've found it! I had to declare the big-parallel feature in my updated services.hydra.buildMachineFiles file... I had also stumbled on the deadlock issue and after clever's suggestion I was using a file for Hydra other than /etc/nix/machines
randomstrangerb has quit [Ping timeout: 248 seconds]
<dhess>
ok that is definitely a sign it's time for sleep
lonokhov has joined #nixos
randomstrangerb has joined #nixos
<gchristensen>
time? way past time if you're where I think you are :P
<dhess>
you are correct, sir
<pjan_>
I'm getting tons of these: `download-from-binary-cache.pl: could not download ‘https://cache.nixos.org/v3ghkxnhhw606rdj0l4052502mbx6mk5.narinfo’ (Curl error 77)` after installing nix from scratch. No idea on how to solve this. Anybody any pointers?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej closed pull request #33641: Revert "gcc, binutils: Get rid of 32-bit ARM configure flag exception" (master...gcc-armv7l-fix) https://git.io/vNtMp
NixOS_GitHub has left #nixos [#nixos]
<makefu>
pjan_: just retry, sometimes s3 is a bit flaky. or if you are using a proxy you will have to set this beforehand
<pjan_>
no proxy. It's been like this for the past 3 hours :-/
<gchristensen>
77 is it can't read / findn the ssl CA certs
<pjan_>
how can this be solved? (beyond `export SSL_CERT_FILE=$NIX_SSL_CERT_FILE`, because that doesn't solve it atm)
patrl has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vNtpm
<NixOS_GitHub>
nixpkgs/master a18da9b Sander van der Burg: titaniumenv: add hack to reduce keychain blocking problems
NixOS_GitHub has left #nixos [#nixos]
pSub has quit [Ping timeout: 264 seconds]
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/vNtpZ
<NixOS_GitHub>
nixpkgs/release-17.09 041a04b Sander van der Burg: titaniumenv: add hack to reduce keychain blocking problems...
NixOS_GitHub has left #nixos [#nixos]
<makefu>
pjan_: can you try to curl the url?
i-am-the-slime has joined #nixos
<pjan_>
makefu that works. It doesn't work when I do anything nix-env though
<gchristensen>
how did you install "from scratch"?
<pjan_>
removed all traces of a previous install, started over with the bootstrap script
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jekor>
It does indeed seem to work (from preBuild).
mrkgnao has quit [Ping timeout: 265 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] dtzWill opened pull request #1786: release: appease checkMeta by using string for schedulingPriority (master...fix/schedprio-checkmeta) https://git.io/vNqvH
NixOS_GitHub has left #nixos [#nixos]
vidbina has joined #nixos
i-am-the-slime has quit [Ping timeout: 246 seconds]
kim0 has joined #nixos
<kim0>
folks, I'm new and slightly confused. I'm on the -unstable channel. I see pkg "electrum" version 3.0.5 is merged on github, but nix-env is still only see'ing 3.0.3 ... Why am I seeing this delay ?
<kim0>
so I guess nixpkgs-unstable is 4 days old ... which explains what I'm seeing
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] dtzWill closed pull request #1786: release: appease checkMeta by using string for schedulingPriority (master...fix/schedprio-checkmeta) https://git.io/vNqvH
NixOS_GitHub has left #nixos [#nixos]
<kim0>
When does it get refreshed
<srhb>
kim0: Read the top dropdowns :)
<srhb>
kim0: Short answer: When the tests for the channel (rightmost column) pass :)
<kim0>
Thanks! .. I'm trying to get the latest version to fix a security vulnerability
<kim0>
anyway I can pull that pkgs alone .. latest
<srhb>
kim0: Yeah. :)
<gchristensen>
kim0: are you on nixpkgs or nixos unstable
simukis_ has joined #nixos
<kim0>
pkgs
<srhb>
Oh
<kim0>
not that brave yet hhh
<gchristensen>
(I don't like that there are two -unstables!) kim0 so you're not using NixOS?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33649: schedulingPriority should be an int, fix check-meta type and in-tree use (master...fix/schedprio-int) https://git.io/vNqf1
NixOS_GitHub has left #nixos [#nixos]
<kim0>
no Ubuntu
<srhb>
Sorry, wasn't paying attention to that :)
<gchristensen>
ok cool
<kim0>
so basically I have to wait ?
oida has joined #nixos
<gchristensen>
yeah
simukis has quit [Ping timeout: 256 seconds]
simukis_ is now known as simukis
<kim0>
Okie
alex`` has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra closed pull request #33649: schedulingPriority should be an int, fix check-meta type and in-tree use (master...fix/schedprio-int) https://git.io/vNqf1
NixOS_GitHub has left #nixos [#nixos]
civodul has joined #nixos
i-am-the-slime has joined #nixos
excape has joined #nixos
<excape>
has anyone had trouble with charging over usb on nixos? When i connect a phone to my T450s, it stops charging after about 2 seconds (dmesg shows that it recognizes the phone)
ixxie has joined #nixos
randomstrangerb has quit [Ping timeout: 248 seconds]
<LnL>
hmm, nixpkgs-unstable still didn't update?
randomstrangerb has joined #nixos
<hodapp>
excape: using a T410 I've had no trouble here I can think of
<ckauhaus>
fpletz: just wondering that my two last PRs didn't get any auto-mentions
klntsky has quit [Ping timeout: 272 seconds]
nschoe has joined #nixos
klntsky has joined #nixos
bfrog_ has quit [Ping timeout: 255 seconds]
xcmw has joined #nixos
user__ has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
bfrog_ has joined #nixos
adc has quit [Quit: WeeChat 1.6]
cement has joined #nixos
<adisbladis>
etu: !!! \o/
<FRidh>
catern: checkout nix repo, and inside repo run e.g. `nix-build -A deb_debian8x86_64 release.nix`. Note this attribute may be commented out.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vNq3N
<NixOS_GitHub>
nixpkgs/master e114a5c Tim Steinbach: sbt: 1.0.4 -> 1.1.0
NixOS_GitHub has left #nixos [#nixos]
<catern>
FRidh: that's Debian 8, not Debian 7
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<catern>
I'm also curious what the Nix Debian package even does?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master fcc48cc Tim Steinbach: atom: 1.23.1 -> 1.23.2
<NixOS_GitHub>
nixpkgs/master f90ddfe Tim Steinbach: atom-beta: 1.24.0-beta1 -> 1.24.0-beta2
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vNqsA
NixOS_GitHub has left #nixos [#nixos]
<catern>
Does it just drop Nix into /nix/store?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] dtzWill opened pull request #1787: fix git cache 'corruption' when git not available, breaks all future use of fetchGit (master...fix/git-not-on-PATH) https://git.io/vNqGJ
NixOS_GitHub has left #nixos [#nixos]
erasmas has joined #nixos
iqubic has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vNqGy
<NixOS_GitHub>
nixpkgs/master dd86923 Tim Steinbach: oh-my-zsh: 2017-09-24 -> 2017-12-14
NixOS_GitHub has left #nixos [#nixos]
aarvar has quit [Remote host closed the connection]
Yaniel has joined #nixos
Mateon3 has joined #nixos
aarvar has joined #nixos
Mateon1 has quit [Ping timeout: 265 seconds]
Mateon3 is now known as Mateon1
xcmw has quit [Ping timeout: 268 seconds]
alexteves_ has quit [Ping timeout: 240 seconds]
jabranham has joined #nixos
alexteves_ has joined #nixos
amir has quit [Ping timeout: 248 seconds]
pxc has quit [Ping timeout: 265 seconds]
amir has joined #nixos
Yaniel has quit [Remote host closed the connection]
randomstrangerb has quit [Ping timeout: 240 seconds]
euniarte has joined #nixos
nschoe has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
nyberg has joined #nixos
Isorkin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thefloweringash opened pull request #33652: libvncserver: reduce dependencies; only use systemd on linux (master...libvncserver-deps) https://git.io/vNq8g
<kim0>
is there a way to know if updates WILL be installed .. like `yum check-update`
<kim0>
Here's what I need => I'm doing `nix-env -u` and if any updated were installed I want to restart a service!
<gchristensen>
oh so like NixOS :)
<kim0>
lol .. never played with that till now :/ only ubuntu
<gchristensen>
what kind of server? like a system service?
<kim0>
yes exactly that
<gchristensen>
man, this is usually when people take a look at nixos
<kim0>
I will :)
<kim0>
though for the short term .. If there's an easy fix, I'd love to know about it
sigmundv__ has quit [Ping timeout: 248 seconds]
<gchristensen>
well you could use Nix to build your service file, with hard-coded paths to the programs you care about, then `nix-build` the file and see if it points to the same .service file as the currently running one. if so, reload and restart it
<Lisanna>
Hmm, even with my shiny new SSD backing /nix and /tmp, 'nix copy' performance inside runInLinuxVM is still pretty abysmal. Only getting about 0.1MBps with gcc-6.4.0
<Lisanna>
it'll have short bursts of high performance, and then be reduced back down to a crawl
erictapen has quit [Remote host closed the connection]
<Lisanna>
any ideas on where the bottleneck could be here?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] griff opened pull request #33661: nixos/system: socket unit restart logic (master...socket-restart) https://git.io/vNqrR
NixOS_GitHub has left #nixos [#nixos]
<srhb>
I suspect it has more to do with filesystems and the image format than the hardware backing it. I experience the same thing, often.
<srhb>
(I guess this is more of an "I'd like to know too!" since I have no helpful advice :P)
macslayer has quit [Quit: Konversation terminated!]
rardiol1 has left #nixos [#nixos]
sigmundv_ has joined #nixos
<ogle>
Running into some thing strange... trying to install cudnn, and nix prompts me to fetch the tgz from nvidia. So I do so and run `nix-prefetch-url file://$PWD/cudnn-9.0-linux-x64-v7.tgz`, however I still get the prompt to fetch the url when I try `nix-shell -p cudnn`
xcmw has joined #nixos
dpren has left #nixos [#nixos]
ogle has left #nixos [#nixos]
Tucky has quit [Quit: WeeChat 2.0.1]
pSub has quit [Read error: Connection reset by peer]
michaelpj_ has joined #nixos
xcmw has quit [Ping timeout: 265 seconds]
xcmw has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
ech0_42 has quit [Remote host closed the connection]
<roconnor>
but when building extra-utils I now get the error
<roconnor>
output ‘/nix/store/mh68vbga4i9in0jl3jy8hb817wbwjhrn-extra-utils’ is not allowed to refer to path ‘/nix/store/widrvw5l3rygr8f0v9dfaxx4i1hyzs5x-crypto_scrypt.c’
<roconnor>
Anyone know what has changed and what this error means?
<fogbugzz[m]>
hi im switching many machines to nixos from arch and debian, its going very well, just a few details i would like to polish. Firstly, whats the recommended way to install firefox extensions in a declarative way? I saw there's now a nixos option for this, but I couldn't wrap my head around firefox nixpkg.
<roconnor>
pkgs/build-support/expand-response-params/default.nix seems to have an example of a work around to prevent the source file nix-store hash from appearing in the compiled binary
Itkovian has joined #nixos
<srhb>
roconnor: A very similar issue has popped up years ago on the mailing list it appears
<roconnor>
FWIW, I seem to have fixed the problem by changing buildCommand = "gcc ${src} -o $out -static" to buildCommand = "gcc ${src} -s -o $out -static" for my crypto_scrypt derivation!
ambro718 has joined #nixos
<roconnor>
(added a -s flag to gcc)
<srhb>
roconnor: Hmm. Worrying problem.
stepcut has joined #nixos
<roconnor>
No I think I understand what is going on.
jtojnar has joined #nixos
<roconnor>
I'm a little surprised that Nix's version of GCC or Nix's standard mkderivation doesn't strip this stuff from the generated executables.
simendsjo has quit [Read error: Connection reset by peer]
<srhb>
Store paths?
<roconnor>
no, source files.
<srhb>
Ah
simendsjo has joined #nixos
<roconnor>
which in this case happen to have store paths in them.
<srhb>
Is it normally illegal? I'm a bit surprised. I imagine the tracking would be quite difficult since we need to leave store paths intact...
<roconnor>
NixOS is worried about dangling references, especially when I copy my extra-utils to a /boot directory.
* srhb
nods
<roconnor>
This reference was harmless, but Nix doesn't know that.
brodul has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
i-am-the-slime has quit [Ping timeout: 240 seconds]
ssmike has quit [Ping timeout: 276 seconds]
phreedom has quit [Read error: Connection reset by peer]
<roconnor>
okay, gotta reboot now.
hotfuzz_ has quit [Ping timeout: 248 seconds]
nithor has quit [Ping timeout: 276 seconds]
coot has joined #nixos
xcmw has quit [Ping timeout: 264 seconds]
hotfuzz_ has joined #nixos
coot_ has quit [Ping timeout: 240 seconds]
the-kenny has quit [Ping timeout: 256 seconds]
the-kenny has joined #nixos
phreedom has joined #nixos
roconnor has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 4z3 opened pull request #33665: exim: add optional LDAP support (master...exim-ldap) https://git.io/vNq7q
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 5542e3c Matthew Pickering: haskell package set configuration clean-up...
<NixOS_GitHub>
nixpkgs/master 2280127 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vNq7V
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<srhb>
New highscore in weekly `find ~ -name result` \o/
nithor has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vNq5w
<NixOS_GitHub>
nixpkgs/master 17bdefd adisbladis: electron-cash: Only build on platforms.linux...
<kim0>
Unable to start the new "electrum" .. hitting this error => This application failed to start because it could not find or load the Qt platform plugin "xcb"
<kim0>
is this a bug ?
<adisbladis>
kim0: This is a qt impurity
<kim0>
oO
rardiol1 has joined #nixos
<adisbladis>
You probably have mixed qt versions in your systemPackages and your user env
<gchristensen>
adisbladis: what is qt doing that makes this happen?
<kim0>
I'm running nixpkgs over ubuntu
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/release-17.09 59661f2 adisbladis: electron-cash: Only build on platforms.linux...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to release-17.09: https://git.io/vNq57
thblt has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
jb55 has joined #nixos
<adisbladis>
gchristensen: It looks for its "platform plugins" (xcb, wayland, etc) in a funky way and tries to load one from the wrong Qt version.
<gchristensen>
:|
phreedom has joined #nixos
<adisbladis>
kim0: You installed it with nix-env? Maybe try upgrading all packages to the most recent version since they should all be built with the same Qt
<kim0>
adisbladis: yes ofc nix-env .. I don't have that many other pkgs tbh :)
<adisbladis>
kim0: And you didnt do anything strange such as installing qtbase into your env?
<kim0>
trying the upgrade anyway
<kim0>
You mean using nix-env .. not really
<adisbladis>
Ok :) Hoping that upgrading will work
<arianvp2>
hmm was just messing around with casync
<arianvp2>
and it has a file format catar which is very similar to NAR
orivej has quit [Ping timeout: 248 seconds]
nithor has quit [Ping timeout: 252 seconds]
<kim0>
adisbladis: I also use "electrum-ltc" .. which when I ran it .. spews lines like => `QFactoryLoader::QFactoryLoader() looking at "/nix/store/8g1714cgws6zhm3wh0xjssyfq9vlbisw-qt-4.8.7/lib/qt4/plugins/codecs/libqkrcodecs.so` .. but "electrum" does NOT
swayf has joined #nixos
<adisbladis>
kim0: Hmm.. That looks more right to me.
alex`` has quit [Read error: No route to host]
<kim0>
adisbladis: maybe it's crashing too early ?
<adisbladis>
kim0: And what does "readlink $(which electrum)" say
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<cinimod>
If I type `nix-channel --list` I get nothing
<cinimod>
Is that a problem?
<Aleksejs>
I think it will point to "default" channel
<kim0>
adisbladis: let me know if there's any other debugging we can try .. Thanks mate
<adisbladis>
kim0: Sadly all I can say at this point is that you most likely have some Qt version mixup and that this is a known error. Dont know where to go from here since debug isnt working and I need to go to bed.
i-am-the-slime has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #33603: stdenv: Force `doCheck` to be false when we are cross compiling (master...cross-check) https://git.io/vNI4b
NixOS_GitHub has left #nixos [#nixos]
<kim0>
adisbladis: When you say this is a known error .. is that referring to the github issue I pasted above ?
<adisbladis>
You could try playing around with QT_QPA_PLATFORM_PLUGIN_PATH as a workaround (env QT_QPA_PLATFORM_PLUGIN_PATH=/nix/store/absmwzh2qa8dxjfm920ij0zm2kn9yw04-qtbase-5.9.1-bin/lib/qt-5.9/plugins/platforms/ electrum) for example
<adisbladis>
kim0: Yes and a few others just like it
<kim0>
adisbladis: do you expect it to be resolved in a few days .. or is it a complex issue
<kim0>
with that env var .. Getting many lines like => QElfParser: '/nix/store/4wqa1whb42khic67rv9jgip30nxmaii8-python3-3.6.4/bin/2to3-3.6' is not an ELF object
mrkgnao has quit [Ping timeout: 265 seconds]
bennofs has joined #nixos
coot_ has joined #nixos
<infinisil>
cinimod: If you're on NixOS, you'll probably get output with sudo
coot has quit [Ping timeout: 276 seconds]
<cinimod>
I am *not* on nixos
<cinimod>
I am on OSX
<infinisil>
cinimod: if `nix-instantiate --find-file nixpkgs` doesn't give you an error you should be fine
michaelpj_ has quit [Ping timeout: 264 seconds]
<cinimod>
It gives `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
<infinisil>
ah, it seems to be using the root users channel too then (like on nixos), this might have changed since that tutorial got written. You'll get output with `sudo nix-channels --list`
alexteves_ has quit [Ping timeout: 248 seconds]
<cinimod>
infinisil: thanks
dbe_ has joined #nixos
chreekat has quit [Quit: quitting]
tmaekawa has quit [Quit: tmaekawa]
<kim0>
adisbladis: Thanks!! This `QT_QPA_PLATFORM_PLUGIN_PATH` trick makes it work for now .. Thanks a lot .. Hoping the real fix will land soon
<sphalerite>
hoverbear: the overlay isn't in default.nix, it's in rust-overlay.nix
<sphalerite>
hoverbear: you'll also need parentheses around rustChannelOf {stuff}
<hoverbear>
sphalerite: Can you help me understand the implication of this?
<infinisil>
hoverbear: and you'll need to link it to ~/.config/nixpkgs/overlays
<sphalerite>
infinisil: no, not if they put it in the nixpkgs import
<infinisil>
sphalerite: Ah right
nithor has quit [Ping timeout: 265 seconds]
<hoverbear>
It works if I do latest.rustChannels.nightly.rust :)
<infinisil>
but to use it in nix-shell it's much simpler to install it
<infinisil>
ahh, i didn't see his gist, never mind
<sphalerite>
oh, it does? Never mind the bit about default.nix vs rust-overlay.nix then
<sphalerite>
You do need the parens though, that should fix the error
<hoverbear>
Hmm, yes this fixes that particular error and now there is a new one Q_Q
<sphalerite>
hoverbear: the reason being that `rustChannelOf` and `{ date = "2018-01-09"; channel = "nightly"; }.rust` are otherwise interpreted as separate elemtns of the list
<hoverbear>
Ahhhhhh okay thank you this enlightened me =D
tmaekawa has joined #nixos
<hoverbear>
`(rustChannelOf { date = "2018-01-09"; channel = "nightly"; }).rust` this works, thank you infinisil and sphalerite
<sphalerite>
right, my guess was going to be that you put them in the ewrong place at first ;) glad you got it sorted
<catern>
hey #nixos, is there a function in Nixpkgs to take a derivation and construct a tarball containing its closure?
<sphalerite>
ooh and that reminds me, I need to try your fix for the x11 error in that game
<catern>
or do I have to write my own?
<catern>
(specifically, I want to build my own Nix bootstrap tarball)
<sphalerite>
catern: for building a nix bootstrap tarball, check release.nix in nixos/nix
<LnL>
I think thats's nix-build release.nix -A binaryTarball.x86_64-linux
<sphalerite>
I presume that has something along those lines, since that's what it does :)
<catern>
sphalerite: LnL: yes, sure, I know that
<catern>
but I don't want to have to pull down the Nix source separately
<catern>
I'd rather just use the Nix from Nixpkgs
<sphalerite>
catern: I don't think you need to, but you can still look at the implementation to work it out
<sphalerite>
It seems to use exportReferencesGraph
<Lisanna>
Just successfully pitched my Nix-based CI system to my coworkers
<sphalerite>
I still haven't really understood how that works
<Lisanna>
We're going to start slowly replacing our old crufty CI system with the one I've been building with Nix over the past few months :)))
<infinisil>
Lisanna: how does it differ from hydra?
<Lisanna>
infinisil it has a rudimentary constraint solver, CLI based, contains a full model of your software stack, dependencies, configuration options, etc.
<LnL>
infinisil: not perl? :p
<Lisanna>
^ also that :)
<catern>
sphalerite: "I don't think you need to " what?
<sphalerite>
I don't think you need to pull down the nix source separately
<catern>
oh, you mean you don't think I need to pull down the Nix source?
<catern>
but, I don't really want to copy and paste stuff from release.nix
<infinisil>
well if it has the functionality you want that's kinda the thing you want to do..
<catern>
the only thing in this Nix install script that isn't just a trivial tarball, is its creation of ".reginfo"
nithor has joined #nixos
<catern>
infinisil: no, I'd rather *invoke* release.nix :)
<catern>
to avoid copying and pasting code
<Lisanna>
I could end up slapping hydra on top as a front-end though
<infinisil>
catern: ah you mean to have some function in the nixpkgs library which does it?
<catern>
infinisil: yes
<infinisil>
catern: well you could make a PR to add it :)
MichaelRaskin has joined #nixos
<catern>
yes, fair, I could, but I tend to believe that there already is one :)
<sphalerite>
pkgs/build-support/release/binary-tarball.nix might be relevant
<sphalerite>
oh wait no
ckauhaus has quit [Quit: Leaving.]
<infinisil>
(btw, if you do it like nixpkgs/pkgs/build-support/release/binary-tarball.nix my bot will link to it :P)
tmaekawa has quit [Quit: tmaekawa]
<infinisil>
(damnit, it seems to not run right now, #fail)
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nithor has quit [Ping timeout: 252 seconds]
<Lisanna>
But the extra cool part is that now I can work on enabling Intel Parallel Studio as part of my regular job :)
<catern>
sphalerite: thank you for looking too, I also haven't been able to find any functions like this in Nixpkgs
jb55 has quit [Ping timeout: 248 seconds]
<catern>
tbh I'm pretty surprised actually, I would have thought this was basic functionality
<sphalerite>
catern: you could extend the aforementioned with closure functionality stolen from nix's release.nix
<dhess>
LnL: I got distributed builds working in the end. First I forgot 'distributedBuilds = true' (duh) and then I had to massage the known_hosts that I was installing
<dhess>
all good now
<sphalerite>
and then change nix's release.nix to make use of it ;)
<dhess>
pretty happy with nix-darwin so far
<catern>
sphalerite: binary-tarball.nix says "The resulting binaries are usually only useful if they are don't have any runtime dependencies on any paths in the Nix store, since those aren't distributed in the tarball." which sounds anti-useful?
<catern>
sphalerite: plus binary-tarball.nix builds from source anyway
<sphalerite>
hoverbear: BM's run script doesn't seem to have any non-sensible fiddling with LD_LIBRARY_PATH :(
<sphalerite>
catern: yeah, idk what the point is
<hoverbear>
sphalerite: :??
<LnL>
catern: the exportReferencesGraph is a bit weird and only used in a few places
pie_ has quit [Read error: Connection reset by peer]
<sphalerite>
hoverbear: you said you fixed an X error with some game by changing the script which was doing something wrong with LD_LIBRARY_PATH
pie__ has joined #nixos
Lisanna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
hoverbear: the same fix didn't apply to the game I was having trouble with, unfortunately
<hoverbear>
sphalerite: Oh, it was with steam-run
<LnL>
dhess: ah great, known_hosts part is easy to forget :)
<catern>
LnL: well, since I definitely needs exportReferencesGraph to do this, maybe I should grep for it :)
* catern
greps
<infinisil>
catern: btw, have you checked out ripgrep?
xcmw has joined #nixos
<LnL>
dhess: as for the buildMachines part, that should probably give a warning
<catern>
infinisil: "grep" is a generic term :)
Itkovian has joined #nixos
<catern>
(I'm actually using git grep for this, not that it matters)
<catern>
argh! where does pathsFromGraph come from??
<catern>
oh I see, it's in nixpkgs, and Nix uses it
<catern>
that's really confusing :)
i-am-the-slime has quit [Quit: Konversation terminated!]
<catern>
hmmm... so, okay. I can't quite decide. I want to deploy multi-user Nix on top of Debian en-masse. So far I've just been using the pre-built bootstrap tarballs, running the install script inside there, then patching the install to be multi-user
<catern>
an obvious improvement is to build the bootstrap tarballs myself, deterministically from Nix/nixpkgs
<catern>
but then I have to decide, should I package my install-multi-user.sh script inside that tarball? and then try and get it upstream?
<catern>
or should it be external?
simendsjo has quit [Ping timeout: 240 seconds]
nithor has quit [Ping timeout: 276 seconds]
<catern>
or should I not even be using the install script that upstream Nix puts inside the bootstrap tarball? after all that script is very much designed to be used for a single-user install
<infinisil>
catern: hm, I'd if it's generic enough upstream
<infinisil>
(reorder that sentence a bit)
<pie__>
ugh, pypi2nix failed building pypy on some dumb xml test now i have to wait three hours for it to build again
<pie__>
can i disable tests somehow
deepfire has joined #nixos
<pie__>
oh whatever ill just install it from main
jensens has joined #nixos
coot_ has quit [Quit: coot_]
<pie__>
...looks like that also wants to build it...
* pie__
sighs
<infinisil>
pie__: doCheck = false?
elisaado has joined #nixos
<elisaado>
Anyone got their yubikey working with gpg?
<pie__>
it tries to build it before it even gets to emitting nix files
<infinisil>
pie__: oh and i just see, there's 2 pypi2nix.. one by garbas and one by offlinehacker[m]
Itkovian has quit [Quit: Textual IRC Client signing off]
arianvp2 has quit [Remote host closed the connection]
<catern>
hmmmmmmmmmmm
<catern>
infinisil: well, I think I probably actually want to manage the Nix/nix-daemon/Nix build users configuration with the pre-existing configuration management that I use
<catern>
(okay, configuration management that I have access to - I don't actually use it myself yet :))
<catern>
And that rules out just running a script to deploy Nix
<infinisil>
catern: what's this "configuration management" thing you speak of?
nithor has joined #nixos
Itkovian has joined #nixos
stepcut has quit [Remote host closed the connection]
<catern>
Ansible/CFEngine/other tools that backwards traditional operating systems use to manage deploying software
Lisanna has joined #nixos
<elisaado>
Anyone know where libpcsclite is located? even `find` can't find it... I'm going nuts
<henk>
hi, I'm trying to install nixos on a thinkpad x200 that runs libreboot. nixos-install works just fine and a grub config is generated that i can load into the grub from libreboot. But when I try to boot, only the grub menu disappears and I am left with the grub background image and nothing else happens. No "Loading ramdisk" or anything. my /mnt/etc/nixos/configuration.nix: http://ix.io/DRV and
<henk>
/mnt/etc/nixos/hardware-configuration.nix; http://ix.io/DRW I have no idea where/how to start debugging or what might be wrong. Can anyone give advice what to do next?
<elisaado>
infinisil: Yep, it's this error:
Neo-- has quit [Ping timeout: 252 seconds]
<elisaado>
gpg: selecting openpgp failed: No such device
<elisaado>
gpg: OpenPGP card not available: No such device
<elisaado>
y
<samueldr>
catern: I'm not sure, but I think I'm deploying nixos as multiuser on debian
<elisaado>
I have even tried stuff from the arch wiki
<samueldr>
though, it's don in ad-hoc provision scripts
<sphalerite>
henk: I don't have any specific advice as to what to do from there but I do have some hopefully encouraging information — a friend of mine is successfully running nixos on their libreboot x200 :)
<samueldr>
henk: libreboot has which payload? uefi, mbr or grub? (not sure of the terminology)
<infinisil>
henk: my primitive advice would be to try a different bootloader, e.g. systemd-boot
<henk>
sphalerite: ha, that is good to know, thanks (:
<samueldr>
(that is, if your libreboot uses uefi)
<catern>
samueldr: if you are not sure then it might not be too useful :)
<Sonarpulse>
dhess: its odd
<catern>
hey #nixos, should I source .nix-profile/etc/profile.d/nix.sh or .nix-profile/etc/profile.d/nix-daemon.sh?
<Sonarpulse>
I briefly looked at your config.logs
<sphalerite>
infinisil: systemd-boot requires an EFI implementation which henk probably doesn't have
nithor has joined #nixos
<henk>
samueldr: grub, at least it feels and looks like one
<Sonarpulse>
and I didn't see any indication of the failure
<Sonarpulse>
dhess: to fix that one, I think we'll need to find the failure
<samueldr>
catern: confirmed, looked at the nix documentation, I'm deploying nix as multi-user
<sphalerite>
catern: for a multi-user setup my guess is nix-daemon.sh
<samueldr>
(I just wasn't sure if it meant what I thought it meant)
<catern>
sphalerite: yeah, I think so too, but the weird thing is that nix-daemon.sh seems strictly better/more functional than nix.sh
<dhess>
Sonarpulse: what are you referring to?
<catern>
even in single-user setups
<catern>
so why isn't everyone sourcing it?
<Sonarpulse>
dhess: the gcc failure before the revert
<Sonarpulse>
it's hard to tell what library was being built
<Sonarpulse>
but that one's configuring failed, failing the whole build
<Sonarpulse>
somewhere there is a config.log corresponding to that, I guess
<Sonarpulse>
and that should give us more details on what it didn't like about the --host and --build it was given
<dhess>
Sonarpulse: I put new config.logs and the full build dir tarball on Dropbox, see that closed issue
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aborsu opened pull request #33673: nixos/jupyter: init service (master...jupyter) https://git.io/vNmJp
NixOS_GitHub has left #nixos [#nixos]
<Sonarpulse>
dhess: yeah I did, I'll keep on looking
<Sonarpulse>
but just wanted to let you know what I am looking for
<dhess>
Sonarpulse: thanks
<Sonarpulse>
I'll try full build next
<dhess>
can you build on armv7?
<Sonarpulse>
dhess: I might be able to get access to a raspberry pi, but not yet
<dtz>
Sonarpulse: fixing the doCheck PR thing fixes the ensureUnaffected as well, just checked
<dtz>
:)
<dhess>
Sonarpulse: well if I have a chance in the next day or 2 I will run it with the fix, stop around the same point the other fails, and try to compare
<elisaado>
I have added yubikey-personalize to udev rules thingies
grumble has quit [Killed (Sigyn (BANG!))]
<henk>
elisaado: have you checked with lsusb if those IDs match? check with 'id' whether you are in the right group and with ls on the device in /dev/bus/usb whether the group was correctly set. Testing as root will probably start a gpg-agent and an scdaemon. maybe kill them and replug the key before testing as user.
dan_b has joined #nixos
grumble has joined #nixos
<elisaado>
henk: I even tried rebooting
<Sonarpulse>
dhess: the changes I made should be a zero-rebuild
<Sonarpulse>
if that helps
<elisaado>
WAIT WHAT
<elisaado>
ykamn now rosk
<dhess>
Sonarpulse: yes I expect so
<elisaado>
works*
<Sonarpulse>
dhess: I suppose I can just do it and check eval :D
<dhess>
Sonarpulse: I am just waiting for the *last* build to finish :(
<elisaado>
but gpg does not
<dhess>
of GHC I mean. gcc only takes ~1.5 hours :)
<dhess>
"only"
<elisaado>
IT WOROOOOTRKS
<elisaado>
IT WORKS!!!11
<elisaado>
i don't know what I did
nithor has quit [Ping timeout: 255 seconds]
<elisaado>
henk: THANK YOU
<elisaado>
Now let's see if it still works after a reboot
<dhess>
oh and look at that, GHC finally finished
<henk>
elisaado: don't give up! it took me quite a few hours before I got mine (not a yubikey, but pinpad reader) to work reliably. everything has to be right (:
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/vNmtk
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master b850eb3 John Ericson: Merge pull request #32489 from orivej/ed...
<LnL>
you probably want buildCores > 1 for builds like that :)
<dhess>
oh yeah
<dhess>
I forgot that I changed that
<dhess>
it's a hysteresis problem. I want buildCores 4 maxJobs 1 during gcc, ghc, and kernel, and then the other way 'round the rest of the time
<dhess>
however it's possible that this machine is memory/IO bottlenecked and not CPU, because I note that GHC's compile time did not significantly change when I flipped those 2 parameters.
<dhess>
would not surprise me
<LnL>
for ghc memory helps more than cpu IIRC
<dhess>
before I noticed that nix-build/Hydra were not accounting for load, I had buildCores 4 and maxJobs 4, and it tried to build ghc 8.0.2 and ghc 8.2.2 at the same time. I finally gave up after 16h
hiroshi has joined #nixos
<Sonarpulse>
dtz: another odd thing is log files are missing
stepcut has joined #nixos
<dhess>
anyway you are probably right, I should optimize for the really long builds and flip back to buildCores 4
<LnL>
think I've been using maxJobs 2 buildCores 4
<dhess>
that could be a good compromise, and hope that IO and CPU overlap between the 2 jobs
<LnL>
yeah also I have maxJobs 4 in nix.conf that way I can still build something when hydra is busy
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<dhess>
hmm interesting idea
<fresheyeball>
I am putting some openvpn stuff in my configuration.nix for work
<fresheyeball>
does doing this mean that now ALL my traffic is going to go through the vpn?
<fresheyeball>
I might have some nsfw traffic sometimes...
<dhess>
LnL: on the Hydra machine, Hydra uses the same buildMachines config as the host, right?
<dhess>
so like, nix-build on the Hydra will see the same remote builder configuration as Hydra sees?
<LnL>
depends, there's /etc/nix/machines and /var/lib/hydra/queue-runner/machines
<dhess>
huh, I was not aware of the latter
<LnL>
location might be slightly different, but you can configure it for hydra only
<catern>
is there any reason... not to do that regularly?
<catern>
because, that would be really useful as a way to unify "bootstrap Nix" and "upgrade Nix"
<gchristensen>
well why do it that way when you can just use nix to upgrade nix
<gchristensen>
the nix installer goes as quickly as possible from not-nix to nix
octobyte has joined #nixos
<catern>
well, because this way "bootstrap Nix" and "upgrade Nix" are unified? it's one single idempotent thing?
<LnL>
DROP TABLE ValidPaths;
stepcut has quit [Remote host closed the connection]
<catern>
aw!
<catern>
does it really drop all existing valid paths when I load-db?
<catern>
I didn't see that in the source...
<LnL>
don't think so, just a joke :p
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 0170512 John Ericson: Merge branch 'ericson2314-cross-master'
<NixOS_GitHub>
nixpkgs/master c305229 John Ericson: Merge commit '3ed545ab31146e607c57649936c75869d6aa9ba2' into ericson2314-cross-master
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/vNmqj
NixOS_GitHub has left #nixos [#nixos]
<catern>
okay, so... yeah, I think what I want is, I have a single script which, regardless of whether Nix is currently installed, outputs the location of a fixed Nix version
<catern>
and ensures that that Nix version has an initialized database which contains itself as a valid path
<catern>
this can be done very very simply indeed :)
Jackneilll has joined #nixos
<catern>
then, given that script, I can do the rest of my setup stuff...
<gchristensen>
one way to make it so is install if it isn't installed, then nix-store -r /nix/store/hash-your-favorite-nix-version
<catern>
that's fair too
<catern>
yeah, maybe that's what the script should do?
<LnL>
yeah, that should work
<dtz>
Sonarpulse: that's been happening with me too re:logs, lol, not sure what's going on there :)
<LnL>
catern: let nix = import <nix/config.nix>; in nix.nixBinDir
nixo202 has joined #nixos
<gchristensen>
:O
<dtz>
Sonarpulse: oh-- nvm I think logs working now. Think they weren't working previously b/c I had to restart pieces of Hydra manually. Maybe. Anyway hopefully things are good...
<catern>
gchristensen: "always use that version"? not sure what you mean
<nixo202>
How do I run automatically a command in a nix-shell file.nix from the cli? Like nix-shell -p package --run package but with the -p option and so on defined in the nix file
<gchristensen>
sorry, can't focus. good luck :)
<LnL>
if you know what path to nix-store -r you also know where nix-store is :)
<catern>
LnL: exactly, that's the point, I don't have the path to nix-store -r
<dhess>
Sonarpulse: got a patch I can try?
<catern>
so that's why "nix-store -r" is not a sufficient way to find the absolute paths of things
nico202 has quit [Quit: Leaving]
<dhess>
I'm building off a forked master right now so it's easy enough for me
<dhess>
(forked just enough to get arm working)
<dhess>
actually I can go back to upstream now that that arm cross thing was reverted
<catern>
LnL: also "let nix = import <nix/config.nix>; in nix.nixBinDir" also doesn't work because, of course, if I can evaluate Nix code, I already know where Nix is :)
<LnL>
yes, but you'd expand stuff to the full path when building the installer or whatever
<Sonarpulse>
dtz: I hope official hydra restarts too!
<Sonarpulse>
dhess: for which?
<catern>
yes, absolutely, but say that full path doesn't exist on the target system
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #33676: gcc, binutils: Narrow down ARM hack so only native builds are affected (master...less-arm-hack) https://git.io/vNmOG
NixOS_GitHub has left #nixos [#nixos]
<catern>
how do I make it appear there? I can't use the Nix tools - because that's what I'm looking for! so I need to bootstrap by hand whenever this happens
<LnL>
make a tarball of the nix closure
<catern>
which seems just fine, because I can just drop the closure into the Nix store and --load-db it in :)
<dhess>
Sonarpulse: "well i just narrowed down the arm hack"
<catern>
right! that's my plan :)
<Sonarpulse>
dhess: oh i just opened PR
<dhess>
oh
<Sonarpulse>
one sec
<dhess>
well there it goes :)
<catern>
whenever I start deploying with a new version of Nix, I'll have to copy the closure over and --load-db it in
<gchristensen>
but _why_
<dhess>
Sonarpulse: geeze how did that break cross builds? It shouldn't have changed anything!
<gchristensen>
install it if it isn't in the PATH, then it is in your PATH
<LnL>
that's the point, you don't need the reginfo stuff if you nix-store is enough
<Sonarpulse>
dhess: it broken cross compilers
stepcut has joined #nixos
nithor has quit [Ping timeout: 252 seconds]
<Sonarpulse>
because those have host == target
<Sonarpulse>
and are arm
kim0 has quit [Quit: Connection closed for inactivity]
<dhess>
Sonarpulse: ohh wrong *Platform
<catern>
LnL: could you say that again? didn't quite understand it "you don't need the reginfo stuff if you nix-store is enough"
<dhess>
Sonarpulse: I am very sorry. I wouldn't have PRed that if I had known. :(
<dhess>
it looked like it would only affect armv7l native builds. I guess that's what I get for trusting my eye
<catern>
I can copy over the closure into /nix/store to bootstrap a new version of Nix - but if Nix is already deployed, then I need to do a --load-db to ensure the validity of the deployed version of Nix
xcmw has joined #nixos
<LnL>
oh wait, the nix-store -r approach would redownload everything
<catern>
er, ensure the validity of the database used by the old, previously-used, already-deployed version of Nix
stepcut has quit [Remote host closed the connection]
<LnL>
that's probably not what you want
<Sonarpulse>
dhess: see what I just wrote. I wrote that thing (in addition to reverting it) and I didn't intend it to either! :D
<catern>
yes, right! also I assumed Nix would be very unhappy to see that there are already files in the path it wants to download to
<dhess>
Sonarpulse: I'm sorry that you're sorry :D
<dhess>
(little bit of Dr Strangelove humor there)
<catern>
but, yeah, I don't want to redownload everything (or redownload anything, in fact... because I might be deploying to a host that doesn't even have network access!)
<Sonarpulse>
dhess: hehehe
stepcut has joined #nixos
hke has quit [Quit: bye]
rardiol1 has left #nixos [#nixos]
stepcut has quit [Remote host closed the connection]
hke has joined #nixos
dywedir has quit [Ping timeout: 264 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hellrazo1 has quit [Ping timeout: 240 seconds]
hellrazo1 has joined #nixos
szicari has quit [Quit: szicari]
stepcut has joined #nixos
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/vNmsR
<NixOS_GitHub>
nixpkgs/master 98b3db2 John Ericson: Merge pull request #33676 from obsidiansystems/less-arm-hack...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master c98e6b6 John Ericson: gcc, binutils: Narrow down ARM hack so only native builds are affected
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
sigmundv__ has joined #nixos
nithor has quit [Ping timeout: 265 seconds]
alexteves has joined #nixos
spietz has quit [Quit: WeeChat 1.9.1]
<catern>
hmm
xcmw has joined #nixos
<catern>
it would be cool if the Nix bootstrap tarball was a self-extracting shell script
dag__ has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 246 seconds]
<catern>
I guess it would also be unnecessarily complicated too
<Havvy>
Do you /really/ need the "bot" in the nickname?
<makefu>
Dezgeg: with the current volume it is still manageable to look through most changes
srdqty has quit [Quit: WeeChat 1.9.1]
<samueldr>
the bot owner decided to add bot to the name, I guess
gm152 has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
MP2E has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sonarpulse>
dtz: so we're getting infite recursion on the fixed output thing
<Sonarpulse>
stdenv has a default native build input
<Sonarpulse>
that has a src
<Sonarpulse>
using fetchurl
<Sonarpulse>
etc
<Sonarpulse>
etc
fresheyeball has quit [Quit: WeeChat 1.9.1]
fyuuri has quit [Ping timeout: 268 seconds]
<dtz>
hmm, I'm not sure how much I've been using it but it just seemed like a good idea. I remember being like "why am I re-downloading all sources but with a platform suffix?!!" which presumably that fixes
<dtz>
d'oh re:recursion
ssmike has joined #nixos
<stephenjudkins>
is there any way to easily install nix under an arbitrary root?