xvapx has joined #nixos
dustmote has joined #nixos
dustmote has quit [(Client Quit)]
dustmote has joined #nixos
srodal has joined #nixos
<viaken> `which` is in /nix/store/*-system-path/bin/which. Why is system-path not in nixpkgs?
<viaken> Or, alternately, why would a package not be able to find which?
<viaken> (when building)
<ylwghst> viaken: building what?
<viaken> picolisp
<viaken> I'm trying to update the version in nixpkgs. 17.6 is current.
pxc has joined #nixos
dustmote has quit [(Remote host closed the connection)]
pxc has quit [(Ping timeout: 240 seconds)]
iqubic has joined #nixos
<iqubic> Well, using the latest kernel has not made my touchpad work.
<iqubic> This sucks.
<iqubic> Why the heck won
<iqubic> Why the heck won't my touchpad work on linux?
pxc has joined #nixos
<viaken> iqubic: Good question. Can you give us the lspci -nn for it?
iqubic has left #nixos []
<viaken> Well alright then.
iqubic has joined #nixos
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<iqubic> Sorry, accidentally disconnected.
<iqubic> What did you say?
<ylwghst> iqubic: are you using libinput?
<viaken> iqubic: No worries. I said: "Good question. Can you give us the lspci -nn for it?", then I realized it's probalby usb.
<iqubic> ylwghst: I am.
<iqubic> I have tried using synaptics too. That didn't work either.
<ylwghst> iqubic: can you gist your config?
<iqubic> I will
<Pneumaticat> so I just switched to nixos on my main computer and was wondering: is there any way to get the linux-ck kernel? I had it on Arch and it was quite helpful.
<Pneumaticat> It looks like making a new kernel package is easy in the main tree (e.g. https://github.com/NixOS/nixpkgs/blob/8525b78d054ac7ef2c43057d54403846b2d07ccc/pkgs/os-specific/linux/kernel/linux-4.13.nix), but I'm pretty inexperienced to nix, and I'm not sure how to add a custom kernel package out of tree.
<ylwghst> iqubic: which laptop?
<Pneumaticat> I see how to make a regular custom package at https://nixos.org/nixos/manual/index.html#sec-custom-packages, but I'm not sure how that translates. (specifically, how do I extend the generic kernel? how do I set the custom kernel as my kernelPackage?)
<iqubic> lenovo ideapad 320
<iqubic> There is my current config
<viaken> Pneumaticat: What differences did you see between it and mainline?
<Pneumaticat> viaken: basically just a patch set: http://ck.kolivas.org/patches/4.0/4.13/4.13-ck1/patches/
<Pneumaticat> and probably 2-3 CONFIG options
<viaken> Pneumaticat: I more meant experiential differences. Day to day stuff, what differences did you notice?
dustmote has joined #nixos
<Pneumaticat> oh! well I like running stuff like BOINC/CPU mining, and the desktop is much more responsive on it
<Pneumaticat> even when the system is pegged at 100% load
<Pneumaticat> (at least in my experience, I've heard some people don't notice a thing)
dhess has quit [(Remote host closed the connection)]
<viaken> gotcha
<ylwghst> iqubic: what says xinput --list?
dustmote has quit [(Client Quit)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/24c61cafa5 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<ylwghst> iqubic: try blacklist this kernel module i2c_hid
<iqubic> how do I blacklist that?
dbmikus has quit [(Ping timeout: 258 seconds)]
elninja44 has joined #nixos
<iqubic> ylwghst, why do you think that will help me?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4068703502 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
iqubic_ has joined #nixos
dhess has joined #nixos
<ylwghst> iqubic: last someone came here with same problem and we soleved this way
<iqubic_> Same model?
<ylwghst> not exactly
<iqubic_> lenovo ideapad 320?
<iqubic_> What model did they have. Do you know?
glenn has quit [(Ping timeout: 240 seconds)]
iqubic has quit [(Ping timeout: 260 seconds)]
glenn has joined #nixos
<ylwghst> iqubic_: does your laptopt have touch screen?
<iqubic_> No touchscreen here.
iqubic_ is now known as iqubic
dustmote has joined #nixos
glenn_ has joined #nixos
srodal has quit [(Ping timeout: 246 seconds)]
<dhess> anyone here running a NixOS build machine on a Kubernetes cluster?
<ylwghst> iqubic: have tried it?
dustmote has quit [(Client Quit)]
glenn has quit [(Ping timeout: 264 seconds)]
<simpson> dhess: I have imagined it. But no.
iqubic has quit [(Ping timeout: 260 seconds)]
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] utdemir opened pull request #30703: lastpass-cli: 1.1.1 -> 1.2.1 (master...update-lastpass) https://git.io/vdAgg
NixOS_GitHub has left #nixos []
glenn_ has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Ping timeout: 248 seconds)]
mkoenig has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
mkoenig has joined #nixos
Alling has quit [(Quit: Page closed)]
LnL has quit [(Quit: exit 1)]
LnL has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
xvapx has quit [(Quit: xvapx)]
xvapx has joined #nixos
mbrgm has joined #nixos
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 248 seconds)]
lambdamu_ has joined #nixos
lambdamu has quit [(Ping timeout: 248 seconds)]
<ghostyyy> is there something like boot.initrd.preLVMCommands, but after LVM?
<ghostyyy> i just want to run a line of bash code afterwards to clean up something
<ghostyyy> ah, boot.postBootCommands
<tobiasBora> Hello,$
xvapx has quit [(Quit: xvapx)]
pxc has quit [(Ping timeout: 240 seconds)]
glenn_ has joined #nixos
<tobiasBora> Someone here told me to use "nix-build release.nix -A build.x86_64-linux" to build the nix sources, but if fails due to 2 tests (does anyone knows why by the way ?). Is it possible to skip the tests, because I don't get any output because of 2 tests that fail out of 42
glenn has quit [(Ping timeout: 248 seconds)]
<samueldr> tobiasBora: which tests?
<tobiasBora> oh in fact it's abcdef that failed
<tobiasBora> samueldr: https://pastebin.com/uuhbqLXn
<tobiasBora> I can send you everything if you want
<samueldr> ah, nix, I was thinking nixos
<samueldr> (filed an issue earlier for a failing test with nixos)
<samueldr> sorry
<samueldr> though, the whole thing will probably help others that can help you
<tobiasBora> Ok
<tobiasBora> Here is the biggest part of my output
<samueldr> the 1234_abcdef shouldn't be an issue, looks like it's a placeholder https://github.com/NixOS/nix/blob/b2e00fd5b75e055832ff6dff97fb4fd016ba5d6f/release.nix#L1
<tobiasBora> the error seems to be related to: error: cloning builder process: Operation not permitted
<samueldr> you're building on which distro?
pxc has joined #nixos
<tobiasBora> debian
<ghostyyy> um why does nixos run the prelvm commands before the postdevice commands?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] veprbl opened pull request #30704: ipget: init at 0.2.5 (master...ipget) https://git.io/vdAak
NixOS_GitHub has left #nixos []
<samueldr> tobiasBora: linux-sandbox and build-remote are the two tests that failed
<tobiasBora> samueldr: what does it means?
<samueldr> I don't know yet :
<samueldr> :)*
mrkgnao has joined #nixos
<samueldr> under nixos the current HEAD revision builds and all tests pass
<samueldr> it's probably something with how it works under debian
Supersonic112 has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Ping timeout: 246 seconds)]
<samueldr> both fail with the same error, afaict
<samueldr> error: cloning builder process: Operation not permitted
pxc has joined #nixos
Supersonic112 has joined #nixos
<tobiasBora> strange...
<samueldr> I'm not the most knowledgeable on nix itself
<samueldr> but it looks like some kind of right issues with the way sandboxing works
<samueldr> someone in august had the issue with docker
<samueldr> tnks
<samueldr> in case anyone read my question above, the solution was just to run the nix-daemon container in Docker's "--privilege" mode.
<samueldr> (while using nix in docker)
pxc has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
<ghostyyy> i have a question - i have a LUKS encrypted root, that needs a command to be run before it can be decrypted, unfortunately, if i put this command in boot.postDeviceCommands and set the luks preLVM to true, its only run after it attempts to decrypt, and so it fails, whereas if i set preLVM to false, it tries to mount root before it decrypts it
<tnks> samueldr: I think you were just saying "thanks"... but I also have just started doing this.
<samueldr> I was quoting from a botbot.me log
<Li[m]> my nixpkgs repo is now 860mb ...
<tnks> (running multi-user/nix-daemon all in Docker)
<samueldr> it splits the name from the message when pasting in my client it seems
<tnks> samueldr: okay, then no coincidence it's all familiar to me.
<samueldr> :)
<ghostyyy> so, how do i run a command before the preLVMCommands, or delay mounting root until after the LUKS stuff is taken care of?
<samueldr> I could/should have linked the message instead of pasting
<tnks> I'm soon to publish a v2 of my example-nix stuff.
drp has quit [(Remote host closed the connection)]
ylwghst has quit [(Ping timeout: 240 seconds)]
<samueldr> it definitely looks like the user needs some rights to do the sandboxed builds, from looking at the C++ code
drp has joined #nixos
dieggsy has quit [(Ping timeout: 258 seconds)]
<tnks> We're using Nix for Haskell/C/Python stuff at work... and we're encountering all the stuff that garbas architects around.
<samueldr> I wouldn't recommend building as root as it's never the solution, and I don't know what's needed
<tnks> I really respect his take on things... but I think our community at work might be receptive to more Nix than that average ML-er.
<tnks> I think the big difference is we have people that don't even know Conda. They just know ML, so whether we ask them to write Nix or Conda, it's all kind of the same voodoo to them.
<samueldr> ghostyyy: you would need it at the top of preLVMCommands I guess?
<ghostyyy> so, if i have a LUKS device with preLVM = true; then preLVMCommands will be run before it attempts to decrypt it?
<ghostyyy> if its just the actual value of preLVMCommands or is generated from that + the LUKS devices values
<samueldr> the actual value of the config option
pxc has quit [(Ping timeout: 240 seconds)]
<samueldr> it's substituted there
srodal has joined #nixos
pxc has joined #nixos
<ghostyyy> ah i see
<samueldr> the thing is, the preLVM option also assigns to that preLVMCommands option
<ghostyyy> ahh...
<tobiasBora> samueldr: ok thanks, if anyone knows why I get this strange error: cloning builder process: Operation not permitted, please let me know !
<samueldr> I'm trying to find how, but I think there's a way to prioritize options
<ghostyyy> oooh
<samueldr> not entirely sure, but mkOverride looks like it
<samueldr> though, it says "values are discarded"
<ghostyyy> hm
<ghostyyy> yeah thats not what i want...
<samueldr> the thing is, I don't know how it works on "lines" type
<ghostyyy> i just want my line to be at the top =_=
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdAVU
<NixOS_GitHub> nixpkgs/master fd3bb25 Peter Hoeg: dropbox: 36.4.22 -> 37.4.29
NixOS_GitHub has left #nixos []
<samueldr> ah
<samueldr> mkBefore
<ghostyyy> ooooh
<samueldr> I knew there was a way, but it was filed so far away in my brain, had to read `lib/modules.nix` to find what even existed
<samueldr> if mkBefore / mkAfter isn't enough, it uses mkOrder with set values
hellrazo1 has quit [(Quit: WeeChat 1.9.1)]
<ghostyyy> that works!!!!!!
<ghostyyy> ohhh my god dude i have been working on this for literally days
<ghostyyy> thank you so much
pxc has quit [(Ping timeout: 252 seconds)]
* viaken got which passed to his build, but now is getting "wrong ELF type" errors, despite the object files being the same ELF type as working executables on his systems.
dustmote has joined #nixos
<dustmote> Can i chroot into an installed (but not bootable) nixos system after mounting the volumes directly? I'm not finding this in the nixos manual..
<dustmote> Are there additional required steps if i want to "nixos-rebuild switch" in the environment?
pxc has joined #nixos
<samueldr> there's a proper way to chroot
<samueldr> let me look it up
dbmikus has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
<dustmote> samueldr: ty; I'm searching for references on my phone so everything takes longer
<samueldr> afaict, it's nixos-install --chroot
<samueldr> assuming you mounted /mnt properly from the live install
<dustmote> I don't think i can run nixos-install again without a wired connection..
<samueldr> hmmmm
<dustmote> I'll try and see
<samueldr> this is what it does
<dustmote> All the necessary data should be in the /mnt/nix/store
<samueldr> and a couple of lines before
<samueldr> (the mount binds and other stuff)
<samueldr> it would probably work
mrkgnao has quit [(Ping timeout: 264 seconds)]
adisbladis has quit [(Remote host closed the connection)]
* jack[m] uses mutual recursion to solve a problem. Achievement unlocked!
adisbladis has joined #nixos
<jack[m]> (callPackageWith makes resolving dependencies much easier)
<viaken> Oh...it's the post-install fixup that's getting the ELF errors. Where can I find out what that's doing?
justanotheruser has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
<viaken> It's patchelf causing the problem.
<viaken> Or, at least, encountering it.
<viaken> Maybe because it's a static lib it's trying to patch?
dustmote has quit [(Quit: bye)]
dustmote has joined #nixos
mutagenf1rk has joined #nixos
mutagenfork has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
dbmikus has quit [(Ping timeout: 258 seconds)]
schoppenhauer has quit [(Ping timeout: 240 seconds)]
dustmote has quit [(Remote host closed the connection)]
schoppenhauer has joined #nixos
dustmote has joined #nixos
<dustmote> samueldr: the nixos-install --chroot worked, thank you
pxc has quit [(Ping timeout: 240 seconds)]
Wizek_ has joined #nixos
dustmote has quit [(Quit: bye)]
proteusguy has joined #nixos
pxc has joined #nixos
proteusguy has quit [(Max SendQ exceeded)]
orivej has quit [(Ping timeout: 258 seconds)]
endformationage has joined #nixos
<viaken> A) Do I need to be better about asking questions? I seem to not get answers often. B) Is there a way to have patchelf skip files?
<adisbladis> viaken: Most people in this channel are in the europe or US so a lot of people are asleep.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to release-17.09: https://git.io/vdAoe
<NixOS_GitHub> nixpkgs/release-17.09 f553043 Peter Hoeg: dropbox: 36.4.22 -> 37.4.29...
NixOS_GitHub has left #nixos []
<adisbladis> viaken: Also patchelf will skip statically linked binaries
<viaken> adisbladis: Fair enough, and I wonder what's going wrong then.
endformationage has quit [(Ping timeout: 248 seconds)]
<viaken> I'm getting this error message, and I don't know enough about ELF to troubleshoot: https://github.com/NixOS/patchelf/blob/master/src/patchelf.cc#L394
<clever> viaken: what does "file" say about that file?
Mateon2 has quit [(Ping timeout: 248 seconds)]
<viaken> src64/x86-64.linux.base.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
<clever> thats a .o file, it cant be patcheld'd
<clever> its only used at compile time
roi_du_silence has joined #nixos
<viaken> Then why is patchelf trying to patchelf it?
<clever> what derivation is doing this?
hellrazor has joined #nixos
<viaken> It's got an odd build process.
<clever> viaken: can you pastebin the entire error?
<viaken> clever: How do I force a rebuild, since apparently nix-build thinks it worked?
<clever> viaken: run "nix-store -l /nix/store/hash-foo-1.2.3" to pull up the logs
<viaken> nice
<viaken> Oh, I added "which" to the buildInputs, too.
<clever> ah, thats ths shrink-rpath hook
<clever> build-dir isnt supposed to be installed
<clever> thats just going to waste disk space
<viaken> I was following the older version for that.
<clever> uhhh, yeah, thats not right
pxc has quit [(Ping timeout: 248 seconds)]
<clever> try removing that line and see if it still works
endformationage has joined #nixos
<viaken> Yep, that gets rid of the errors.
<viaken> clever: Thanks!
hellrazor has quit [(Quit: WeeChat 1.9.1)]
<viaken> Ah
<viaken> build-dir was copied because it's got picolisp's examples/stdlib in it.
<viaken> I'll figure that out tomorrow. I'm on the right track now.
mutagenf1rk has quit [(Ping timeout: 248 seconds)]
<dhess> clever: do you know much about Hydra?
<clever> dhess: yes
<dhess> clever: so I want to set one up. It sounds like Hydra itself only runs on Linux and if I want it to build for macOS, I just need to set up a macOS build slave?
<clever> correct
Wizek_ has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
<dhess> clever: so on macOS, I've always used Nix in single-user mode. Does Hydra require all the nixbld users etc that come with a multi-user install?
<clever> all hydra requires is that "ssh user@darwin nix-store --version" can find nix-store, and that it can build things
<dhess> and presumably the Hydra build slave config specifies who "user" is?
<clever> and that the user it ssh's to can import unsigned storepaths (it either needs to be the single user, or be trusted in nix.conf)
<clever> yeah
<clever> builder@192.168.2.15 i686-linux,x86_64-linux /etc/nixos/keys/distro 3 4 big-parallel,kvm,nixos-test
<dhess> ok cool.
<clever> an example config from /etc/nix/machines (nixos can generate this file)
<dhess> oh I see, so just like remote-systems.conf
<clever> exactly the same file
<clever> nixos and hydra just assume that file is at /etc/nix/machines
<dhess> ok cool.
pxc has joined #nixos
<clever> and you can set nix.buildMachines in configuration.nix to generate it
<dhess> yeah, I already do that for remote builders from a NixOps deployment machine. I just run builds/deployments by hand, no Hydra yet.
<clever> builder@192.168.2.126 armv6l-linux,armv7l-linux /etc/nixos/keys/distro 1 2 big-parallel
<clever> it can also do arm builds on raspberry pi's if you wanted
<dhess> yeah I'm already doing that on my Jetson TK1 and TX1 (for aarch64) :)
<dhess> clever: ok last question, I think. Can I configure Hydra to use the standard binary caches so that it only builds what's unique for my nixpkgs?
<clever> yep
<dhess> awesome
<dhess> thanks!
<clever> services = {
<clever> hydra = {
<clever> useSubstitutes = true;
<dhess> useSubstitutes, ok
<dhess> I guess I'll just try installing it on my current deployment box since it already has so much of the other infrastructure ready to go
<clever> services.hydra.enable = true; does most of the setup
<dhess> huh, I had this impression that it was really a b*tch to set up
<dhess> I wonder if domenkozar ever got NixOps-deployed hosts to pull from a custom Hydra channel
srodal has quit [(Ping timeout: 258 seconds)]
<clever> dhess: it can easily pull from a hydra cache
<clever> dhess: behind the scenes, nixops just uses nix-build to build things on the deployer, so it obeys nix.conf as normal
mutagenfork has joined #nixos
<dhess> clever: he was working on something in the snabblab repos that auto-updated from a Hydra build
<clever> and when it does nix-copy-closure to push the changes out, it will obey the remote nix.conf
<clever> ah, i havent heard anything about fully automatic updating
<dhess> yeah this was WIP
<clever> this is an example hydra project
<clever> the 'nix expression' line refers to the entry point in a given input (listed below)
<clever> every input is in NIX_PATH, and fed as an argument to the default.nix
<clever> so line 3 refers to the nixpkgs defined in the inputs
<dhess> the rawfunc line?
<clever> the <nixpkgs>
<dhess> yeah
<dhess> ok thanks!
<clever> in the example-master jobset, it refers to nixpkgs master
<clever> and over here, it refers to nixos-unstable-small
jgertm has joined #nixos
<clever> so hydra is building the same thing, against 2 different channels
civodul has joined #nixos
<dhess> ahh ok, and the small one builds every hour
<dhess> and the other once a day
<clever> yep
<dhess> cool
<clever> and hydra expects that nix expression to return a set of derivations
<clever> and hydra will just build them
<clever> how you generate the set, and what platforms it contains, hydra doesnt care
<clever> dhess: with the right application of things like map, you can generate a variant of each job, for each platform
<clever> so now i have 32bit x86, 64bit x86, darwin, armv6, and armv7 builds of nix
<dhess> ahh yeah that's a good question. So if I have a NixOps deployment with a top-level machines/foo.net.nix, do I need a wrapper around foo.net.nix to get Hydra to build all the derivations that are required by that NixOps deployment?
<clever> yeah
<clever> hydra doesnt understand nixops
<clever> the simplest thing is to just build the large packages, load them up with callPackage and ensure you use the same nixpkgs and foo.nix in both hydra and nixops
<clever> but i have been working on some experimental things, to build the entire nixops deployment under hydra
<dhess> ok
<dhess> ok, your hydra-configs repo is very useful :)
<dhess> that should be enough to get me going
ma27 has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
Mateon2 has joined #nixos
roi_du_silence has quit [(Ping timeout: 240 seconds)]
LysergicDreams has quit [(Ping timeout: 258 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/f553043aa0 (from 78 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4068703502 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
orivej has quit [(Ping timeout: 252 seconds)]
LysergicDreams has joined #nixos
ma27 has quit [(Ping timeout: 252 seconds)]
srodal has joined #nixos
<fearlessKim[m]> I see many ways to get the clang headers, what's the canonical one ? adding clang.default_cxx_stdlib_compile to buildInputs ?
<clever> fearlessKim[m]: there is also clangStdenv.mkDerivation
<fearlessKim[m]> clever: this is for a python package using clang headers during its tests so I cna't use clangStdtdenv.mkDerivation I think https://github.com/NixOS/nixpkgs/pull/30473
<clever> dang
<ghostyyy> is there a way to start X in nixos manually? i have it running automatically as well but i would like to run two xorg sessions side by side
<ghostyyy> and switch between them with the framebuffer switch keys ctrl+alt+f7/f8
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] alexvorobiev opened pull request #30706: meritous: init at 1.4 (master...meritous) https://git.io/vdAiJ
NixOS_GitHub has left #nixos []
<ghostyyy> there is an article on the wiki that says to use xlaunch but that is not in the repos anymore
oida has quit [(Read error: Connection reset by peer)]
oida has joined #nixos
<ghostyyy> ah xinit
reinzelmann has joined #nixos
roi_du_silence has joined #nixos
glenn has joined #nixos
<clever> ghostyyy: there is still the problem that xorg needs root to access the gpu, and nixos lacks the setuid binary
Nobabs25 has joined #nixos
<ghostyyy> how does it get started by systemd then?
<clever> ghostyyy: systemd runs the display manager as root
glenn_ has quit [(Ping timeout: 240 seconds)]
<clever> and the DM then drops root for its login page, and also for the user after they have logged in
<ghostyyy> ah
<ghostyyy> is there some way to start another display manager on :1?
<clever> but things like xinit and startx, skip the login screen
<clever> why are you trying to that? i seems like a fairly difficult thing to setup
Nobabs27 has quit [(Ping timeout: 264 seconds)]
<ghostyyy> i want to run a video game which is nonfree software and i like to run those in another xorg as a security precaution since all xorg windows can read the contents of/keypresses to all other xorg windows
<clever> ahh
07IABLLQA has joined #nixos
<07IABLLQA> [nixpkgs] peterhoeg closed pull request #30623: webkitgtk 2.4: fixup build by using older icu again (master...webkit-icu) https://git.io/vdb0C
07IABLLQA has left #nixos []
7JTACPN8N has joined #nixos
<7JTACPN8N> [nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vdAiw
<7JTACPN8N> nixpkgs/master 0f0d110 Matt McHenry: webkitgtk 2.4: fixup build by using older icu again
<7JTACPN8N> nixpkgs/master 9b84775 Peter Hoeg: Merge pull request #30623 from jerith666/webkit-icu...
7JTACPN8N has left #nixos []
vandenoever has quit [(Ping timeout: 240 seconds)]
p4cman has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vdAi7
<NixOS_GitHub> nixpkgs/master ba4cefe Rostislav Beneš: aspell: added new patch data-dirs-from-nix-profiles.patch...
<NixOS_GitHub> nixpkgs/master 891c372 Frederik Rietdijk: Merge pull request #30234 from deedrah/aspell-data-dirs-from-nix-profiles...
NixOS_GitHub has left #nixos []
MercurialAlchemi has joined #nixos
jgertm has joined #nixos
simpson has left #nixos ["WeeChat 1.0.1"]
marusich has joined #nixos
katyucha has joined #nixos
contrapumpkin has quit [(Read error: Connection reset by peer)]
contrapumpkin has joined #nixos
dejanr has quit [(Ping timeout: 255 seconds)]
katyucha has quit [(Ping timeout: 240 seconds)]
dejanr has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
civodul has quit [(Ping timeout: 246 seconds)]
katyucha has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
zzamboni1 has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
leat has quit [(Quit: WeeChat 1.9.1)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
Nobabs25 has quit [(Quit: Leaving)]
<fearlessKim[m]> hum looks like I can't rebuild because "systemd-1 96M 96M 1,0K 100% /boot" :s
Wizek has quit [(Quit: Connection closed for inactivity)]
<clever> fearlessKim[m]: 96mb is pretty tiny, thats bound to run into issues
ertes has quit [(Ping timeout: 248 seconds)]
<clever> fearlessKim[m]: garbage collection can help, but you will want to make it bigger
nixos1022 has joined #nixos
<fearlessKim[m]> I've tried garbace collecting both as user and root but it doesn't free up space there though I can see different kernel versions initrams in /boot
<srhb> fearlessKim[m]: with -d ?
<srhb> Or better than that, some of the older-thans
<fearlessKim[m]> --delete-older-than 3D
<fearlessKim[m]> 3d*
<srhb> Ow.
<fearlessKim[m]> I've tried with only -d but it's still full :/ I feel like removing them manually
<hyper_ch> Mic92: you're our encrpyted zfs guru.... so what version of zfs is in unstable that is has encryption integreated? from what I gather 0.7.x doesn't have it
<srhb> fearlessKim[m]: Wait, you have more than one kernel there with sudo nix-collect-garbage -d ?
<clever> srhb: it might copy the new kernels in before deleting old kernels from /boot
* fearlessKim[m] sent a long message: fearlessKim[m]_2017-10-23_06:52:58.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/nFRHaFQxDWqntdjGemPlBHyV>
jaykru has joined #nixos
<jaykru> hi everyone
<jaykru> having some weird issues with mpd
<clever> fearlessKim[m]: try deleting one or 2 of those files, then redo nixos-rebuild boot
<jaykru> I'm trying to use it with a music directory contained in my personal home folder, so I configured the package to run under my user. mpd now sees my music files but I can't play any audio. my user is in the audio group so not sure what's up
jacob has joined #nixos
jacob is now known as Guest12551
<fearlessKim[m]> clever they all have the same timestamp. I deleted some of them and the rebuild is successful.
<clever> fearlessKim[m]: the rebuild will probably delete others, now that it see's the GC
<DIzFer[m]> jaykru: nothing weird in the logs?
adamt has joined #nixos
periklis has joined #nixos
<hyper_ch> Mic92: I also noticed that you could possible encrypt the whole pool and not just datasets: https://forums.freenas.org/index.php?threads/zfs-on-linux-native-encryption.57164/#post-402239 q7
<fearlessKim[m]> how much do you use for /boot ? 256 MB ?
freusque has joined #nixos
<clever> fearlessKim[m]: 512 or more
<clever> fearlessKim[m]: i also recently wrote this: https://github.com/cleverca22/nixos-configs/blob/master/rescue_boot.nix
<clever> fearlessKim[m]: it puts the entire nixos installer into /boot, at the cost of ~300mb
<clever> this code relies on grub, but it could probably be adapted to systemd-boot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] periklis closed pull request #30320: Init create-elm-app, elm-oracle and elm-test (master...init-elm-utilities) https://git.io/vdoCD
NixOS_GitHub has left #nixos []
<fearlessKim[m]> I might try to create another /boot on the hdd instead of the sdd. My worry is about the windows loader
leat has joined #nixos
<fearlessKim[m]> clever: sounds pretty neat
<clever> yeah, a new /boot for nixos would be safer i believe
<clever> brb
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] maximedenes opened pull request #30708: Partial revert of 89720d851aafe7be2aafc129fd729941a4db18af. (master...fix-quickchick) https://git.io/vdAMC
NixOS_GitHub has left #nixos []
roberth has quit [(Ping timeout: 240 seconds)]
<jaykru> DIzFer[m]: here's what systemd's telling me: http://ix.io/BEL
Ivanych has joined #nixos
<DIzFer[m]> try adding `log_level verbose`to your mpd config and trying again, maybe then it'll log something useful :/
<jaykru> haha I'll give it a try
<jaykru> thanks
<DIzFer[m]> possibly `log_level "verbose"`
glenn_ has joined #nixos
dynamicudpate has joined #nixos
katyucha has quit [(Ping timeout: 264 seconds)]
rburkholder has quit [(Ping timeout: 248 seconds)]
glenn has quit [(Ping timeout: 246 seconds)]
<jaykru> DIzFer[m]: should also mention that when I restart the daemon manually (vs. waiting for the first connection) I get this output http://ix.io/BEO
<jaykru> (this was the same iirc before adding more verbosity)
<jaykru> and just like that it's somehow working now
bennofs has joined #nixos
zzamboni1 has quit [(Quit: Leaving.)]
<jaykru> any ideas re: why it's not working with pulse? it's definitely working but seemingly puts a lock on audio output
zzamboni has joined #nixos
<fearlessKim[m]> clever: llvmPackages.libcxxClang seems to fix my previous problem :D
<sphalerite> so I'm trying to boot nixos on my chromebook. Issue is, I can't tell what's going on because the screen won't show anything. It doesn't have an ethernet port so I can't use the kernel's UDP logging mechanism, and it doesn't seem to leave anything in the journal… I don't know of any serial interfaces in it either (there probably is one but even if there is I don't have the kit to talk to it). Any ideas of what I could try?
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
ertes-w has joined #nixos
<clever> sphalerite: are you booting the same kernel it normally runs with?
Orbstheorem has joined #nixos
<sphalerite> clever: yes. The reason it's not displaying anything AFAIU is that it doesn't have fbcon and relies on the user space to draw stuff to the screen
<sphalerite> I'd like to see how far it gets in the boot and stuff though
<clever> sphalerite: ah, that could become an issue
<clever> sphalerite: does lsmod show anything when running the original OS?
<hyper_ch> hi clever
<clever> hyper_ch: hello
MercurialAlchemi has quit [(Remote host closed the connection)]
<hyper_ch> clever: do you know how I can find out zfs version?
<clever> hyper_ch: of the package or on-disk?
<hyper_ch> on disk
<hyper_ch> still wondering how I can have encryption when 0.7.x doesn't have it
<infinisil> modinfo zfs | grep -iw version
<infinisil> modinfo spl | grep -iw version
<sphalerite> zpool status should show it, no?
MercurialAlchemi has joined #nixos
<clever> nix-store -qR /run/current-system | grep zfs
<hyper_ch> version: 0.7.0-1
<infinisil> And realpath $(which zfs)
MichaelRaskin has quit [(Quit: MichaelRaskin)]
<hyper_ch> also, what's the difference between kmod and dkms?
<sphalerite> dkms is a Debian thing for building kernel modules
<hyper_ch> is kmod static in the kernel while dkms is just a standalone module?
<sphalerite> kmod I don't know
<Orbstheorem> Hi, I'm getting started with nixos, I manage to 'boot' my new system, but I can't get a tty or graphical manager to appear (ctrl+alt+{1,2,3,4,5,6,7} don't work). configuration.nix: https://paste.gnugen.ch/raw/TmZQ hardware-configuration.nix: https://paste.gnugen.ch/raw/6rOB
<Orbstheorem> This is what appears in the screen:
<hyper_ch> sphalerite: oh ok :)
<sphalerite> dkms isn't a module, it's a system for building modules in debian
<hyper_ch> because 0.7.3 was released a few days ago with support for dkms now
* Orbstheorem uploaded an image: file1508743999171.jpg (4622KB) - https://orbstheorem.ch/_matrix/media/v1/download/orbstheorem.ch/IzRlrHqgosxfpOCepAjQZZRI
<clever> hyper_ch: nixos doesnt support dkms
goibhniu has joined #nixos
<hyper_ch> still I don't get how we can have encryption when running 0.7.0
<hyper_ch> clever: need to see for a debian server to get enrypted zfs
<infinisil> Orbstheorem: Do you have a working system you can rollback to?
jaykru has quit [(Remote host closed the connection)]
<infinisil> Orbstheorem: I suggest you to start with a simple config, and add all the stuff you have there already later
<Orbstheorem> infinisil: nope :(
<Orbstheorem> I'm booting a live cd
<hyper_ch> oh, fresh user? :)
<sphalerite> Wasn't there a built-in for getting the location where something is defined?
<clever> nix-repl> builtins.unsafeGetAttrPos "fetchurl" pkgs
<clever> { column = 3; file = "/nix/store/q71jxrnm2a49s8hzfirm4ssri1x0lqqg-nixos-18.03pre118328.6d86fcb86d/nixos/pkgs/top-level/all-packages.nix"; line = 181; }
<Orbstheorem> the most 'complicated' part of the config are the mounts and the luks rootfs, but according to systemd it had no problems mounting my volumes and the system booted so no problem with luks either :)
<sphalerite> Orbstheorem: sometimes the kernel parameter nomodeset fixes that sort of issue
<sphalerite> Thanks clever!
<Orbstheorem> sphalerite: I need modesetting for wayland :(
* Orbstheorem likes wayland
roberth has joined #nixos
* hyper_ch has heard about wayland before...
<sphalerite> Orbstheorem: you can fix it properly in the installed system, but for the installer nomodeset is usually the easiest quick fix
<drp> I searched for getting sway and nixos working
<drp> some people claimed it was possible
<drp> but all dead ends, does anyone know if wayland is actually possible?
<Orbstheorem> how can I change the kcmd?
<infinisil> Would like to try out wayland too some time, so I'm interested in this too
<adisbladis> drp: I was running plasma under wayland the other day
<Orbstheorem> when I press 'e' on systemd-boot nothing happends and I can't find the option to change on configuration.nix :(
<adisbladis> I don't know how to port my synaptics config to libinput though :<
<infinisil> is libinput the New And Better Thing (tm)?
<adisbladis> Yes
<adisbladis> infinisil: Synaptics is pretty insane
<clever> Orbstheorem: boot.kernelParams = [ "param1" ];
<clever> Orbstheorem: and that e thing i think is only for grub
<adisbladis> But I run some pretty non-standard setup
<infinisil> I will wanna do that too, because my current trackpad config sucks, a lot
<infinisil> And synaptics was too weird to set up
<sphalerite> clever: no it should work on systemd-boot too
<adisbladis> My touchpad is just configured as a large scroll wheel ^_^
<adisbladis> You cant move the cursor with it, just scroll
<infinisil> adisbladis: Lol, so you use an additional mouse with it? And always take it with you?
<sphalerite> Heh, neat
<adisbladis> infinisil: No I use the trackpoint
<infinisil> Ohh, the nipple mouse
<adisbladis> And scroll on the touchpad with the thumb
<adisbladis> It's a pretty nice setup
rtjure has joined #nixos
<infinisil> How do you right click?
<adisbladis> infinisil: I have buttons?
<infinisil> Ohh I see, my trackpad doesn't have any you see
<adisbladis> infinisil: With synaptics you can setup soft buttons
<drp> adisbladis: well sheeeiii, got a nix? I'd like to know how someone set that up
<infinisil> Probably both synaptics and libinput would work, just takes a while to set up how i want it
<drp> I can only see one option which is services.xserver.gdm.wayland
<goibhniu> that sounds like a nice setup!
abcrawf has quit [(Remote host closed the connection)]
<goibhniu> did plasma work pretty well under wayland otherwise?
<adisbladis> goibhniu: Yes it did.
<adisbladis> Felt "smoother" somehow
<goibhniu> awesome!
<infinisil> I need that
* goibhniu is sick of screen tearing
* infinisil too
<adisbladis> goibhniu: I dont get tearing on X either
<drp> services.xserver.desktopManager.plasma5.enable = true; that's all I can see, does kdm just default to wayland now?
<goibhniu> you lucky devil!
<drp> kde*
<goibhniu> which channel are you on drp?
<infinisil> i mean i can run compton to get rid of most of the tearing, but then i get other weird glitches
<adisbladis> drp: Oh no, you'll have to stop your display manager service and use startplasmacompositor from the terminal. But it's pretty new in nix, not even sure it's in a channel.
thc202 has joined #nixos
abcrawf has joined #nixos
<sphalerite> "Upstream has indicated that they no longer test Plasma on Xorg." :o :D
<goibhniu> oh wow! the time has come!
<etu> Since Ubuntu now also ship wayland as default... Wayland is happening.
<infinisil> Now someone just needs to write the WayMonad window manager to write ones config in Haskell
adamt_ has joined #nixos
adamt_ has quit [(Changing host)]
adamt_ has joined #nixos
<drp> okay cool so wayland in nixOS is experimental, I am not missing something
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
<adisbladis> I still miss stumpwm...
adamt has quit [(Ping timeout: 248 seconds)]
betaboon has joined #nixos
kuznero has joined #nixos
<kuznero> Hi All!
<adisbladis> yo
<kuznero> What is homeless-shelter ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #30709: ripgrep: 0.6.0 -> 0.7.1 (master...ripgrep) https://git.io/vdA98
NixOS_GitHub has left #nixos []
<DIzFer[m]> jaykru: Does mpd have the ability to autodetect pulse outputs by default? I remember having to specify it manually on my config, maybe that's the issue?
p4cman has quit [(Quit: Connection closed for inactivity)]
adamt_ is now known as adamt
marusich has quit [(Quit: Leaving)]
Disavowed has left #nixos []
<Orbstheorem> 'nomodeset' didn't work ><
<infinisil> kuznero: homeless-shelter is a $HOME for the sandboxed builds
<sphalerite> aww
<sphalerite> Orbstheorem: are you using the graphical installer?
<Orbstheorem> Yep
<kuznero> infinisil: thanks, is that an ok practice to change it with something like: `tmp=$(mktemp -d) && HOME=$tmp ./build.sh` ?
qzd has joined #nixos
<infinisil> kuznero: Does homeless-shelter not work?
<kuznero> infinisil: nope, it says permission denied for me
<Orbstheorem> sphalerite: yes, I'm using the graphical installer
<sphalerite> Orbstheorem: maybe just use it in text mode instead (add systemd.unit=multi-user.target to kernel cmdline)
<infinisil> And $HOME is just an env var, programs could still look up the actual home which would still be homeless-shelter, but I guess it works for yours
pxc has joined #nixos
<infinisil> kuznero: The build already happens in a temp dir, you could use that instead
<infinisil> something like mkdir home && HOME=$PWD/home
<olejorgenb[m]> is there a trick to use docker on nixos? I couldn't find any service (other than dockerRegistery which I presume is something else). Running docker commands complain about missing docker daemon
<kuznero> It is a build.sh of a product I am wrapping into a nix package. So, I have limited access to it and setting HOME=$tmp in front of ./build.sh seems a lot simpler...
<olejorgenb[m]> starting dockerd manually did not help
<sphalerite> Orbstheorem: this is on a laptop with hybrid intel/nvidia graphics, yes?
<kuznero> infinisil: get your point
b has quit [(Quit: Lost terminal)]
<sphalerite> olejorgenb: virtualisation.docker.enable = true;
<sphalerite> Orbstheorem: or is it pure nvidia?
<Orbstheorem> sphalerite: yes, it's a lenovo p50
<Orbstheorem> Hybrid graphics**
<olejorgenb[m]> sphalerite: thanks! (must have missed the next button in nixos-options search..)
<Orbstheorem> sphalerite: I'm kind of surprised cause the graphical installer boots ok
rtjure has quit [(Ping timeout: 264 seconds)]
<sphalerite> oh you mean this is once you've already installed?
<sphalerite> I thought you were having difficulty booting into the installer
<sphalerite> sorry
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #30710: ion: 1.0.3 -> 1.0.5 (master...ion) https://git.io/vdAHn
NixOS_GitHub has left #nixos []
pxc has quit [(Ping timeout: 248 seconds)]
<sphalerite> In that case, try just adding `hardware.bumblebee.enable = true; hardware.bumblebee.driver = "nouveau";` to the configuration.nix and rerunning nixos-install
<sphalerite> That might fix it
dywedir has joined #nixos
<Orbstheorem> I added hardware.bumblebee... and boot.kernelParams = [ "systemd.unit=multi-user.target" ] to my configuration.nix
rtjure has joined #nixos
jophish has quit [(Ping timeout: 258 seconds)]
jophish has joined #nixos
dhess has left #nixos ["ERC (IRC client for Emacs 25.3.2)"]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/vdAHA
<NixOS_GitHub> nixpkgs/master f1f7296 Daiderd Jordan: cargo: fix darwin build
NixOS_GitHub has left #nixos []
rtjure has quit [(Ping timeout: 260 seconds)]
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
* Orbstheorem uploaded an image: file1508747377263.jpg (49KB) - https://orbstheorem.ch/_matrix/media/v1/download/orbstheorem.ch/ugqNmWtAaUXeuiFYuWbHsWOL
<Orbstheorem> :(
<Orbstheorem> still no tty :(
<sphalerite> huh
kuznero has joined #nixos
rtjure has joined #nixos
<kuznero> How to find out which package provides libz.so ?
<sphalerite> nix-index is helpful for that sort of thing. In this case, it's zlib you're looking for
<kuznero> seems that it is zlibStatic package....
<kuznero> thanks sphalerite
<sphalerite> no, it should be regular zlib
<kuznero> zlib does not have zlib.so, only zlib.a
<kuznero> sorry libz.so
<kuznero> only libz.a
periklis has quit [(Ping timeout: 240 seconds)]
<kuznero> sphalerite: hm, let me check again...
<kuznero> sphalerite: you're right! Thanks!
rtjure has quit [(Ping timeout: 246 seconds)]
<sphalerite> Orbstheorem: I don't know what's going on then… Sorry
<clever> olejorgenb[m]: https://nixos.org/nixos/options.html#docker.enable
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
rtjure has joined #nixos
<sphalerite> clever: any ideas for the chromebook? I've decided to try using a little init script that does `exec &> >(tee /var/log/init.log)` and says hello before execing /nix/var/nix/profiles/system/sw/bin/init, but it doesn't seem to create the log file
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #30711: Cherry-pick ghcjsHEAD upgrade on release-17.09 (release-17.09...release-17.09-ghcjsHEAD-upgrade) https://git.io/vdA7t
NixOS_GitHub has left #nixos []
p4cman has joined #nixos
ssmike has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
<sphalerite> clever: do you know if I can tell the kernel to just power off from a shell script?
<sphalerite> That is, without systemd running or anything
rtjure has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #30711: Cherry-pick ghcjsHEAD upgrade on release-17.09 (release-17.09...release-17.09-ghcjsHEAD-upgrade) https://git.io/vdA7t
NixOS_GitHub has left #nixos []
orbekk1 has quit [(Quit: WeeChat 1.9.1)]
<adisbladis> infinisil: You are using nixops to deploy your laptop right now, right?
orbekk1 has joined #nixos
<infinisil> adisbladis: Yes :D
<adisbladis> infinisil: Do you somehow share your /nix/store between these machines?
<infinisil> Nope, but I just noticed that apparently the built config isn't prevented from being gc'd
<infinisil> so i used ssh-substitutor-hosts to not having to rebuild it
<infinisil> I have a script which i could change to do that though
<adisbladis> infinisil: Because I build a lot of stuff that's not in the binary cache yet and this would be awesome to share between boxes
<infinisil> I mean you could add both machines as ssh substitutes for each other
<Orbstheorem> :(
<adisbladis> infinisil: Not too pretty but works I guess
<infinisil> Yeah
<infinisil> You could do that automatically
<infinisil> Since both my machines are managed with nixops, i could easily add each other machine to the ssh substitutors with a simple filter function
dnadales has joined #nixos
rtjure has joined #nixos
<dnadales> hi, I'm considering the possibility of packaging our software using Nix
<adisbladis> infinisil: Sounds like it would be good enough :)
<dnadales> but I have a couple of questions regarding: how the packaging process would work with a continuous delivery workflow
<adisbladis> Just have to figure out how to use ssh-agent with ssh-substituter-hosts
<dnadales> and whether our users will be able to have access to pre-compiled binaries
zzamboni has quit [(Quit: Leaving.)]
<infinisil> adisbladis: I think it should Just Work (tm) if you use the ssh-substitutor-host nix option and have root ssh access
<sphalerite> "how the packaging process would work with a continuous delivery workflow" very well :p
<dnadales> "very well :p" nice to hear :)
<adisbladis> infinisil: Well, root ssh access is a no-no but I can figure it out from here by myself :)
zzamboni has joined #nixos
rtjure has quit [(Ping timeout: 248 seconds)]
jb55 has quit [(Ping timeout: 248 seconds)]
<infinisil> Well, you need root ssh access to use nixops
<infinisil> afaik
<sphalerite> adisbladis: nix-serve could also be helpful for your usecase
<sphalerite> Dezgeg: is there a way to see what exactly is included in your arm binary cache?
<betaboon> adisbladis: i just recently stumbled upon that "problem" of root-ssh myself. i ended up going with this: https://gist.github.com/betaboon/1aa96559eed13d8408b9d91a631d9078
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #30712: systemd user services shouldn't run as root and other "non-interactive" users (master...f/service) https://git.io/vdAdT
NixOS_GitHub has left #nixos []
<adisbladis> I already spotted 'nix.sshServe', looks perfect to me.
<sphalerite> I think nix-serve might have less overhead, not sure though
<infinisil> betaboon: But on the server you still need normal root ssh access
<adisbladis> infinisil: Yes but for things like invoking "nix-shell -p ..." I wouldn't need root
<betaboon> infinisil: ofc. but i plan on allowing ssh from an internal vpn only anway, so the ability to restrict to ip is fine for me
<betaboon> infinisil: i am completly fine with nix running as root to deploy a machine. the reason for that seems obvious to me
<infinisil> adisbladis: Why would you need root for nix-shell otherwise? Don't get that part
rtjure has joined #nixos
<adisbladis> infinisil: If I want to use binary packages from my other machine?
ison111 has quit [(Ping timeout: 248 seconds)]
katyucha has joined #nixos
<sphalerite> adisbladis: you can set it as a trusted binary cache, or set up signing, to avoid the need for that
pxc has joined #nixos
rtjure has quit [(Ping timeout: 248 seconds)]
nixngo has quit [(Remote host closed the connection)]
<adisbladis> sphalerite: Yes maybe that's the way actually
pxc has quit [(Ping timeout: 240 seconds)]
rtjure has joined #nixos
ylwghst has joined #nixos
<ylwghst> brb
katyucha has quit [(Ping timeout: 240 seconds)]
glenn_ has quit [(Remote host closed the connection)]
<infinisil> adisbladis: Oh, so nix uses the nix-<command> invoking user's ssh keys for ssh substitutors?
<infinisil> Didn't think of that
glenn has joined #nixos
rtjure has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
demego has joined #nixos
glenn has quit [(Ping timeout: 248 seconds)]
katyucha has joined #nixos
<sphalerite> infinisil: I interpreted it as the problem being that regular users couldn't use the binary cache because stuff in it wasn't signed/the cache wasn't marked as trusted
mrkgnao has joined #nixos
<infinisil> I'm not sure if this applies to ssh, since it kind of implies trusting the machine already
rtjure has joined #nixos
<sphalerite> clever: so I've worked out that my init script is actually running by embedding a little C program that uses the reboot syscall into the nix expression for it
<infinisil> Can't test it right now
<clever> sphalerite: nice
<sphalerite> infinisil: not really...
<sphalerite> clever: however, it doesn't seem to want to write to any filesystems
<clever> sphalerite: one sec
ssmike has quit [(Ping timeout: 240 seconds)]
<clever> sphalerite: there is also rootfstype, and rootflags you could play with
<clever> but given that it can find init, the root is mounting (possibly read-only)
<sphalerite> already passing rootfstype, but yeah I'll try rw, thanks
<clever> sphalerite: nixos stage-2 will also try to remount it rw fairly early on
<infinisil> sphalerite: No? Hmm alright then
rtjure has quit [(Ping timeout: 246 seconds)]
<sphalerite> infinisil: you can ssh into a machine without trusting it, with the caveat that you can't disclose anything you don't consider public information (e.g. passwords) via the connection
<sphalerite> is there a nixos config option for setting kernel config options? That is, build params, not command line
<clever> sphalerite: some, one min
<sphalerite> ah ok so I'd have to do something like boot.kernelPackages = linuxPackagesFor (linux_4_9.override (stuff))?
ylwghst has quit [(Remote host closed the connection)]
<clever> sphalerite: yeah
<clever> in my case, i was using a packageOverride, so it was affecting the inputs of the existing linuxPackages sets
rtjure has joined #nixos
tanonym has joined #nixos
<sphalerite> right
rtjure has quit [(Ping timeout: 255 seconds)]
<tanonym> I am trying to get the US International layout to work in NixOS. But the us-intl does seem to be a valid identifier. Is there a list of the layouts NixOS supports somewhere? I'm not finding anything in the manual.
katyucha has quit [(Ping timeout: 246 seconds)]
<clever> sphalerite: another potentially fun kernel option, you can embed kernel params into the kernel binary
<clever> sphalerite: and you can even tell the kernel to ignore params given by the bootloader
<sphalerite> lol
<clever> i can see it being useful for hardening, or to deal with broken bootloaders
<sphalerite> thankfully depthcharge doesn't seem to be broken
zzamboni has quit [(Quit: Leaving.)]
<clever> sphalerite: oh, and is kexec available?
glenn has joined #nixos
<sphalerite> no, not in the stock kernel
<sphalerite> that would have made my life so much easier
<sphalerite> I'm going to build my own soon though
<clever> sphalerite: but having it in the nixos kernel may also be of use
<sphalerite> of course
<clever> sphalerite: for example, after you fail to boot whatever (as long as you can read the nixos FS), kexec over to the stock kernel & os
<clever> and boot the stock os as a crash kernel
<clever> so it can inspect the ram nixos left behind
rtjure has joined #nixos
roi_du_silence has quit [(Ping timeout: 255 seconds)]
<clever> ah, kexec_load_disabled + modules_disabled
<clever> a way to allow loading ring0 code at runtime, but then disable it for hardening
roi_du_silence has joined #nixos
nix-gsc-io`bot has joined #nixos
<sphalerite> Oh yeah, adding rw helped — init.log now gets created
<clever> Documentation/kdump/kdump.txt for further details.
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0183490c70 (from 70 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<clever> aha
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> however, it doesn't seem to ahve all the contents I want it to
<clever> sphalerite: are you using the nixos stage2?
<sphalerite> Yeah, previously I was using my reboot program but now I'm execing /nix/var/nix/profiles/system/sw/bin/init
zzamboni has joined #nixos
<clever> sphalerite: try /system/bin/init, no sw
<clever> [root@amd-nixos:~]# less /nix/var/nix/profiles/system/init
<clever> sphalerite: this one
rtjure has quit [(Ping timeout: 240 seconds)]
<clever> sw/bin/init is raw systemd, and omits a lot of the bring-up stage-2 does
<tanonym> Hm. I take it I need to install tor as well as tor browser to be able to use it in NixOS?
<sphalerite> aah ok
<clever> stage-2 is also what mounts the root rw
<tanonym> I think I need to reboot the system. Just did an upgrade from 17.03 to 09.
tanonym has quit [(Quit: WeeChat 1.9.1)]
<clever> exec > >(tee -i /run/log/stage-2-init.log) 2>&1
<clever> sphalerite: there is also something in stage-2 that can record the boot progress to that file
zzamboni has quit [(Ping timeout: 240 seconds)]
<sphalerite> I've already got `exec &>/var/log/init.log` in my init script. And /run/log isn't persistent so that one isn't helpful
sigmundv has joined #nixos
<clever> yeah
<clever> it would have to be patched
zzamboni has joined #nixos
adamt has quit [(Ping timeout: 240 seconds)]
rtjure has joined #nixos
<sphalerite> Will adding sync to the kernel params make the root filesystem get mounted with sync?
betaboon has quit [(Quit: WeeChat 1.9.1)]
<sphalerite> oOOOOH it rebooted itself! That suggests systemd is now working!
tanonym has joined #nixos
<clever> sphalerite: i dont see sync in the kernel flags
<sphalerite> oh it's probably rootflags=sync that I want
<clever> yeah, that sounds more likely to do something
<tanonym> exit
<tanonym> exit
<clever> tanonym: /exit
tanonym has quit [(Client Quit)]
zzamboni has quit [(Ping timeout: 240 seconds)]
<sphalerite> lol
<sphalerite> but since systemd is now running I don't think I need that
<clever> yeah
tanonym has joined #nixos
<sphalerite> I'll try just setting the init to profiles/system/init on the kernel cmdline
ylwghst has joined #nixos
rtjure has quit [(Ping timeout: 264 seconds)]
<sphalerite> YAY it handles the power button correctly as well now!
<clever> nice
zzamboni has joined #nixos
ma27 has joined #nixos
<clever> sphalerite: oh, now i remember how to power off and reboot from the shell
<tobiasBora> Hello !
<clever> [root@amd-nixos:~]# echo h > /proc/sysrq-trigger
<clever> [root@amd-nixos:~]# dmesg | tail
<clever> [1062186.379382] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z)
<sphalerite> aaah
<sphalerite> Oh well, my C program worked too :p
<clever> sphalerite: any of these special letters can be printed there, and will take immediate effect
<clever> o will just cut power, without even doing a sync
<tobiasBora> I'm back to see if someone has some idea with I can't build nix on nix. Here are the full description: https://github.com/NixOS/nix/issues/1625
<clever> sphalerite: you can also trigger this with <break>o over the serial port
<tanonym> There we go. Still getting used to weechat. Trying to memorize the i3 shortcuts
<sphalerite> if I had a serial port that I have access to this whole thing would have been significantly easier :p
ylwghst has quit [(Client Quit)]
simukis has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
rtjure has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdAjb
<NixOS_GitHub> nixpkgs/master f73ad01 Joerg Thalheim: nodePackages.web-ext: init at 2.2.2
NixOS_GitHub has left #nixos []
rtjure has quit [(Ping timeout: 248 seconds)]
zzamboni1 has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30709: ripgrep: 0.6.0 -> 0.7.1 (master...ripgrep) https://git.io/vdA98
NixOS_GitHub has left #nixos []
rtjure has joined #nixos
zzamboni1 has quit [(Remote host closed the connection)]
adamt has joined #nixos
rtjure has quit [(Ping timeout: 248 seconds)]
<seequ> Where does nixos store service.compton's config?
<clever> seequ: its directly in the store, and only the systemd service file has the path
yegortimoshenko has joined #nixos
<clever> seequ: line 10-38 shows how it gets generated
<seequ> clever: What do you not have an answer for?
<clever> seequ: lol
rtjure has joined #nixos
<seequ> thanks
mutagenfork has quit [(Ping timeout: 260 seconds)]
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
bennofs has quit [(Ping timeout: 246 seconds)]
rtjure has quit [(Ping timeout: 248 seconds)]
SOO7 has quit [(Ping timeout: 246 seconds)]
simukis has quit [(Ping timeout: 240 seconds)]
<tanonym> Been looking through wiki and manual for NixOS, it's not clear to me whether I need to install NixOS first or last if I want to have other distros running, say Ubuntu or openSUSE.
<gchristensen> I don't think order will matter
ssmike has joined #nixos
SOO7 has joined #nixos
<etu> If it's an UEFI system, the order will matter less than on MBR
ssmike has quit [(Remote host closed the connection)]
simukis has joined #nixos
<Yaniel> linux distros should get along nicely in either case
goibhniu has quit [(Remote host closed the connection)]
goibhniu has joined #nixos
dieggsy has joined #nixos
<seequ> Windows otoh should be installed first if you want to avoid pains.
adamt has quit [(Ping timeout: 252 seconds)]
<Yaniel> and if you have UEFI you can prepare for pains regardless :P
* Yaniel 's windows installation routinely rewrites the UEFI boot order
<etu> seequ: afaik windows behaves quite okay when it comes to UEFI, it finds the efi-boot-partition and uses it together with other systems
simukis has quit [(Client Quit)]
bennofs has joined #nixos
bin has joined #nixos
<clever> etu: i think it also depends on the UEFI implementation, some dont give you a choice between the registered bootloaders
rtjure has joined #nixos
<etu> clever: ouch, yeah, that's true.
simukis has joined #nixos
<clever> etu: ive also heard of some, that dont let you delete a given bootloader if the UUID it refers to is missing from the disk
<clever> etu: so if you wipe the disk first, you can never remove that bootloader from the efi vars
<etu> clever: Mine was quite shitty before I did an upgrade of my UEFI... At first it could only boot bootloaders where the files was named the same as microsoft would name them. But grub2 booted fine after I've renamed the binary.
<clever> etu: personally, ive never once gotten uefi to work
<etu> Oh
<clever> legacy boot partition on gpt, on every machine
<clever> but oddly, ive helped a number of users in here sucessfully install with efi
* etu use UEFI more or less everywhere
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] phunehehe opened pull request #30714: git-crypt: add runtime dependencies to PATH (master...git-crypt-path) https://git.io/vdxfh
NixOS_GitHub has left #nixos []
glenn has quit [(Ping timeout: 264 seconds)]
<etu> Except a few boxes that is too old
ma27 has quit [(Ping timeout: 248 seconds)]
<clever> etu: one other issue i ran into with my main desktop
zzamboni has joined #nixos
<clever> etu: if EFI is on, it always boots first, and it ignored the boot priority configured in the bios
<clever> etu: its almost like the boot priority is within the CSM module, and CSM only runs if EFI fails
ssmike has joined #nixos
<clever> so i had to entirely disable EFI booting to get legacy grub to even start
<etu> My first box with UEFI couldn't boot from fat32, it needed fat16. This made it hard to follow guides on the internet before I realized that since I didn't know what I did wrong.
<clever> ive also heard that the apple uefi supports HPFS+ for the efi system part
<sphalerite> kmscon isn't in dezgeg's binary cache :(
roi_du_silence has quit [(Ping timeout: 248 seconds)]
rtjure has quit [(Ping timeout: 240 seconds)]
<etu> clever: But if you have an efi-implemantation that plays nice enough, I prefer it to mbr any day when it comes to running more than one system.
<tanonym> gchristensen: thanks. So as long as I give each distro it's own partition and point them at my boot partition they won't go and nuke the NixOS configs?
<sphalerite> etu: HFS+*?
<clever> etu: yeah, i can see efi being better, because you dont have to configure one as a master, and chainload the others
<sphalerite> Err, that hl was meant for clever
<clever> sphalerite: one of those, i dont use darwin much
ssmike has quit [(Remote host closed the connection)]
<clever> tanonym: you will want to make sure they dont overwrite the nixos grub config when they do kernel updates
<tanonym> What's the best way to ensure that?
<tanonym> Besides not letting them update?
<dieggsy> Has anyone successfully installed Chicken scheme with nix?
ma27 has joined #nixos
<clever> tanonym: either seperate /boot's or disable the script that manages grub config
<sphalerite> tanonym: or use systemd-boot
ssmike has joined #nixos
glenn has joined #nixos
rtjure has joined #nixos
<tanonym> So have Ubuntu put its GRUB on the partition it's installed to rather than /boot?
bennofs has quit [(Ping timeout: 240 seconds)]
<clever> tanonym: that could also work, just dont give ubuntu a /boot partition, and leave it using the /boot directory of /
<tanonym> I know nothing about systemd beyond a few commands here and there related to getting my connman wifi working.
<clever> tanonym: as long as the nixos grub can read the ubuntu / to read out kernels
<tilpner> dieggsy - Yes, on NixOS
<clever> EFI would likely work differently though
<dieggsy> tilpner: ah, hmm. I'm not on nixos but chicken-install isn't working for me.
<tilpner> What package are you trying to chicken-install?
<dieggsy> tilpner: any of them. tries to use /usr/local/bin/csc instead of ~/.nix-profile/bin/csc for whatever reason.
<Yaniel> just don't install a bootloader with the other ones?
<Yaniel> all the graphical installers I've used have the bootloader as an optional setting in the wizard
<ertes-w> fp: writeText (builtins.baseNameOf fp) (builtins.readFile fp) # is this predefined somewhere?
<tanonym> Well, worst that happens is I can't select them to boot up and then I'll have to fix that.
rtjure has quit [(Ping timeout: 240 seconds)]
<tanonym> Time to boot up Ubuntu and start making additional paritions.
datakurre has quit [(Remote host closed the connection)]
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #30714: git-crypt: add runtime dependencies to PATH (master...git-crypt-path) https://git.io/vdxfh
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdxUG
<NixOS_GitHub> nixpkgs/master 3983d79 dywedir: ion: 1.0.3 -> 1.0.5
<NixOS_GitHub> nixpkgs/master fd7fe95 Jörg Thalheim: Merge pull request #30710 from dywedir/ion...
NixOS_GitHub has left #nixos []
<goibhniu> Any volunteers to help out a bit with the video for NixCon?
ma27 has quit [(Ping timeout: 264 seconds)]
joelpet has quit [(Ping timeout: 246 seconds)]
<tilpner> dieggsy - Oh, right. You need to set CHICKEN_REPOSITORY to a writable path
<tilpner> dieggsy - After you did that, chicken-install, csc, and csi should work as expected
tanonym has quit [(Quit: WeeChat 1.9.1)]
<tilpner> (Maybe ~/.local/share/chicken/)
<dieggsy> tilpner: it already is... or would i have to set that up after installing this instance of cicken
pxc has quit [(Ping timeout: 240 seconds)]
<dieggsy> ...i probably do don't i
<tilpner> Why do you think it already is?
rtjure has joined #nixos
<dieggsy> tilpner: because i've used chicken extensively before, it's just my first time trying to install with nix
<tilpner> Hmm, there is a patch
<dieggsy> e.g. i already have CHICKEN_REPOSITORY set. the patch is being applied. I'll try to re-init CHICKEN_REPOSITORY and see if that works
<dieggsy> though IIRC the patch is only to allow multiple paths
abbradar has quit [(Remote host closed the connection)]
<tilpner> I have only used Chicken interactively, not during Nix builds
<tilpner> (But installed with Nix)
<dieggsy> tilpner: and it "just worked" ?
<sphalerite> goibhniu: what sort of help? I'm not an expert but I'd be glad to help in any way I can
<tilpner> After setting CHICKEN_REPOSITORY, it did
dnadales has quit [(Ping timeout: 252 seconds)]
iyzsong has joined #nixos
bennofs has joined #nixos
<dieggsy> tilpner: ah, ok. i'm gonna assume i have to do that after every fresh install. i'll let you know
<dieggsy> *shrug*
<tilpner> Maybe the package should build a few wrappers, to set that path automatically
<roberth> hi, I'm getting a permission denied error during Nix installation on Ubuntu on WSL
<dieggsy> tilpner: would probably be a good idea, it already wraps to find gcc
rtjure has quit [(Ping timeout: 260 seconds)]
<roberth> it happens when cp tries to move a directory inside /nix/store. Does anyone know about this issue?
<sphalerite> roberth: not sure if nix works on WSL at all, but could you give some more details?
<roberth> it used to work. I have made two working installations for a client, but now the third is failing
<sphalerite> Do you have a complete log?
<sphalerite> "Warning: rewriting hashes in 'storepath'; cross fingers"
* sphalerite crosses fingers
ma27 has joined #nixos
<dieggsy> tilpner: welp, after setting up CHICKEN_REPOSITORY again, seemed to do the trick. The chicken website also says it needs to be re-set up after upgrading so that should have been a hint
<dieggsy> (i'm getting other errors now, but well at least i can move on to those)
<tilpner> dieggsy - How are you setting CHICKEN_REPOSITORY?
<dieggsy> tilpner: more specifically you need to chicken-install -init again is what i meant
rtjure has joined #nixos
<roberth> sphalerite, here's the log https://pastebin.com/ExR25nSi
<roberth> the permissions of /nix and /nix/store are ok though...
<sphalerite> Oh, I was about to ask about that >.>
rtjure has quit [(Ping timeout: 248 seconds)]
<sphalerite> The joys of building LLVM on arm...
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
<goibhniu> sphalerite awesome, thanks! If you can help people clip on their mics, plug in their laptops and maybe point the camera a bit too, that would be greatly appreciated!
<clever> sphalerite: ive blown 9h21mins building gcc, twice yesterday
<clever> sphalerite: when hydra restarted the job, it destroyed all logs, so i had no way of finding the cause of the failure
<clever> sphalerite: and after the 2nd failure, something else snuck into the queue long enough to keep the logs alove, ENOSPC
<clever> its now 6 hours into a 3rd attempt
katyucha has joined #nixos
<seequ> Is there a way to set more RAM for nixos VMs?
<hyper_ch> ?
<seequ> (the ones created by nixos-rebuild build-vm)
dieggsy has joined #nixos
glenn has quit [(Ping timeout: 264 seconds)]
rtjure has joined #nixos
Wizek has joined #nixos
<clever> seequ: yes
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] emanueleperuffo opened pull request #30716: libreoffice: add Italian language (master...libreoffice-lang-it) https://git.io/vdxkw
NixOS_GitHub has left #nixos []
<seequ> Ahh, I didn't even realize virtualisation had those
<seequ> nifty
<clever> seequ: that module is only in scope if you use build-vm, so all the docs will omit them
<joko> Hey, is there a way to re-install a derivation?
aloiscochard has joined #nixos
katyucha has quit [(Ping timeout: 260 seconds)]
<sphalerite> joko: why?
<sphalerite> It doesn't usually make sense because of how nix works
rtjure has quit [(Ping timeout: 240 seconds)]
katyucha has joined #nixos
glenn has joined #nixos
<sphalerite> goibhniu: I think I can do that :D
<sphalerite> clever: fun
<clever> sphalerite: also, when nixos-rebuild tries to fetch the nix that obeys your configuration.nix nixpkgs.config, it wont include qemu-vm.nix, and then it throws errors that those options are invalid
<joko> sphalerite: I am getting sth like this: /nix/store/c7j0lq0h2mvvxrmyy0wxd5iys8arrdz5-audit-disable: line 3: /nix/store/9ac9bfx006fpvpnx7aqbhn25dz7zfbpb-audit-2.6.6-bin/bin/auditctl: cannot execute binary file: Exec format error
<sphalerite> Plus I'm not building with all 4 cores... That dilemma where you don't know whether you'd save time by cancelling the build and restarting it with more cores
<joko> So I was thinking maybe it's corrupted or something
<clever> joko: one sec
<sphalerite> joko: try nix-store --verify --repair-path on the store path
<clever> joko: nix-store --verify-path /nix/store/9ac9bfx006fpvpnx7aqbhn25dz7zfbpb-audit-2.6.6-bin
<sphalerite> Err yeah --verify-path
<sphalerite> Add --repair to have it fix it if it's really corrupted
<joko> bingo, was modified! expected hash
<clever> nix-store --repair-path paths...
<clever> joko: that will just re-download the entire thing from the binary cache
<goibhniu> sphalerite, you're a star! I'll be doing some setup on Friday evening, do you think you could make it out there for that too?
<joko> clever: many thanks, sir
<sphalerite> goibhniu: not sure yet, I'll let you know
<joko> btw, I was working this weekend on a justdoit version using uefi, gpt partitions and zfs over luks
rtjure has joined #nixos
<joko> clever: would you like a pr or sth like that?
<clever> joko: for which changes?
<joko> For make[3]: Leaving directory '/tmp/nix-build-erlang-19.3.drv-0/otp-OTP-19.3-src/lib/wx/c_src'
<joko> make[2]: *** [/tmp/nix-build-erlang-19.3.drv-0/otp-OTP-19.3-src/make/otp_subdir.mk:29: opt] Error 2
<joko> oops, sorry
<clever> joko: ah, sure
<Orbstheorem> Hey, is there any way to use systemd-spawn to boot a nixos container?
bennofs has quit [(Ping timeout: 246 seconds)]
frankqux3 has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
<goibhniu> sphalerite, cool, cheers
<sphalerite> Orbstheorem: yeah should be possible. Not sure exactly what flags it takes though
<clever> joko: also, did you notice the dummy.nix i made for testing?
<seequ> clever: I'm getting "does not exist" for those options.
rtjure has quit [(Ping timeout: 240 seconds)]
<clever> joko: its only partialy written right now, but you can "nix-build dummy.nix" then run qemu-kvm with the right args (including -append from the pxe config) to boot the resulting image
<clever> seequ: does it still produce a result link and give directions?
<seequ> yes
<clever> seequ: thats the bug i mentioned to sphalerite a few minutes ago
<seequ> ..ah :P
frankqux1 has quit [(Ping timeout: 240 seconds)]
<joko> clever: I was also thinking that I could pass vars to the kernel cmdline and read them later on via the justdoit script to make it more customizable, what do you think?
<clever> joko: that could be done, they all appear in /proc/cmdline
<joko> right
<joko> the bad thing afterwards is going to be bootloader entries, for uefi the menu is not that customizable
ylwghst has joined #nixos
<joko> Anyway...
<clever> joko: also, did you see my rescue option?
<joko> nope
<ylwghst> hi
<clever> joko: it just sticks the same "netboot" images into /boot (minus justdoit) and adds a menu entry to grub
<joko> clever: ah, but you are using grub, it's simpler
<clever> joko: so you can mount the rootfs from that, and perform any kind of repair
<joko> this is neat, I might create a live cd using that
<clever> joko: i used it 2 days ago to move /nix from the / dataset to the /nix dataset in zfs
rtjure has joined #nixos
<clever> joko: the existing livecd iso can also boot on usb, and has a copytoram option to do the same thing
<joko> clever: would you recommend creating a separate dataset for /nix?
<clever> joko: yeah, i have snapshots enabled for / but then i cant garbage collect
<clever> joko: so i need to disable snapshots on /nix/
<joko> correct
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] wmertens created vmtools-reboot (+1 new commit): https://git.io/vdxL5
<NixOS_GitHub> nixpkgs/vmtools-reboot 7144f88 Wout Mertens: open-vm-tools: Fix rebooting on NixOS
NixOS_GitHub has left #nixos []
<clever> joko: and related, here is an actual netboot using the netboot images: https://github.com/cleverca22/nixos-configs/blob/master/netboot_server.nix
<ylwghst> will this expand into /nix/store/j3fw5qlpa9y3vzm62l10gxns536n38d1-system-path/bin/alsamixer ?
<clever> joko: that sets up netboot and nat, with the wifi as the WAN, and the ethernet as the LAN
<ylwghst> in configuration.nix
<joko> clever: does netboot use grub?
<clever> joko: it uses ipxe
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] wmertens opened pull request #30718: open-vm-tools: Fix rebooting on NixOS (master...vmtools-reboot) https://git.io/vdxtU
NixOS_GitHub has left #nixos []
<ylwghst> /nix/store/*-system-path/bin/amixer*
<clever> nix-repl> "${pkgs.alsa}/bin/amixer set Master 5+"
<clever> error: attribute ‘alsa’ missing, at (string):1:4
<clever> ylwghst: wrong attribute
<joko> clever: can you have options in ipxe?
<sphalerite> joko: you can netboot using grub too though
<clever> joko: yeah
<ylwghst> so ${pkgs.amixer}
<ylwghst> clever: how you tried it?
<clever> joko: this sets up a full menu, with a password protected ipxe repl
<joko> clever: awesome
<clever> error: attribute ‘amixer’ missing, at (string):1:4
mithsv has quit [(Read error: Connection reset by peer)]
rtjure has quit [(Ping timeout: 255 seconds)]
<clever> nix-repl> "${pkgs.alsaUtils}/bin/amixer set Master 5+"
<clever> "/nix/store/2nc1a365maivx7qvr7dlllzjhrrj2dzq-alsa-utils-1.1.4/bin/amixer set Master 5+"
<clever> ylwghst: this path is valid
<clever> ylwghst: you can test other strings by using: nix-repl '<nixpkgs>'
<joko> And an irrelevant question to my previous ones: I am pinning a package version using nixpkgs.config.packageOverrides and overrideAttrs. How to override the arguments (maybe it's not the right expression)? E.g. I would like to use rabbitmq_server v3.6.6 with erlang_nox (to avoid building all the X stuff)
mithsv has joined #nixos
<ylwghst> clever: pkgs.pamixer
<clever> joko: .override changes the arguments to the package
<ylwghst> cle alsautils does work?
<clever> joko: (foo.override { input1 = bar; }).overrideAttrs (drv: { baz = qux; })
<ylwghst> thx
zunk has quit [(Read error: Connection reset by peer)]
rtjure has joined #nixos
srodal has quit [(Ping timeout: 240 seconds)]
<joko> clever: your answer makes sense, but overriding erlang is not working: erlang = erlang_nox; returns undefined variable ‘erlang_nox’
<Dezgeg> sphalerite: kmscon always just totally crashed my device when I tried it :P
<joko> clever: I've also tried with pkgs.erlang_nox
<clever> joko: can you gist the entire file?
<joko> clever: sure, just a sec
bennofs has joined #nixos
rtjure has quit [(Ping timeout: 258 seconds)]
<sphalerite> Still don't know whether to restart the build with 4 cores or not D:
<joko> clever: package pinning attempt: http://nixpaste.lbr.uno/HtXzczAZ?nix
tanonym has joined #nixos
<clever> joko: and what error does that file give?
<sphalerite> Hm, how bad an idea would it be to manually run make -j4 in /tmp/nix-build-llvm-5.stuff
kiloreux has joined #nixos
<clever> sphalerite: the env vars would all be wrong
glenn has quit [(Ping timeout: 260 seconds)]
tanonym has quit [(Read error: Connection reset by peer)]
<sphalerite> clever: what if I sourced env-vars (and used the right nixbld user as well and stuff)
<joko> oops, forgot the override part >_<
tanonym_ has joined #nixos
<kiloreux> I added my proper channels to /etc/nix.conf (On ubuntu) but my nix installations still uses the old nixpkgs channel. I tried setting NIX_CONF_DIR to the new directory but still nothing is working.
<clever> sphalerite: that likely wont have vars set by setup.sh and setup hooks
<clever> sphalerite: you would want to peek within /proc/<PID>/environ of the make process, to get the real env vars
<clever> sphalerite: which is a \0 seperated list
<tanonym_> Hmm. Installing ubuntu seems to bypass my grub bootmenu to select which OS I want to boot. /boot partition is still there just not mounted.
<kiloreux> Any idea if i could reload nix to make use of the new file possibly?
<joko> clever: it says attribute ‘erlang_nox’ missing
<tanonym_> So, looks like installing NixOS last is probably preferable.
<gchristensen> kiloreux: . {depth, 5},
<gchristensen> kiloreux: /etc/nix.conf has nothing to do with channels. what did you do?
<clever> joko: does erlang_nox exist in your version of nixpkgs?
<sphalerite> clever: is it still a terrible idea?
<kiloreux> gchristensen, just setting the trusted-binary-caches variable
<clever> sphalerite: id just leave it be
rtjure has joined #nixos
<joko> clever: damn, I was checking my personal nixpkgs, how to check the (remote) system's nixpkgs?
<clever> joko: -I nixpkgs=/path/to/nixpkgs
<clever> joko: which can be passed to nix-repl
tanonym_ has quit [(Client Quit)]
tanonym_ has joined #nixos
<clever> heading out now, i'll be back in a few hours
<sphalerite> clever: what about restarting the build with --cores 5 though?
<clever> sphalerite: thats always safe, but depending on how long its been running, may cost more time then it would have saved
p4cman has quit [(Quit: Connection closed for inactivity)]
<sphalerite> Cmake says it's at 11% and I'm wondering if it will end up finishing more quickly if I go from the beginning
<sphalerite> Yeah exactly :/
<clever> at 11%, its probably faster to restart
<clever> sphalerite: another more nasty/hacky thing, attach gdb to a random process in the shell, and use gdb to eval system("make -j4"); in the remote process!
rtjure has quit [(Ping timeout: 258 seconds)]
<MagneticDuck> How am I supposed to find the has of a derivation in the store?
clever is now known as clever-afk
katyucha has quit [(Ping timeout: 258 seconds)]
bennofs has quit [(Ping timeout: 260 seconds)]
<MagneticDuck> I know that every derivation has a hash and the store path is a function of the derivation name and its hash, but I forget what tells me the full sha256 hash of a derivation that's already in the store.
<sphalerite> clever: I love it!
<MagneticDuck> I guess nix-store --hash $PATH
dieggsy has joined #nixos
<MagneticDuck> that's not an operation though
<MagneticDuck> this has to be a totally innocuous operation, can somebody please help me find the right incantation?
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to staging: https://git.io/vdxY0
<NixOS_GitHub> nixpkgs/staging 9bd9305 Tim Steinbach: curl: 7.56.0 -> 7.56.1
NixOS_GitHub has left #nixos []
<gchristensen> MagneticDuck: why do you want to do this?
tanonym has joined #nixos
tanonym has quit [(Read error: Connection reset by peer)]
tanonym has joined #nixos
<tanonym> If I copy my current configuration.nix file to an external device can I use it in the install rather than going over the configuration process again?
tanonym_ has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Remote host closed the connection)]
<hyper_ch> configuration process?
<clever-afk> tanonym: yes
<hyper_ch> you'd need configuration.nix and hardware-configuration.nix with the same disk layout on the same computer
<clever-afk> one option is to keep all the hardware stuff in hardware-configuration.nix and let nixos-generate-config remake that on the new machine
glenn has quit [(Ping timeout: 252 seconds)]
<tanonym> Okay, that's a back up option I would rather fix it so that I can select my distro when I start up the computer.
<tanonym> Ubuntu did something odd to it and just bypasses the NixOS GRUB file.
<infinisil> MagneticDuck: I think nix-hash should be able to do it
Neo-- has joined #nixos
ma27 has quit [(Ping timeout: 240 seconds)]
<infinisil> But you shouldn't need to do this really
<kiloreux> Hate to be annoying :/ But does anyone know how to reload nix after setting new binary-caches ? :)
lsix has joined #nixos
<tanonym> What happens if I change the disklayout but copy the configuration.nix file after I have generated the hardware configuration step in the Install process?
<infinisil> kiloreux: Of course you're not annoying, irc is there to ask questions ;)
ma27 has joined #nixos
<infinisil> kiloreux: I haven't tried it, but I'd think restarting the nix-daemon would do that
<infinisil> I'm assuming you're not on nixos
<tanonym> I am thinking I need to reinstall NixOS but not create a separate /boot partition.
<kiloreux> Much appreciated infinisil . Nope I am on Ubuntu.
<tanonym> Same here. All I can boot into at the moment.
<kiloreux> `nix-daemon stop` doesn't seem to work.
<kiloreux> is there another command to restart it ?
nikivi has joined #nixos
<infinisil> tanonym: Do you have some key you can press on boot to select the boot disk? Usually F12 or Del or Option on macs
<infinisil> kiloreux: If it's installed as a systemd unit: `sudo systemctl restart nix-daemon`
<kiloreux> And neither that :/
<infinisil> What does it say?
<kiloreux> Failed to restart nix-daemon.service: Unit nix-daemon.service not found.
<tanonym> Let me try that. And yes I do on this system. That is how I boot from USB keys
<infinisil> I can't help well since I don't run non-nixos
tanonym has quit [(Quit: tanonym)]
<kiloreux> infinisil, alright, already much appreciate the help.
<Dezgeg> non non-nixos you probably don't have nix-daemon (unless you know you're done custom steps to use it), so no need to restart anything, just edit /etc/nix/nix.conf
<Dezgeg> s/^non/on/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdxO7
<NixOS_GitHub> nixpkgs/master 124e462 Tim Steinbach: git: 2.14.2 -> 2.14.3
NixOS_GitHub has left #nixos []
<kiloreux> Yeah that's what I did
<kiloreux> Dezgeg, and it didn' work
<infinisil> kiloreux: How do you know it's not working?
mrkgnao has quit [(Ping timeout: 260 seconds)]
<kiloreux> because updating nix-channel I can only see nixpkgs-unstable.
<kiloreux> No mention of the new binary-caches I added.
<gchristensen> binary caches are unrelated to channels
<infinisil> ^^
<gchristensen> (in this case)
glenn has joined #nixos
ma27 has quit [(Ping timeout: 264 seconds)]
<gchristensen> you want to use the nix-channel program to manage channels
<infinisil> kiloreux: What are you trying to do? what is your goal?
<gchristensen> (note users and root have different channels)
<kiloreux> my goal is to setup docker container for my private binaries that uses nix-serve to distribute packages.
__Sander__ has joined #nixos
<kiloreux> That's my end goal
tanonym has joined #nixos
<kiloreux> Thus I was stuck at fetching binaries from binary-caches
<kiloreux> I mixed binary-caches with channels as I can see.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdx3Z
<NixOS_GitHub> nixpkgs/master 4ea79d3 Tim Steinbach: linux: 4.14-rc5 -> 4.14-rc6
NixOS_GitHub has left #nixos []
<kiloreux> Not sure which one I should be using here or how to proceed.
chakra has joined #nixos
<infinisil> kiloreux: Sooo, a docker container that includes binary nix packages, and runs nix-serve to make them available?
<tanonym> Nope, boot selector only lets me choose the devices, not which Distro. Only entries are the internal HD, CD-ROM and Network.
<kiloreux> infinisil, Yep. Exactly
erictapen has joined #nixos
<infinisil> tanonym: If you're using uefi, you can see the boot entries with `efibootmgr -v`
<infinisil> kiloreux: Your goal seems really weird, I still don't know why you'd want to do that
<tanonym> Non EFI system apparently.
<tanonym> *Sigh* looks like I need to do a reinstall and change up the disk partitions.
<tanonym> Probably do SUSE and Ubuntu first, then install NixOS at the end.
<infinisil> tanonym: I'd ask #linux before that
<kiloreux> infinisil, I see. :/ do you still have an idea about setting binary-caches ?
<infinisil> kiloreux: I mean the options you set should work, I guess it's the nix serve that's not working
<kiloreux> I haven't reached nix-serve at all.
<infinisil> Ohh.. So why do you expect the cache to work?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Lassulus opened pull request #30720: gogland: fix debugger (master...gogland-debug) https://git.io/vdx37
NixOS_GitHub has left #nixos []
<chakra> oh god why does everything run slowly in a vm ;-;
<kiloreux> I just tried using some nix-binary channels on my local machines
<kiloreux> just testing step by step.
<infinisil> hmm
<infinisil> kiloreux: Sorry to ask again, but why do you do this with docker and stuff? I still don't get the final goal
<infinisil> I'd prefer anything over thet
<infinisil> s/thet/that
<kiloreux> Because I have binaries that I want to serve them over to my worker containers And I am running everything on Kubernetes.
* sphalerite uploaded an image: file1508763533285.jpg (97KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/XjPsQTjOSNPNUeSiWJtIAcli>
<sphalerite> clever: ^ I'm doing it
<infinisil> I see.. I almost have no experience with docker stuff, and the same with nix-serve, not sure how to proceed
<sphalerite> And it seems to have wooooorked hahahaha this is great
<kiloreux> Still appreciate the effort infinisil Thanks.
betaboon has joined #nixos
tanonym has quit [(Quit: tanonym)]
<sphalerite> This is one of the craziest hacks I've ever done
<infinisil> sphalerite: What are you doing exactly?
<sphalerite> Thanks for the inspiration clever
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xzfc opened pull request #30721: xpointerbarrier: init at 17.10 (master...xpointerbarrier) https://git.io/vdxsN
NixOS_GitHub has left #nixos []
ssmike1 has joined #nixos
<sphalerite> infinisil: I used gdb to replace my make -j1 with a make -j5
<sphalerite> Inside a nix build
<infinisil> :O
ssmike has quit [(Ping timeout: 240 seconds)]
ssmike1 is now known as ssmike
<infinisil> Why 5 though? You have 5 cores? O.o
<betaboon> infinisil: remember my gist combining nix-shell, nixpkgs-overlay, and nixops ? i was setting NIX_PATH via a shellHook. turns out pkgs,defined in my local nixpkgs-overlay - in a completly different NIX_PATH, ar available for that shell OO i don't get it
<Phlogistique> infinisil: people often use nproc + 1
<infinisil> betaboon: Can you show the relevant files? (and I don't remember the gist :)
<infinisil> Phlogistique: I see, haven't heard of that
<Phlogistique> the rationale is something like
<Phlogistique> use 100% of the CPUs, and then a bit more to account for waiting for IO
<infinisil> Nice, that would make sense
<sphalerite> Yep that
<sphalerite> Although I don't think it'll make much of a difference on the chromebook
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdxGb
<NixOS_GitHub> nixpkgs/master bed5bb1 Robin Gloster: fix eval...
NixOS_GitHub has left #nixos []
pxc has joined #nixos
ma27 has joined #nixos
m0rphism has quit [(Ping timeout: 264 seconds)]
zzamboni has quit [(Remote host closed the connection)]
m0rphism has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
glenn has quit [(Ping timeout: 248 seconds)]
delYsid has joined #nixos
<sphalerite> Hydra should build gnupg without guiSupport
dbmikus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdxZM
<NixOS_GitHub> nixpkgs/master 562f831 Dmitry Kalinkin: ipget: init at 0.2.5
<NixOS_GitHub> nixpkgs/master 5fc37f2 Jörg Thalheim: Merge pull request #30704 from veprbl/ipget...
NixOS_GitHub has left #nixos []
<delYsid> I would like to test NixOS in qemu in text mode (I am blind, can not use graphics), but I fail miserably. First, GRUB is in graphics mode, so I can not edit the kernel command line. After extracting the syslinux config from the CD and modifying it to pass nomodeset, I still get a nixos CD that boots into graphics mode in qemu with -display curses. I am stuck here, and sort of frustrated, because Linux is so fucking modern these days.
<delYsid> Anyone has any hints how I could achieve what I need?
ma27 has quit [(Ping timeout: 240 seconds)]
<infinisil> betaboon: why do you have both example and vbox in your nixops? Doesn't that declare 2 machines?
<betaboon> infinisil: yes. a virtualbox, and a container to be deployed into _that_ virtualbox (for my macos friends)
<delYsid> It feels like someone is having a bad pun with me, the web site explicitly mentions NixOS has no fancy graphics installer, which is totally fine by me. But hey, no, some unrelated non-technical reasons prevent text mode from working at all in 2017!
zzamboni has joined #nixos
<infinisil> betaboon: and what does not work with that exactly?
zzamboni1 has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
<betaboon> infinisil: this time something works, that shouldnt: i have a nixpkgs-overlay setup like in that gist on my local machine. in this overlay there is a package defined (eg 'superfun123'). now i have a seperate nixpkgs-overlay (like defined in that gist), and use nix-shell (Which loads the shell.nix in gist) with "-p superfun123" -> here is the problem, i would expect superfun123 to not be found (as it is defined
<betaboon> in my local overlay). but it can be found.
<betaboon> makes sense ?
glenn has joined #nixos
<betaboon> delYsid: did you use nixos-minimal iso ?
<infinisil> delYsid: Interesting! I'd love to help, I'm currently on my phone thought, hard to type fast. Right now I know of grub.splashImage = null which makes it all text based, is that what you're looking for maybe?
<S0rin> delYsid: Hey, I will try to help you, the thinkg is for nixos that it come with "good" defaults (but you can change that), so there is WM included by default
<delYsid> infinisil: I can trick my way around grub. Problem is, that the NixOS installer switches to graphics mode sometime after th initial service startup...
<sphalerite> delYsid: try using the minimal installer image, that doesn't have a GUI
<S0rin> delYsid: It can be changed to be text only but I think you have to upgrade the system
<delYsid> It is easy to reproduce, just get NixOS to work with qemu -display curses.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdxcw
<NixOS_GitHub> nixpkgs/master 7b3a61a lassulus: gogland: fix debugger
<NixOS_GitHub> nixpkgs/master 043fd0a Jörg Thalheim: Merge pull request #30720 from Lassulus/gogland-debug...
NixOS_GitHub has left #nixos []
<sphalerite> delYsid: alternatively you can add systemd.unit=multi-user.target to the kernel cmdline with the existing image
<delYsid> S0rin: Wait, the web site said the installer would NOT include a graphical version.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdxcy
<NixOS_GitHub> nixpkgs/release-17.09 6d0fbcf lassulus: gogland: fix debugger...
NixOS_GitHub has left #nixos []
<S0rin> delYsid: As betaboon suggested you should try the minima iso, or change the configuration.nix to suit you need
<delYsid> I am only talking about the minimal installer CD for now.
<infinisil> betaboon: try debugging with nix-instantiate --find-file nixpkgs-overlays or so
<sphalerite> delYsid: the installer (as in the program that installs nixos) is text-based, but the standard installer image comes with plasma under the assumption that you'll open a graphical terminal emulator and install from there
<delYsid> Is the website wrong in claiming it doesn't use graphics?
<S0rin> delYsid: ah :/
<delYsid> Ouch, how stupid.
<sphalerite> delYsid: oh, the minimal installer image? Huh
<delYsid> OK, sad, I would have liked to look at NixOS, but with this initial experience, I guess I let it be then
<S0rin> delYsid: I don't know and it is probably a case that need more tests and manpower but it is sure it can be done
bennofs has joined #nixos
<delYsid> OK, thanks.
<sphalerite> delYsid: but if you are using the minimal installer image it shouldn't be starting a GUI
<delYsid> sphalerite: It does. At least, qemu says "640 x 480 graphics mode"
<delYsid> sphalerite: Github issues seemed to indicate that passing nomodeset as kernel-command line would help, but it didn't.
glenn_ has joined #nixos
<infinisil> delYsid: and that's not the bootloader? I think it starts in that resolution by default
<Dezgeg> it's not starting X but it's probably switching to a framebuffer console
<delYsid> infinisil: No, the bootloader is also in gfx mode, but after it launches initial user space, it switches back to text, only to switch back to graphics again before I could do anything.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fusion809 opened pull request #30722: Bumping to 1.2.0 (master...patch-2) https://git.io/vdxCM
NixOS_GitHub has left #nixos []
<delYsid> Dezgeg: Do you know which kernel command line to pass to disable fb?
<infinisil> I'm not quite sure on your distinction between text and graphics
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vdxCF
<NixOS_GitHub> nixpkgs/master acf1ae0 Tuomas Tynkkynen: libx86: Supports only x86...
<NixOS_GitHub> nixpkgs/master 681c800 Tuomas Tynkkynen: read-edid: Only depend on libx86 on x86
NixOS_GitHub has left #nixos []
<Dezgeg> maybe it was one of those vga=XXX things
<delYsid> infinisil: I knew, non-old-school people these days can not distinguish between graphics mode and text mode, it is a thing from the 90s.
<betaboon> delYsid: what exactly do you mean with "graphics" ? the way i normally install nixos is using the nixos-minimal-iso, and i never saw any graphics.
glenn has quit [(Ping timeout: 264 seconds)]
<infinisil> delYsid: heh, that could be the case
zzamboni1 has quit [(Quit: Leaving.)]
<delYsid> but rest assured, I know what I am talking about. You can easily test: Grab the minimal NixOS installer CD, and fire it up with qemu passing the -curses or "-display curses" parameter to QEMU, which will make it text mode only
<sphalerite> delYsid: I think something like nofb should do it
<Dezgeg> yes I have seen the thing with qemu text-mode only but I can't remember how I worked around that :/
<delYsid> betaboon: See above, I know that most people can not distinguish between painted text and plain text :-) I am sorry, but I can not help you there.
<infinisil> Ah I see, so qemu doesn't see the tty{1..6} as text because they're under X or something
<delYsid> :-)
<delYsid> OK guys, it was nice, but you can obvously not help me, thanks for trying.
delYsid has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
<infinisil> Well, it's nice of him bringing up the issue, now we can work on solving it
<sphalerite> delYsid: the options that come to mind off the top of my head are building an image that will let you ssh in
acowley_away is now known as acowley
<sphalerite> delYsid: or using a serial console through qemu
<sphalerite> Noooo
<infinisil> He gone
ylwghst-live has joined #nixos
<infinisil> Oh right, ssh would've probably worked much better
zzamboni has joined #nixos
<ylwghst-live> Can I set root pass of my nix installation from nix live cd? i missed the query in install process
<fearlessKim[m]> nix.nixPath = lib.mkBefore [ "nixpgs=/etc/nixpkgs" ] triggers "value is a set while a list was expected". I just want to prepend/append/merge my nixPaths with the default one.
<infinisil> ylwghst-live: just run nixos-install again
woffs has quit [(Quit: Gateway shutdown)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #29952: glusterfs: Glusterfs 3.12 and service cherry-picks (release-17.09...glusterfs-1.2-release-17.09) https://git.io/vdZkL
NixOS_GitHub has left #nixos []
leothrix has quit [(Ping timeout: 248 seconds)]
woffs has joined #nixos
erictapen has quit [(Ping timeout: 264 seconds)]
leothrix has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
erictapen has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
glenn has joined #nixos
zzamboni has joined #nixos
<joko> Is anyone using the rabbitmq.service in NixOS? I have trouble running rabbitmqctl commands, e.g. rabbitmqctl list_users
glenn_ has quit [(Ping timeout: 246 seconds)]
<ylwghst-live> infinisil: it started download all packages again
<ylwghst-live> s
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vdx8h
<NixOS_GitHub> nixpkgs/master 61089dd joachim schiele: opendkim: automated key generation (no manual changes for service initialization required anymore)
NixOS_GitHub has left #nixos []
sheyll has quit [(Quit: sheyll)]
zzamboni has quit [(Ping timeout: 248 seconds)]
<nocent> I guess you could alternatively chroot into the root partition and run passwd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.09: https://git.io/vdx4B
<NixOS_GitHub> nixpkgs/release-17.09 b0dba8f joachim schiele: opendkim: automated key generation (no manual changes for service initialization required anymore)...
NixOS_GitHub has left #nixos []
<ylwghst-live> nocent: iv tried withotu succces
zunk has joined #nixos
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 5 new commits to master: https://git.io/vdx4M
<NixOS_GitHub> nixpkgs/master 02f4079 Peter Simons: LTS Haskell 9.10
<NixOS_GitHub> nixpkgs/master 714edca Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub> nixpkgs/master 25eb5ee Peter Simons: haskell-fluid-idl-scotty: disable broken build
NixOS_GitHub has left #nixos []
ssmike has quit [(Remote host closed the connection)]
ylwghst-live has quit [(Remote host closed the connection)]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #30724: screen: 4.6.1 -> 4.6.2 (master...update_screen_4_6_2) https://git.io/vdxB3
NixOS_GitHub has left #nixos []
glenn has quit [(Ping timeout: 248 seconds)]
<sphalerite> FWIW: recommend qemu -nographic to any further blind users
<sphalerite> If they happen to be using qemu
<sphalerite> Works much better, including text-mode grub (allowing editing cmdline) and stuff
glenn has joined #nixos
ylwghst-new has joined #nixos
<ylwghst-new> oh it worked i even havent noticed :D
<seequ> Hmm, I wonder if there's some tricks to make nixos' VM rendering faster
<seequ> doesn't seem to support gtk windows
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdxR3
<NixOS_GitHub> nixpkgs/master 131b7c2 Lancelot SIX: screen: 4.6.1 -> 4.6.2...
<NixOS_GitHub> nixpkgs/master 48d2b58 Tim Steinbach: Merge pull request #30724 from lsix/update_screen_4_6_2...
NixOS_GitHub has left #nixos []
TheAppleMan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 1 new commit to release-17.09: https://git.io/vdxRr
<NixOS_GitHub> nixpkgs/release-17.09 6b8036d Lancelot SIX: screen: 4.6.1 -> 4.6.2...
NixOS_GitHub has left #nixos []
mrkgnao has joined #nixos
iyzsong has quit [(Ping timeout: 260 seconds)]
vandenoever has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Quit: Leaving.)]
erasmas has joined #nixos
freusque has quit [(Quit: WeeChat 1.7.1)]
nschoe has joined #nixos
peacememories has joined #nixos
bin has quit [(Ping timeout: 248 seconds)]
nix-gsc-io`bot has joined #nixos
zzamboni has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/36a5e18fac (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
katyucha has joined #nixos
ylwghst-new has quit [(Quit: Lost terminal)]
cement has joined #nixos
zzamboni has quit [(Ping timeout: 255 seconds)]
zzamboni has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
glenn has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
<fearlessKim[m]> how would you get the value of a module without using a rebuild ? like to show the generated nix.nixPath value in nix-repl
ylwghst has joined #nixos
glenn has joined #nixos
endformationage has joined #nixos
<infinisil> fearlessKim[m]: nix-repl> (import <nixpkgs/nixos> {}).config.nix.nixPath
<ylwghst> Can specify package version here https://gist.github.com/ylwghst/775b29519b89e7c30a3d92681b960931
<ylwghst> ?
<ylwghst> CanI
Phillemann has joined #nixos
<Phillemann> Can I have multiple source files/repositories for a derivation in NixOS? I have a piece of software that is on github, but needs an external .zip file to build.
<ylwghst> I actually built with dmenu2 which is according to nixos.org this package dmenu2-0.3pre-2014-07-08 but instead of 0.3pre was built 4.7
<infinisil> Phillemann: You can just do `buildPhase = " <do stuff> ${fetchurl { url = "http://url.to.zip"; sha256 = "..."; }} <do more stuff> "`
<infinisil> Phillemann: The fetchurl part will expand to a /nix/store/... path which contains the zip
<dieggsy> i'm trying to do a nix-env -f my-packages.nix -i but getting "undefined variable 'hub'". Do i have to import git-and-tools somehow?
<Phillemann> infinisil: Oh, you can embed fetchurl into the buildPhase...very handy
<ylwghst> hm
<infinisil> ylwghst: If the version in nixpkgs doesn't work for you, you can override the package with another source and point it to whatever you need, or you could use this package from another channel
<ylwghst> nix-env is fething correct
<ylwghst> it works great
<ylwghst> but if do nix-env -i dmenu2
<ylwghst> it will fetch and install dmenu2-0.3pre-2014-07-08
<infinisil> dieggsy: hub is in pkgs.gitAndTools.hub
<ylwghst> which is correct
<fearlessKim[m]> infinisil: thanks that worked. I tought the default value for NIX_PATH would contain the different nix-channels (like nixos=XX, nixos-unstable=XXX) but if there are several channels, it just merges all the channels to "/nix/var/nix/profiles/per-user/root/channels" :/
<dieggsy> infinisil: is there a way to get that programatically or otherwise import gitAndTools at the top of the file? I'm trying to automatically populate my-packages.nix
<ylwghst> but if i build config.nix with environment.systemPackages = with pkgs; [dmenu2];
<Phillemann> infinisil: Oh actually, it's not a directory that contains the zip, fetchurl will return the path to the .zip file directly.
<Phillemann> Even better.
<infinisil> fearlessKim[m]: You can alse check the default value with (import <nixpkgs/nixos> {}).options.nix.nixPath.default
<dieggsy> infinisil: or could i list all packages from the point of view of nixpkgs or something like that to get that "long name" automatically
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/f553043aa0 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
<ylwghst> it will fetch dmenu-4.7
zzamboni has quit [(Quit: Leaving.)]
<infinisil> dieggsy: What do you mean by automatically populate? You could add `with gitAndTools;` at the top, which then let's you use `hub` directly
jmeredith has joined #nixos
<dieggsy> infinisil: run some script that goes "nix-env -q[something]" and then inserts the output to my-packages.nix, deletes the version number
<dieggsy> which i already have, i just need to import more things for it to work i suppose
zzamboni has joined #nixos
<fearlessKim[m]> infinisil: shit that nixPath is not generated at all ?!
<infinisil> dieggsy: I see
<infinisil> dieggsy: Hold on i have an idea
<infinisil> dieggsy: You want to query the installed packages, select one, and add that to a file?
<dieggsy> infinisil: i want to query the installed packages in a way that gets me _all_ of them including the long paths like "pkg.gitAndTools.hub"
<infinisil> Hmm, I don't think that's possible actually
<dieggsy> infinisil: huh. i suppose adding a bunch of with statements will have to suffice
<infinisil> The packages in nix-env don't know where they came from really
<infinisil> the attrpath doesn't exist for them
<dieggsy> interesting
bennofs has joined #nixos
<infinisil> they're fixed in time, and don't update unless you do it manually with -u i think
<ylwghst> hm
<dieggsy> infinisil: i'm not really asking about updates though
<infinisil> so your current nixpkgs versions hub might be different than your installed one
<dieggsy> right
<dieggsy> hmmm
<dieggsy> the version is being stripped away anyway too
<dieggsy> oh, nvm i see the point i think
<dieggsy> bunch of with statements it is
zzamboni has quit [(Ping timeout: 252 seconds)]
<infinisil> dieggsy: What's your objective? Do you plan on installing stuff with nix-env and then generate a nix expression from time to time from the installed ones?
erictapen has quit [(Ping timeout: 240 seconds)]
dywedir has quit [(Remote host closed the connection)]
<hyper_ch> Mic92: online?
<dieggsy> infinisil: pretty much. I want to keep track of packages i've installed so far as i go so i can replicate on another computer. Is there a better/easier way?
<infinisil> and the nix-env -q names don't have to be the same as the attributes btw
<dieggsy> infinisil: should i be adding packages i want to a file and running something on that instead
<infinisil> dieggsy: There is home-manager, but you could have a really minimal thing too, hold on
<ldlework> rycee Is there anything holding 102 back?
ylwghst has quit [(Quit: Lost terminal)]
<infinisil> dieggsy: Check out home-manager first i guess. It's like configuration.nix, but on a user-level: https://github.com/rycee/home-manager
<infinisil> If you just need some packages, a simple nix-env -r would work too
<infinisil> which installs all packages from a file (and only that file, it removes the others)
jb55 has joined #nixos
<dieggsy> hm. home-manager seems like more work than I want to go through.
<dieggsy> er, more complexity?
<ldlework> Its pretty dang easy
<infinisil> home-manager is pretty sweet
<infinisil> can recommend
<ldlework> I thought it was super complicated, but actually is very easy to use
<ldlework> Though once 102 is merged, it'll be even nicer :D
<Phillemann> Too bad though that I cannot rollback yet...
<infinisil> ldlework: 102 needs some more thought and testing
<dieggsy> yeah "the in development" and no rollbacks concerns me
<ldlework> Everything is in development.
<ldlework> Rollbacks is complicated because your home-directory is unmanaged.
<infinisil> dieggsy: home-manager allows you to rollback, although I'm not sure how to do it, have never used it
<ldlework> Though HM does a pretty good job at removing the symlinks it creates, when a new build doesn't have them.
<infinisil> It installs home-manager profiles in your users profile directory, similar to nix-env profiles
<Phillemann> The README says it cannot rollback. Hm.
<dieggsy> infinisil: the readme says not
<dieggsy> lol
<infinisil> Okay, checking it out, because it should be possible
<ldlework> I mean, you can rollback with Nix env, but it'll be up to you to clean up the home directory.
<infinisil> Well it totally works
<infinisil> Just run /nix/var/nix/profiles/per-user/infinisil/home-manager-594-link/activate
<infinisil> (the number is the generation you want to rollback to)
<infinisil> All files and packages are stored in a home-manager generation, along with this script to activate it
<Phillemann> Is it exported as a home-manager subcommand?
<ldlework> infinisil this wont clean up files that should be removed, etc
<infinisil> Phillemann: It's its own command `home-manager switch`
<infinisil> ldlework: Are you sure?
<infinisil> Oh that could be it yeah
<ldlework> That's what it says on the readme.
adamt has joined #nixos
<infinisil> Well it wouldn't be too hard to add a full-fledged rollback support anyways
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #30726: ghcjsHEAD: bump ghcjs shims (release-17.09...release-17.09-ghcjsHEAD-shims-upgrade) https://git.io/vdxVt
NixOS_GitHub has left #nixos []
adamt_ has joined #nixos
jb55 has quit [(Ping timeout: 248 seconds)]
goibhniu has quit [(Remote host closed the connection)]
goibhniu has joined #nixos
adamt has quit [(Ping timeout: 240 seconds)]
[0__0] has quit [(Remote host closed the connection)]
[0__0] has joined #nixos
glenn has quit [(Ping timeout: 246 seconds)]
pxc has joined #nixos
<dieggsy> infinisil: a "simple" way to get what i was saying might be to compare "nix-env -q" with "nix-env -qaP"
<infinisil> dieggsy: but you can't get the attrnames from that
<infinisil> they ofter are similar to the package names, but that's nothing that can be done automatically easily
<dieggsy> infinisil: what do you mean? nix-env -qaP | grep hub -> 'nixpkgs.gitAndTools.hub hub-2.2.9'
<infinisil> Ah, hmm
<dieggsy> seems like it should work to me
<infinisil> But if you update nixpkgs and the hub version changes it doesn't work
<infinisil> But that might work yeah
<dieggsy> infinisil: that's true, but i usually nix-env -u everything lol
<Phillemann> I have a Qt project that defines its DESTDIR as $$TOP_SRC_DIR/bin-linux (on linux, of course). In my build_phase, it seems $$TOP_SRC_DIR is /
<Phillemann> Does anyone know if nix somehow messes with Qts paths?
pxc has quit [(Ping timeout: 255 seconds)]
glenn has joined #nixos
<infinisil> Phillemann: The variable is probably just unset
<Phillemann> That's kinda bad though :D
<Phillemann> Hm, maybe I can pass it explicitly to qmake or something.
<bebarker> I wrote a nix expression to require another nix expression from a non-nixpkgs file, but am not sure how to best reference the required package's $out; here was my attempt: https://stackoverflow.com/q/46890428/3096687
<Dezgeg> anybody have an idea on how to set an NixOS option default based on say, 'pkgs.stdenv.isx86_64 || pkgs.stdenv.isi686' without causing infinite recursion
ylwghst has joined #nixos
<dash1> zsh is setting PATH when i start it as a subprocess of emacs (sh doesn't). I can't find anything in /etc/zshrc and so forth that's doing it. anybody seen this before?
<nliadm> dash1: it might be a zshenv file
<Phillemann> Ah yes, just setting it in qmake fixes it.
<joko> Hmm, it appears that I can't override Erlang version, any idea what's wrong? http://nixpaste.lbr.uno/6Y2zAemk?nix
<dash1> nliadm: yeah, /etc/zshenv doesn't and i don't have one in ~
<dash1> nliadm: furthermore, it doesn't do this from a terminal, nor (weirdly) from M-x compile
<nliadm> is it running it as a login shell?
<infinisil> bebarker: You need to create $out before using it, it doesn't exist by default
<dash1> nliadm: doesn't seem to affect it
<infinisil> bebarker: Oh wait, that should just work it your case, you want linux64 to be at $out?
<bebarker> infinisil, actually I'm OK with the contents of linux64 being copied directly into $out
<bebarker> that part seems to work
<bebarker> all the files are there
<itorres> does anyone have experience deploying Ceph on Nixos? I have seen https://github.com/wkennington/nixos/search?utf8=%E2%9C%93&q=cephPackage&type= but I would need a lot of handholding to simply start to make sense of all that configuration
<infinisil> dash1: There is some arguments you can add to see what zsh sources
<dash1> nliadm: signs point to this being an emacs problem instead of a zsh problem
<infinisil> dash1: zsh -o SOURCE_TRACE
adamt_ has quit [(Ping timeout: 248 seconds)]
katyucha has quit [(Ping timeout: 240 seconds)]
JagaJaga has joined #nixos
glenn has quit [(Remote host closed the connection)]
glenn has joined #nixos
leat has quit [(Quit: WeeChat 1.9.1)]
b has joined #nixos
jtojnar has quit [(Quit: jtojnar)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pmiddend opened pull request #30728: awesomebump-4.0 -> 5.1 (master...awesomebump-5.1) https://git.io/vdxil
NixOS_GitHub has left #nixos []
tester123_ has joined #nixos
<tester123_> Someone trying to a GitHub project I'm associated with (it's a Haskell/stack/nix project) is getting a strange error: https://github.com/SimulaVR/Simula/issues/11
<tester123_> He uses Ubuntu and installed nix via curl.
<tester123_> I cannot track down what advice to give him from google searching.
<tester123_> Does anyone have any ideas?
<tester123_> Here's part of the error: /nix/store/7lsphvrbnp63y7yqb21prdjn4fbk17qn-xz-5.2.3-bin/bin/xz: (stdin): File format not recognized error: unexpected end-of-file
<infinisil> tester123_: I have often gotten that error with an unstable network, rerunning the command fixes it usually
<rycee> ldlework: Re #102. I pushed a new version a little while ago that copies over the module from NixOS. Please have a look at that and see if it is sufficient for your use case.
<rycee> In general I imagine it is ready to merge.
<infinisil> rycee: Yeah, I'll have a look too and test it a bit
<Phillemann> Why is #102 so important? I don't understand.
katyucha has joined #nixos
<rycee> infinisil: Cool. Thanks!
<tester123_> infinisil: I relayed the message about unstable networks. Thanks.
srodal has joined #nixos
ylwghst has quit [(Ping timeout: 260 seconds)]
<rycee> Phillemann: It's nice to have a nixpkgs module in HM for the same reasons it's nice in NixOS. E.g., allowing modules to expand Nixpkgs through overlays.
fendor has joined #nixos
dash1 is now known as dash
<infinisil> and it's one more thing to have declaratively, instead of using ~/.config/nixpkgs/overlays[.nix]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight pushed 1 new commit to master: https://git.io/vdxXm
<NixOS_GitHub> nixpkgs/master c522aaa Ryan Hendrickson: nixos/postfix: allow dollar parameters in lists (#30612)
NixOS_GitHub has left #nixos []
<joko> I am overriding packages with nixpkgs.config.packageOverrides, is it possible to install the overrided packages by hand, e.g. nix-env -iA ?
mutagenfork has joined #nixos
<dash> ugh, super weird
<dash> bash and zsh have this problem, sh does not
<dash> what is the difference :-[
<infinisil> joko: The configuration.nix nixpkgs.config is separate from the nix-env stuff, so nope
<Phillemann> rycee, infinisil: I see, thanks.
<infinisil> joko: You need to use systemPackages to install those
<infinisil> dash: Did you see my message regarding source tracing?
<dash> ifinisil: aha thank you. `/nix/store/ddkjw25vwgiraya8w6j78z4fw1fv08kn-set-environment` looks awful suspicious
<infinisil> yeah that's the thing that does some useful stuff on nixos
jb55 has joined #nixos
ssmike has quit [(Ping timeout: 264 seconds)]
<dash> yeah.... occasionally-useful....
ssmike has joined #nixos
<infinisil> not sure what it's actually doing tbh xD
<infinisil> And apparently my zsh doesn't source that
<dash> it's referenced in /etc/zshenv
<infinisil> Ohh i see
<joko> infinisil: I see :(
<dash> aha. i'm running emacs-daemon
<dash> thus this emacs process is not a child of a zsh process
p4cman has joined #nixos
<dash> thus __ETC_ZSHENV_SOURCED is not set
<dash> thus, shenanigans
* dash sets __ETC_ZSHENV_SOURCED in his emacs config
mkoenig has quit [(Ping timeout: 240 seconds)]
<infinisil> \o/
<joko> And if I am overriding two packages, how to override the second with the new first as input?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/6b8036dd2f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<infinisil> joko: 2 overlays
<infinisil> joko: But you could just combine those into 1 anyways probably
mkoenig has joined #nixos
<rycee> joko: If you are really desperate, you might do `nix-build -E '(import <nixpkgs/nixos> {}).config._module.args.pkgs.PKG` where `PKG` is the package you want to install. Not a very good idea to use this in general though :-)
ma27 has joined #nixos
<infinisil> Oh right, that would work
<joko> Oh, hell, I am
demego has quit [(Remote host closed the connection)]
* infinisil does not recommend that
__Sander__ has quit [(Quit: Konversation terminated!)]
lsix has quit [(Quit: Konversation terminated!)]
<dash> infinisil: nixos, the solution to and cause of all my unix problems
tester123_ has quit [(Quit: Page closed)]
demego has joined #nixos
<joko> so true...
<infinisil> I think macOS caused me the most Unix problems
<joko> It's been more than 2 hours since I started trying to pin down an older version of Erlang R19
<joko> Still no luck >_<
<dash> joko: mmm, what needs it?
<Unode> Hi guys, is rxvt-unicode vte based ? I'm seeing https://github.com/mobile-shell/moshweb/pull/26 but the issue is a few years old.
<loz1> hello guys
<joko> dash: I am doing sth like that: http://nixpaste.lbr.uno/buoXnMRq?nix ... 19.3 is still being pulled
<loz1> I'm trying to build a perl package which depends on zeromq3
<loz1> but I can't specify zeromq3 as a dependency for nix-shell - it only includes zeromq4
<loz1> is there any workaround for this?
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<loz1> (ofc perl fails to build a package with a different version)
<dash> joko: changing "version" won't affect anything, you have to change "src"
<srhb> loz1: Why can't you use zeromq3?
<joko> dash: dummy me
<dash> loz1: looks like zeromq3 is defined in nixpkgs
<loz1> srhb: I start shell like this: >nix-shell -p python36Packages.jupyter perl zeromq imagemagick gcc
<srhb> loz1: So change zeromq to zeromq3?
<loz1> wait, wat
<dash> loz1: 'zeromq' is an alias for 'zeromq4'
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
zarel has joined #nixos
<zarel> hello
<srhb> loz1: nix-env -qaP | grep zeromq -- that should show you two attribute paths. One is zeromq3, the other is zeromq.
<loz1> I started shell with `zeromq3` - I'm sure it didn't work last time, now it worked but it seems like the library is not in the path
<loz1> but let me try to build the package
<loz1> maybe it'll work
pxc has joined #nixos
Sonarpulse has joined #nixos
<infinisil> Hell zarel!
<infinisil> Hello*
<loz1> dash: srhb so I got the same problem as before: Warning (mostly harmless): No library found for -lzmq
<loz1> (though it says so it's not harmless - it fails to link the library and becomes broken)
<dash> loz1: probably going to be easiest to write a nix expression to build this library
srodal has quit [(Ping timeout: 240 seconds)]
<loz1> but I can't even do it in a shell
<loz1> how does nix includes libraries into shell? LD_LIBRARY_PATH seems to be empty
pxc has quit [(Ping timeout: 240 seconds)]
<loz1> is there any way to check if libzmq is reachable from shell?
<srhb> loz1: Well, it always will be, since it's in the world readable store.
<rycee> loz1: You mean nix-shell? Then check the NIX_LDFLAGS environment variable.
zunk has quit [(Ping timeout: 248 seconds)]
<srhb> loz1: But you probably want to write a proper shell file as dash suggested :)
kiloreux has quit [(Remote host closed the connection)]
<loz1> I don't see how a proper shell file would be different
<srhb> It makes things easier to refer to.
<loz1> I mean, it should be equivalent to the commands I run, right?
<srhb> Not quite, you'd usually set up a derivation properly there
<srhb> but sure, you can try env | grep zeromq
<dash> loz1: I meant a nix expression for building the library, not a shell script
<srhb> You should see it in buildInputs at least.
<loz1> I prefer interactive way - can fix things on a fly
JagaJaga has quit [(Ping timeout: 255 seconds)]
<loz1> so NIX_LDFLAGS has -L/nix/store/bbn93yg95mcplgz476gxc0zgys3i676k-zeromq-3.2.5/lib
<loz1> wait a minute
zunk has joined #nixos
<loz1> should I somehow tell the makefile to use NIX_LDFLAGS to search for the .so?
<srhb> The standard wrappers will feed that to the linker for you.
<loz1> but looks like it doesn't work in my case
b has quit [(Quit: Lost terminal)]
Sonarpulse has quit [(Quit: Leaving)]
leat has joined #nixos
Sonarpulse has joined #nixos
<loz1> # Error: Can't load 'arch/auto/ZMQ/LibZMQ3/LibZMQ3.so' for module ZMQ::LibZMQ3: arch/auto/ZMQ/LibZMQ3/LibZMQ3.so: undefined symbol: zmq_msg_init at /nix/store/raylbbdkg4yz21c44fwcv63bzvj7a1i1-perl-5.24.2/lib/perl5/5.24.2/x86_64-linux-thread-multi/DynaLoader.pm line 193.
<loz1> -_-
ssmike has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30696: torcs: fix build & cleanups (master...torcs-fix-build) https://git.io/vdACk
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30729: freeimage: fix CVE-2015-0852 & CVE-2016-5684 (master...freeimage-cves) https://git.io/vdx91
NixOS_GitHub has left #nixos []
ertes-w has quit [(Ping timeout: 248 seconds)]
<loz1> ok, seems like I should ask the author
<loz1> thanks anyway guys
srodal has joined #nixos
clever-afk is now known as clever
aloiscochard has quit [(Quit: Connection closed for inactivity)]
ssmike has joined #nixos
<rycee> loz1: Are you packaging the ZMQ::LibZMQ3 Perl library?
<rycee> If so try adding `nativeBuildInputs = [ pkgs.pkgconfig ];` to the derivation.
sigmundv has quit [(Ping timeout: 264 seconds)]
katyucha has quit [(Ping timeout: 240 seconds)]
phI||Ip has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30730: marp: 0.0.10 -> 0.0.11 (master...update-marp) https://git.io/vdx7V
NixOS_GitHub has left #nixos []
dywedir has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
<sphalerite> llvm failed to build :'(
<sphalerite> Doesn't look related to my jobs hack though
Phillemann has left #nixos ["WeeChat 1.9.1"]
nixngo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vdx5l
<NixOS_GitHub> nixpkgs/master 26122b3 obadz: citrix_receiver: refactor so older versions can still be installed...
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 248 seconds)]
Isorkin has joined #nixos
pxc has joined #nixos
<nixngo> my wacom doesn't work. I already added into services.xserver: wacom.enable = true; and bec this didn't work I also added: modules = [pkgs.xf86_input_wacom]; plz help!!!
Isorkin_ has quit [(Ping timeout: 252 seconds)]
<nixngo> it's a wacom pro usb tablet
srodal has quit [(Ping timeout: 246 seconds)]
kuznero has joined #nixos
* infinisil tries out my wacom
* infinisil tries out his wacom*
<infinisil> I only have services.xserver.wacom.enable = true; and it works
ylwghst has joined #nixos
Isorkin has quit [(Read error: No route to host)]
<nixngo> dmesg says: Unknow device_type for 'Wacom...'. Ignoring.
jb55 has joined #nixos
fendor has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] efx opened pull request #30731: apache-httpd: 2.4.28 -> 2.4.29 (master...bump-apache-httpd) https://git.io/vdxFW
NixOS_GitHub has left #nixos []
roberth has quit [(Ping timeout: 246 seconds)]
<joko> Any ideas on how to override a service?
<sphalerite> joko: copy service file, rename options, add to imports
<sphalerite> It's really not a slick process
<sphalerite> Alternatively you can build your system from a checkout where you have the module edited directly in the tree
<joko> sphalerite: will do it anyway
<infinisil> nixngo: I'll check my logs
b has joined #nixos
jgertm has joined #nixos
<infinisil> nixngo: Here are logs of when i connect and disconnect my wacom: https://git.io/vdxb9
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 4 new commits to master: https://git.io/vdxbA
<NixOS_GitHub> nixpkgs/master a798a43 Robert Helgesson: perl-AnyEvent-I3: 0.16 -> 0.17
<NixOS_GitHub> nixpkgs/master 0204936 Robert Helgesson: perl-AnyEvent: 7.08 -> 7.14
<NixOS_GitHub> nixpkgs/master 4991953 Robert Helgesson: perl-AnyEvent-RabbitMQ: 1.15 -> 1.19
NixOS_GitHub has left #nixos []
<ldlework> infinisil is there some kind of testing I can do to move 102 along?
ylwghst has quit [(Quit: Lost terminal)]
nh2 has joined #nixos
<joko> In systemd is it possible to run sth as root if the unit file is running under a different user?
nh2 has quit [(Client Quit)]
<infinisil> ldlework: You can use it for your stuff, and report if there's a problem, use the different options with different values set, think about problems that might occur
<ldlework> infinisil ah so it should be kinda functional at this point, cool
ertes has joined #nixos
<ldlework> Now I just have to remember how you showed me how to use it.
Judson has joined #nixos
Judson is now known as Guest46063
<sphalerite> joko: what are you trying to achieve? Creating directories for a service?
erictapen has joined #nixos
vidbina has joined #nixos
katyucha has joined #nixos
glenn_ has joined #nixos
<dmj`> is there a rust to nix
<infinisil> dmj`: Have you searched for it?
<dmj`> infinisil: yes
<dmj`> all that shows is
<dmj`> GitHub - nix-rust/nix: Rust friendly bindings to *nix APIs
<infinisil> dmj`: And you didn't find it?
<dmj`> infinisil: negative
<joko> sphalerite: yup
<infinisil> dmj`: Ohh, wait what do you mean?
<infinisil> "rust to nix" ?
<infinisil> there is no rust to nix compiler if you mean that, and neither the opposite
glenn has quit [(Ping timeout: 252 seconds)]
vidbina has quit [(Quit: leaving)]
<dmj`> infinisil: I’m saying the equivalent of cabal2nix for rust, or cargo? I guess
<nixngo> nixos thinks my tablet is a mouse
<dmj`> infinisil: I’m new to rus
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #30733: haskell: ghcjs packages: fix build of fail (master...fix-fail) https://git.io/vdxxQ
NixOS_GitHub has left #nixos []
<nixngo> USB HID v1.10 Mouse [Wacom.....] on input0
<dmj`> infinisil: are you familiar with cargo?
<infinisil> dmj`: I am not, but I remember rust being kinda hard to force into nix
<infinisil> dmj`: There is buildRustPackage, which you might want to check out
<infinisil> It doesn't look very complicated to use
<nixngo> it's never to late to go full c++
mrkgnao has quit [(Ping timeout: 264 seconds)]
<dmj`> infinisil: https://crates.io/
<dmj`> I want the equivalent of hackage-packages.nix for rust
<dmj`> nix-shell -p rust
<sphalerite> joko: not sure if there's a neater way but you can create another service that makes the dirs, and have a dependency
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vdxp2
<NixOS_GitHub> nixpkgs/master 68e05a3 Bas van Dijk: haskell: ghcjs packages: fix build of fail
<NixOS_GitHub> nixpkgs/master 9e68c09 Peter Simons: Merge pull request #30733 from LumiGuide/fix-fail...
NixOS_GitHub has left #nixos []
<dmj`> infinisil: error: cannot coerce a set to a string, at /nix/store/k0ai0y6yydgc3pxjddfpplzxlzdnx87w-nixos-17.09pre110213.01c3847b9c/nixos/pkgs/build-support/trivial-builders.nix:7:14
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 3 new commits to release-17.09: https://git.io/vdxpw
<NixOS_GitHub> nixpkgs/release-17.09 9b3ae2e Moritz Kiefer: ghcjsHEAD: bump ghcjs shims
<NixOS_GitHub> nixpkgs/release-17.09 770e708 Bas van Dijk: haskell: ghcjs packages: fix build of fail
<NixOS_GitHub> nixpkgs/release-17.09 a811d24 Peter Simons: Merge pull request #30726 from LumiGuide/release-17.09-ghcjsHEAD-shims-upgrade...
NixOS_GitHub has left #nixos []
<sphalerite> dmj`: yeah rust support isn't that fleshed out. I'd love a hackage-packages-like thing too
<joko> sphalerite: I just did so ;)
<infinisil> dmj`: nix-shell -p rustc
notemerson has joined #nixos
<infinisil> And you can nix-shell -p rust<Tab> to see what there is
<dmj`> infinisil: that’s what I’m currenlty doing
<infinisil> dmj`: Well I linked to what I know about rust + nix, can't help you much more than that. You might also want to check out examples in nixpkgs
<infinisil> Maybe others here are more experienced with rust + nix
<dmj`> infinisil: I just want a nix expression for building a rust package that depends on another package that is on crates
<tilpner> dmj` - You currently don't represent crates.io dependencies in Nix
<sphalerite> Why could swapon fail with invalid argument?
<sphalerite> (This is on a cros kernel, not regular Linux, so that might be related?
<dmj`> tilpner: then how are dependencies in rust represenetd
<infinisil> dmj`: Read The Thing I Linked To
<tilpner> Just use cargo as usual, generate Cargo.lock, and accept the duplication for now
<sphalerite> dmj`: see what infinisil said
<dmj`> infinisil: I did, it doesn’t answer the question
Isorkin has joined #nixos
<sphalerite> dmj`: cargo works them out
<infinisil> dmj`: buildRustPackage requires a cargoSha256 attribute which is computed over all crate sources of this package
<infinisil> from that link
<dmj`> that’s…. interesting, so what if I have some rust packages locally
<dmj`> and I want to use a mix of my rust packages and some on crates
vidbina has quit [(Quit: leaving)]
ssmike has quit [(Ping timeout: 240 seconds)]
<infinisil> Pinging kevincox, Mic92, globin who seem to have worked with rust packaging on nix
kiloreux has joined #nixos
kiloreux_ has joined #nixos
<infinisil> and bennofs and tilpner too i guess
<kiloreux> I am running nix-serve on my local machine, and trying to access the compiled package from another machine. Yet it says no derivative was found :/
<bennofs> dmj`: i think you should be able to just use the packaging as usual? idk right now, but cargo fetch shouldn't fetch local deps and the sha only hashes the result of cargo fetch
<kiloreux> Anyone here experienced this before?
duncan^ has quit [(Quit: WeeChat 1.7.1)]
acowley is now known as acowley_away
kkini has joined #nixos
stanibanani has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vdpvG
<NixOS_GitHub> nixpkgs/master d2f9dc4 Peter Simons: haskell-ltk: fix build by providing haskell-gi-overloading-0.0...
NixOS_GitHub has left #nixos []
dejanr has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #30462: ltk: fix haskell-gi-overloading dependency (master...ltk) https://git.io/vdMAX
NixOS_GitHub has left #nixos []
dywedir has quit [(Remote host closed the connection)]
dywedir has joined #nixos
bennofs has quit [(Ping timeout: 246 seconds)]
Phlogistique has quit [(Ping timeout: 260 seconds)]
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
erictapen has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vdpJk
<NixOS_GitHub> nixpkgs/master c42e772 Pascal Wittmann: hevea: 2.29 -> 2.31
NixOS_GitHub has left #nixos []
MichaelRaskin has joined #nixos
ison111 has joined #nixos
<kevincox> dmj: That should just work. Try putting in some invalid hash and the error message should print out the actual hash you got.
<kevincox> You should then be able to paste that in and everything should work.
MP2E has joined #nixos
<dmj`> kevincox: so if I have locally packages A and B, neither are on crates, and A depends on B, how do I make a derivation expressing htis
<dmj`> this*
<kevincox> Ah, I see. I don't actually know if this is supported easily at the moment. You could possibly generate your Cargo.toml using the path to the other source but that isn't pretty.
<dmj`> yea, it just seems like its pretty basic, and should be supported. Makes me think buildRustPackages does IO and can’t be used when useSandbox = true; on nixos
<kevincox> This is probably worth opening a bug to track. Because right now I don't think there is support for any dependencies that aren't available remotely.
<kevincox> I'm pretty sure it works with useSandbox.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdpTf
<NixOS_GitHub> nixpkgs/master e2e5979 Tim Steinbach: ammonite: 1.0.2 -> 1.0.3
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdpTU
<NixOS_GitHub> nixpkgs/release-17.09 7360d54 Tim Steinbach: ammonite: 1.0.2 -> 1.0.3...
NixOS_GitHub has left #nixos []
<dmj`> it must use a fixed output derivation then
<kevincox> It does, that's why you need the hash of your dependencies.
roberth has joined #nixos
<kevincox> If you are interested https://github.com/NixOS/nixpkgs/pull/30088 got merged recently and there is still a lot of working going on around it. It would be worth looping in those folk to see if anyone has any plans for local dependencies.
Jackneilll has joined #nixos
Jackneill has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 5 new commits to master: https://git.io/vdpTh
<NixOS_GitHub> nix/master 863a45f Eelco Dolstra: build-remote: Put current load under the store state directory...
<NixOS_GitHub> nix/master 38dcd0c Eelco Dolstra: Release note updates
<NixOS_GitHub> nix/master f32cdc4 Eelco Dolstra: Turn $NIX_REMOTE into a configuration option
NixOS_GitHub has left #nixos []
mahalel_ has joined #nixos
vandenoever has quit [(Read error: Connection reset by peer)]
oever has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
Fare has joined #nixos
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 248 seconds)]
sleepymonad has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vdpIT
<NixOS_GitHub> nixpkgs/master 4c81e9a Pascal Wittmann: libfilezilla: 0.10.1 -> 0.11.0
<NixOS_GitHub> nixpkgs/master 740c4fe Pascal Wittmann: filezilla: 3.27.1 -> 3.28.0
NixOS_GitHub has left #nixos []
sleepymonad has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
ylwghst has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
doublehp has joined #nixos
<doublehp> can I ask NIX to download testing/unstable version of FF that would depend on SDK 151 ? (going AFK, will read your answer in 1h, thanks for help)
<doublehp> sorry, not going away;
erictapen has quit [(Ping timeout: 255 seconds)]
<doublehp> just need a temporary immediate fix for https://github.com/NixOS/nixpkgs/issues/30735 : updating to FF56 asks me to download SDK 144, while only SDK 151 is available from Oracle.com ...
<infinisil> Firefox depends on java??? :O
<kiloreux> What is the default position for `nix.conf` that nix will look in ?
Phlogistique has joined #nixos
<clever> kiloreux: /etc/nix/nix.conf
<sphalerite> infinisil: doesn't looks like it to me
<MichaelRaskin> kiloreux: overridable via NIX_CONF_DIR
<doublehp> i have a working FF51; so i am not coming here about the egg-chicken issue, but the SDK 144 vs 151 issue
<MichaelRaskin> And you still use Java plugin and actually use it for something not compatible with iced_tea?
<infinisil> Ohh a plugin, now it makes sense
<doublehp> i just typed "nix-env -i firefox"
<MichaelRaskin> Hm.
<MichaelRaskin> Maybe you have config.nix that enables Java plugin
<doublehp> and followed inscriptions
<infinisil> These errors in your issue are weird
<infinisil> doublehp: You don't have a /etc/nix/nix.conf?
<infinisil> And what's your NIX_PATH that you can't eval nixpkgs?
<doublehp> I did not paste the error message, because it's irrelevant (builder for ... failed to produce output path ... build failed ... really, i am not a Linux beginner)
<doublehp> stat: cannot stat `/etc/nix/nix.conf': No such file or directory
<infinisil> Well that's kind of the most fundamental file to nix, if you don't have that something's wrong
<doublehp> nixpkgs=/home/dhp/.nix-defexpr/channels/nixpkgs:nixpkgs=/home/dhp/.nix-defexpr/channels/nixpkgs
<MagneticDuck> I know that every derivation has a hash and the store path is a function of the derivation name and its hash, but I forget what tells me the full sha256 hash of a derivation that's already in the store.
<infinisil> MagneticDuck: I already mentioned this before, check out nix-hash
<clever> infinisil: single-user nix can work without it on most distros
<MagneticDuck> I asked this question earlier today, and subsequently ran a bad command on a 4.5 gigabyte derivation that froze up my computer.
<infinisil> clever: Shouldn't that be there by default though?
<gchristensen> MagneticDuck: you must have missed my question then: why do you want to do thaht?
<clever> MagneticDuck: nix-store --query --hash
<clever> infinisil: when nix is installed on ubuntu for ex, it wont have a nix.conf
<MagneticDuck> gchristensen: I'm trying to point requireFile to something that I've already added to the store.
<MagneticDuck> clever: thaank you
<gchristensen> ahh
<MichaelRaskin> doublehp: what is in $doublehp
<MichaelRaskin> Oops
<MichaelRaskin> $NIXPKGS_CONFIG
<infinisil> clever: Then why is there grep build-use-sandbox /etc/nix/nix.conf in the default issue template? :/
<doublehp> MichaelRaskin: empty
<clever> infinisil: if it cant find the file, then sandboxing is of
<clever> f
<symphorien> doublehp: did you try nix-env -iA nixpkgs.firefox ?
<infinisil> doublehp: How about `sudo nix-channel --list` and `nix-channel --list`?
* woffs just NIXOS_LUSTRATEd his workstation
kuznero has joined #nixos
<sphalerite> Can /dev/shm being mounted or not affect what's going on inside nix builds when it's sandboxed?
<infinisil> I'd suggest using `nix-shell -p nix-info --run nix-info` but this probably doesn't work since you can't eval nixpkgs
<infinisil> (and it's only in recent versions anyways)
<MichaelRaskin> doublehp: ~/.config/nixpkgs/config.nix and ~/.nixpkgs/config.nix — does either exist?
<clever> MagneticDuck: nix-instantiate '<nixpkgs>' -A hello -vvvvv 2>&1 | grep config.nix
<clever> evaluating file ‘/root/.nixpkgs/config.nix’
<kiloreux> Is this nixos specific ?
<MagneticDuck> clever: the hash that nix-store --query --hash is giving me seems to be in a different format
<MagneticDuck> in particular, it seems to be using more letters of the alphabet, and is shorter
<kiloreux> no ~/.nixpkgs nor ~/.config/nixpkgs
<MagneticDuck> (relative to the hashes it seems like requireFile wants)
alhariel has joined #nixos
<kiloreux> in my machine.
<clever> MagneticDuck: nix will accept several types of hashes, and will just silently convert them
<doublehp> symphorien: same error message containing same URL with same SDK version
<doublehp> infinisil: nixpkgs https://nixos.org/channels/nixpkgs-unstable
<MagneticDuck> OK, then I have other problems :(
kiloreux has quit [(Remote host closed the connection)]
kiloreux_ has quit [(Remote host closed the connection)]
<doublehp> MichaelRaskin second one does exist
stanibanani has quit [(Ping timeout: 248 seconds)]
<sphalerite> my CPU is supposed to go up to 3.8GHz but it seems to be stopping at 3.4 (according to /sys/devices/system/cpu/cpufreq/*/scaling_cur_freq) even under 100% load. I've tried setting the governor to performance (was previously on powersave) and that didn't help. Any ideas?
<kuznero> when having fetchTarball in my default.nix, and when in nix-shell, how do I get path to where this tarball was copied to?
TaoHansen[m] is now known as taohansen
<ldlework> kuznero fetchTarbal returns it
<clever> sphalerite: thermal throttling may also be at play, what is the temp?
<MichaelRaskin> doublehp: could you pastebin the contents of config.nix?
<sphalerite> clever: there's nothing in the journal about that…
<MichaelRaskin> or try updating firefox after renaming the file
<sphalerite> oh but they are about 90°C so yeah that'll be it
<clever> sphalerite: thermal throttling is often without logs
<clever> sphalerite: the cpu will just silently ignore requests to go faster, and run at a lower speed
<kuznero> ldlework: yep, and I keep reference to it, but then I run nix-shell, and I can see it downloads it. But where to? I am inside nix-shell, so buildPhase has not been evaluated.
<sphalerite> clever: I do see mce messages for it usually
<clever> sphalerite: try stopping all load, let it cool down, and then see if the freq goes up
<ldlework> kuznero it downloads to a random place in the store
<ldlework> the location in the store is available from the fetchTarball call
<alhariel> is kde the default wm in nixos?
<infinisil> kuznero: Can you show us your nix code and tell us what you're trying to do?
<infinisil> kuznero: Do you want to package something that gets distributed as a tarball?
<doublehp> MichaelRaskin: http://dpaste.com/3YJ891C
<kuznero> infinisil: yes, I want to patchelf pre-built packages for dotnet core cli
<sphalerite> alhariel: there isn't a default
<sphalerite> alhariel: you have to choose one explicitly in your config
<alhariel> i see
<sphalerite> alhariel: that said, the graphical installer does use plasma
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a811d24a56 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<MichaelRaskin> doublehp: well, do you have any opinion on that «jre=true;» line?
nix-gsc-io`bot has quit [(Client Quit)]
<ldlework> kuznero if you could write some instructions about how to get going with dotnet on Nix I would love you. I've been having the worst of luck.
<alhariel> im currently using an arch fork but am having a lot of trouble getting some haskell stuff to work
<clever> sphalerite: i had an old laptop, where i used to watch videos on an external monitor with the display closed, the laptop would overheat because it expected airflow thru the keyboard
<MichaelRaskin> I think deleting it would let you update firefox — without Oracle Java plugin.
<alhariel> ive been told nixos is more haskell friendly, is that true?
<kuznero> ldlework: I managed to have dotnet tool working locally, I just need to package it now :)
<clever> sphalerite: then it would cut the clock rate down to 600mhz, and now it cant decode video in realtime
<ldlework> kuznero I'm guessing you're not on OSX
<doublehp> MichaelRaskin: i probably edited months ago because I want to be able to play Java and flash and other internet 2.0 content ...
<kuznero> ldlework: no, NixOS. But it is the matter of packaging the right tarball from here: https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.2-sdk-download.md
tgunb has joined #nixos
<doublehp> MichaelRaskin: you are saying, if I want FF56, I just isable this, and that for the coming months, i won't have java anymore ?
<infinisil> kuznero: Use something like this: https://git.io/vdpqy
<infinisil> kuznero: Then in nix-shell you do `unpackPhase && cd $sourcRoot` which puts you in the tarballs contents root dir
<infinisil> which is already unpacked
<sphalerite> clever: yep looks like it's thermal throttling. What's weird is that it triggers before the fans spin up!?
<kuznero> infinisil: Ah! that is how it works. Thanks
<MichaelRaskin> doublehp: that is definitely an option. Or you could update Oracle Java expressions and submit a PR
<MichaelRaskin> (Then possibly find out Firefox doesn't like Java plugin because life is tough)
<kuznero> ldlework: are you coding in C# or F# in dotnet core?
<ldlework> F# and I don't care how it works, I just want repeatable build environments to learn F# in with co-workers.
<ldlework> So far F# on OSX, with I think mono, is absolutely broken all around.
<ldlework> Not the software, but the Nix packaging.
betaboon has quit [(Quit: WeeChat 1.9.1)]
<doublehp> MichaelRaskin: PR ? update OJE ?
<clever> sphalerite: ondemand was probably already doing its job
<ldlework> I got my whole team excited about it last week and here I am just blindly making changes to build-dotnet-packages.nix 🤣
<kuznero> ldlework: let's see if it works on NixOS with linux pre-built bits, and then maybe we can try do it on MacOS, but I will need some help, as I don't have mac book
<sphalerite> clever: on demand doesn't exist for mine
<sphalerite> Only performance and powersave AFAICT
<ldlework> kuznero sure, I'd be willing to try out your creations on OSX
<MichaelRaskin> doublehp: you could edit the expression for JDK, update version and hash, and submit a pull request.
<sphalerite> clever: also, rebuilding LLVM on my main laptop because (I think) my second attempt on the Chromebook ran out of memory
<sphalerite> So the OOM killer got invoked...
<sphalerite> Killing chrome...
<sphalerite> To which the OS responds with a reboot >_>
<clever> sphalerite: my 3rd attempt at building gcc died while building the info docs
<clever> no free space on /tmp again
<clever> ive stripped everything i can out of the host debian, lol
<clever> it doesnt even have a copy of nixpkgs in the channel anymore
<MichaelRaskin> doublehp: also, you can replace jre=true; with icedtea=true;
<kuznero> ldlework: F# is cool, we are using it in production for about 3 years by now
<kuznero> not Haskell of course, but still pretty cool
<doublehp> MichaelRaskin my bed is calling me; but I will write that on my todolist fopr tomorow morning; i will disable JRE, see if it helps, and dig other options later on. Overnight anyway
oever is now known as vandenoever
<doublehp> thanks and good night
<MichaelRaskin> Bed calling? A frightening amount of smart home, I would say. Good night.
fendor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/vdpYn
<NixOS_GitHub> nixpkgs/master c1105ad Jon Banafato: keepassx-community: 2.2.1 -> 2.2.2
<NixOS_GitHub> nixpkgs/master 74ef9c6 Daniel Peebles: Merge pull request #30692 from jonafato/keepassx-community-2.2.2...
NixOS_GitHub has left #nixos []
<kuznero> infinisil: should I explicitly declare unpackPhase to make sure src = fetchTarball ... is getting unpacked on nix-shell?
doublehp has quit [(Quit: Leaving.)]
<kuznero> infinisil: sorry, I just realized that I need to explicitly call unpackPhase bash function in nix-shell ;)
python476 has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vdp3t
<NixOS_GitHub> nixpkgs/release-17.03 b525d8c Piotr Bogdan: irssi: 1.0.4 -> 1.0.5...
NixOS_GitHub has left #nixos []
<kuznero> are there any special guidelines on how to keep files in /nix/store/qweqwewe-packge? having ./lib ./bin seems to be one thing... Or can it be something completely different? e.g. executables in the root of its folder, etc.?
<sphalerite> kuznero: it can be whatever you want
<kuznero> sphalerite: excellent ;) thanks
<sphalerite> kuznero: however if it's not in bin it won't end up on the PATH when installed into a profile
<kuznero> ah
<sphalerite> if a library's not in lib it won't get searched by the linker by default AFAIU
<kuznero> sphalerite: so, I can install as-is, but that ln -s?
<sphalerite> etc
<sphalerite> so you don't have to stick to the convention, but it does make sense to
<sphalerite> sure, that's a way to do it
<kuznero> ok
<kuznero> thanks
<sphalerite> for anything that only the packaged application consumes, you can put the data wherever you want
<sphalerite> convention dictates share/appname, but it doesn't really matter as long as nothing else is relying on it
<kuznero> got it, thanks
alhariel has quit [(Remote host closed the connection)]
Capprentice has joined #nixos
rtjure has joined #nixos
Neo-- has quit [(Ping timeout: 248 seconds)]
alhariel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30736: foomatic-filters: fix CVE-2015-8327 & CVE-2015-8560 (master...foomatic-filters-cves) https://git.io/vdpsp
NixOS_GitHub has left #nixos []
rtjure has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #30737: [WIP] gutenberg: init at v0.2.1 (master...feature/gutenberg) https://git.io/vdpG3
NixOS_GitHub has left #nixos []
<kuznero> sphalerite: what can be wrong? https://github.com/kuznero/nixpkgs-dotnet/blob/cb327116fcda19e6085ee57b32e3151b83f90370/sdk/default.nix when patched locally I can see it all works, but when installed as a package it behaves as if it is not...
<clever> kuznero: also, there is a function in lib to deal with line 12 for you
ma27 has quit [(Quit: WeeChat 1.9.1)]
<clever> kuznero: nix-repl> lib.makeLibraryPath [ stdenv.cc.cc libunwind libuuid icu openssl zlib curl ]
<clever> kuznero: that does all of line 12 at once
<kuznero> clever: ah, nice. thanks
<clever> kuznero: and the version on line 16 could just as easily be in the let block near 12
<kuznero> but, the reason dotnet executable does not want to work when installed is because I didn't simline libs under /lib?
<clever> kuznero: the stdenv just ignores the version attribute
ma27 has joined #nixos
rtjure has joined #nixos
<clever> kuznero: what error does dotnet give when ran?
<clever> kuznero: ah, and stdenv.lib is where you can find lib
<kuznero> it is missing some of the so files with a weird stack trace
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7360d54b26 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> kuznero: if you add dontPatchELF=true; to the derivation, does it work better?
Guest12551 has quit [(Remote host closed the connection)]
<kuznero> clever: that is counter intuitive. I need to patch it
<kuznero> clever: does this look right? lib.makeLibraryPath [ stdenv.cc.cc.lib libunwind libuuid.out icu openssl.out zlib curl.out ];
<clever> kuznero: there is a post-install hook that will run patchelf --shrink-rpath on everything
<clever> kuznero: which may remove some elements from your rpath
<clever> kuznero: also makeLibraryPath already handles the .lib and .out stuff
<kuznero> clever: hm, let me try that
<kuznero> clever: great, convenient
<clever> nix-repl> lib.makeLibraryPath [ stdenv.cc.cc ]
<clever> "/nix/store/klqzvvcy1xyjjflmf7agryayc4s72jg2-gcc-6.4.0-lib/lib"
<clever> nix-repl> lib.makeLibraryPath [ curl ]
<clever> "/nix/store/hnmggddfiq3fqxcpl5jclrrxdi21m1wb-curl-7.56.0/lib"
<kuznero> ok
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vdpnl
<NixOS_GitHub> nixpkgs/master 6af0de6 Franz Pletz: imagemagick: 6.9.9-15 -> 6.9.9-20
<NixOS_GitHub> nixpkgs/master bb49391 Franz Pletz: imagemagick7: 7.0.7-4 -> 7.0.7-8
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to release-17.09: https://git.io/vdpnR
<NixOS_GitHub> nixpkgs/release-17.09 babaa6a Franz Pletz: imagemagick: 6.9.9-15 -> 6.9.9-20...
<NixOS_GitHub> nixpkgs/release-17.09 36a4dc3 Franz Pletz: imagemagick7: 7.0.7-4 -> 7.0.7-8...
NixOS_GitHub has left #nixos []
rtjure has quit [(Ping timeout: 255 seconds)]
<kuznero> clever: but still what will dontPatchELF=true; do for me?
ssmike has joined #nixos
<clever> kuznero: it turns off the fixup hook that shrinks the rpath
<clever> which may break the rpath after your test --version
<sphalerite> What's the right way to get something from one store to another, when both stores are on the same machine but the source is in, say, /mnt/nix rather than /nix?
<clever> sphalerite: one sec
<kuznero> clever: I see, so since I am doing it manually I should turn off the one that is doing it automatically, right?
<clever> sphalerite: something like nix copy --to local?root=/mnt
hamishmack has quit [(Quit: hamishmack)]
<clever> kuznero: the automatic shrink is still of use, it can remove things you added but didnt actually need
ma27 has quit [(Ping timeout: 246 seconds)]
<clever> kuznero: but it may also break things, so try with it off and see if that helps
<kuznero> ok
nallar has joined #nixos
Ross has quit [(Ping timeout: 240 seconds)]
nallar is now known as Ross
<clever> sphalerite: you will need to do "nix-shell -p nixUnstable", and if it gets root, it may upgrade the db.sqlite, which then means you have to keep using nixUnstable
srodal has joined #nixos
<kuznero> clever: that actually worked! But I am a bit confused. So, it turned some of the elf patching off. But not all of it...
<clever> kuznero: the problem, is that dotnet is using dlopen() to open some of its libraries
<clever> kuznero: and the --shrink-rpath on line 18 cant detect that, so it removes things you just put into the rpath
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vdpc8
<NixOS_GitHub> nixpkgs/master 63f7456 Dan Peebles: amazon-image: make derivation name configurable...
NixOS_GitHub has left #nixos []
<clever> and with those entries removed, it fails to find them
<kuznero> clever: interesting. :) thanks for clarification
<sphalerite> clever: eeh, I think I'll chroot in and use nix-store --export/import instead
rtjure has joined #nixos
ylwghst has joined #nixos
duncan^ has joined #nixos
duncan^ has quit [(Changing host)]
duncan^ has joined #nixos
<clever> sphalerite: there is also another thing, let me find it
<clever> sphalerite: this allows the nix inside the chroot to treat a bind mounted store as a binary cache
<sphalerite> ooh neat
<clever> that is what local?root=/mnt replaced
<kuznero> clever: ldlework: the (semi-)final dotnet-sdk package looks like this now: https://github.com/kuznero/nixpkgs-dotnet/blob/master/sdk/default.nix Though it only works on linux. There is another tarball we can try for MacOS, clever how reusable the rest of the package definition is if I need to make sure it also works in Mac OS?
<clever> with nixUnstable, all binary caches are handled directly in c++ within nix, and local?root=/mnt handles this type of store
JosW has joined #nixos
<clever> sphalerite: with the older nix thats in 16.09, all binary cache stuff is handled by perl scripts
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to release-17.03: https://git.io/vdpCR
<NixOS_GitHub> nixpkgs/release-17.03 f8b5388 Franz Pletz: imagemagick: 6.9.9-15 -> 6.9.9-20...
<NixOS_GitHub> nixpkgs/release-17.03 a046655 Franz Pletz: imagemagick7: 7.0.7-4 -> 7.0.7-8...
NixOS_GitHub has left #nixos []
<clever> kuznero: OSX doesnt let you change the interpreter, and the rpath goes by a slightly different name
datakurre has joined #nixos
datakurre has quit [(Client Quit)]
datakurre has joined #nixos
rtjure has quit [(Ping timeout: 248 seconds)]
<kuznero> clever: would you consider making this package such that it can handle any system (Darwin, Linux, Windows) or I should create separate packages for different systems?
<ylwghst> If I want compile app on my nix machine for example this https://github.com/nowrep/notify-desktop I should create package and then try add it into nixpkgs right or I can just build it directly from configuration.nix right?
<clever> kuznero: id put an if statement in the file, to select between 2 derivations
<clever> kuznero: for example, put both derivations into a let block, followed by
<clever> in if (stdenv.system == "x86_64-linux") then linux64 else mac64
<disasm> ylwghst: I'd PR it to nixpkgs
<clever> kuznero: and in each version, make sure to set meta.platforms to cover both i think
<clever> kuznero: so when a linux util scans, it can detect that it is still supported on darwin
<ylwghst> disasm: ok
<kuznero> clever: thanks, I will try search for examples with meta.platform
<sphalerite> clever: any idea why `nix-instantiate '<nixpkgs>' -A llvm_5 --arg system '"armv7l-linux"'` would give a different result between the arm nix and the x86_64 nix?
<clever> sphalerite: the fixed-output derivations refer to the curl nix was built against
<sphalerite> was a bit miffed just now to find that I'm building the wrong llvm_5 :*
<sphalerite> :( &
<clever> sphalerite: so the .drv hash isnt protected against changes in curl that fixed-output gives
rtjure has joined #nixos
<clever> sphalerite: but the $out hash is
<sphalerite> awww poo
<sphalerite> oh
<sphalerite> so building different drvs can get the same output? Sweet
<clever> you have 2 different ways of building the same $out
<clever> depending on if $src was fetched with the arm curl or the x86 curl
<sphalerite> yesss they do contain the same out!
<sphalerite> Great
<sphalerite> so if I try to build one, having already built the other, it won't start building again, right?
<sphalerite> s/build/realise/
<clever> yeah, it should see its already in the store and just use that
<sphalerite> awesome
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #30738: gthumb: 3.5.1 -> 3.5.3 (master...update/gthumb-3.5.3) https://git.io/vdpWA
NixOS_GitHub has left #nixos []
goibhniu has joined #nixos
<sphalerite> also ­— I imagine this isn't an easy problem, but is anyone working on getting cross-compilation working more nicely with nix? Particularly when it comes to the interaction between cross-built and natively-built packages. It would be nice if they could be mixed freely.
<sphalerite> Or is this already possible?
<clever> sphalerite: the main issue there, is that the purity of nix doesnt really play nicely with that
<clever> sphalerite: if i build the entire nixos image with a cross-compiler
rtjure has quit [(Ping timeout: 240 seconds)]
<sphalerite> yeah, I realise that
<clever> then i boot it up, and nix-env -iA nixos.hello
<sphalerite> but it must be solveable somehow?
<clever> it will eval it in native mode, and want a glibc + gcc that where built natively
<tgunb> can someone explain me, when .profile is read, when im grafically logged in?
<clever> and then it takes 24 hours to build hello-world
<sphalerite> tgunb: I don't think it is
<clever> sphalerite: you can sorta fix that, by using config.nix to force everything to be cross-compiled
<tgunb> where am i supposed to put my env vars?
<clever> sphalerite: but now the arm is incapable of building anything for itself, and must force jobs out to an x86 to get anything done
<tgunb> .bashrc?
<sphalerite> clever: yes, I realise that's the problem. I'm asking if there's a solution, or someone working on one :p
<sphalerite> tgunb: on nixos?
<tgunb> yes
<clever> sphalerite: i dont know of any way to fix that right now
ison111 has quit [(Ping timeout: 240 seconds)]
fendor has quit [(Quit: Leaving)]
<sphalerite> tgunb: the environment.variables option for all users
<sphalerite> or sessionVariables
<kuznero> clever: do you have any example on macos/linux/windows cross package, I failed to find one based on meta platform...
<sphalerite> clever: maybe some crazy hackery where everything is in LLVM IR? :D
dejanr has joined #nixos
<ylwghst> How should I build the package I wrote before PR?
<sphalerite> I seem to remember you or someone else here talking about a system that used LLVM IR for JIT
<clever> kuznero: i would just do meta.platforms = [ "x86_64-darwin" "x86_64-linux" ]
<sphalerite> ylwghst: nix-build path/to/nixpkgs -A name
<clever> sphalerite: there is still the problem that llvm and the project your building, needs to know what structs and such to build against
JosW has quit [(Quit: Konversation terminated!)]
<clever> sphalerite: for example, one of the structs passed to signal handlers, contains various cpu registers at the time of the signal, so segfault can be handled right
<clever> sphalerite: llvm will bake the wrong struct into that bitcode
<Dezgeg> llvm IR isn't platform-neutral anyway
<sphalerite> ah right
<sphalerite> oh?
rtjure has joined #nixos
<Dezgeg> you can't expect a C-to-IR compiler to generate the same thing from say, malloc(sizeof(void*))
<Dezgeg> on systems of different bitness
zarel has quit [(Quit: Leaving)]
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<clever> how big is a pointer? i wont tell you which cpu, you must give the right answer for every platform!
<tgunb> sphalerite: thanks. do you know how the situation is on other distros? maybe a pam module?its a step back in nixos, that you need to be admin to do, what works on other distros without being the admin
<sphalerite> tgunb: on other distros you use the other distro's mechanism
<sphalerite> tgunb: for setting session variables I'm not too sure how to do it on nixos on a per-user basis, but you can put them in .bashrc or the corresponding rc file for your shell to get them in terminals
<ylwghst> sphalerite: nix-build path/to/nixpkgs/source -A name right?
<tgunb> as far as i remember, .profile worked fine for me on ubuntu.
<sphalerite> ylwghst: yep
<sphalerite> tgunb: .profile is weird because it's only sourced by login shells
<sphalerite> iirc
<sphalerite> I'm not sure how that corresponds to graphical sessions
taktoa has joined #nixos
rtjure has quit [(Ping timeout: 255 seconds)]
<taktoa> sphalerite: I think dtzWill is working on something involving Nix and building packages to LLVM bitcode for his PhD
<ylwghst> tgunb: .bashrc isn't suitable for your purposes?
* dtzWill reads backlog for context
<rnhmjoj[m]> do you know if these programs are packaged in nixkpgs? i can't find them. https://packages.debian.org/wheezy/x11-apps
<ylwghst> tgunb: or this https://nixos.org/nixos/options.html#environment.variables
<rnhmjoj[m]> I need bitmap specifically
<dtzWill> actually, 1 sec, gotta relocate, bbiab
<sphalerite> rnhmjoj: yeah doesn't look like they're there
<sphalerite> at least according to nix-index
glenn has joined #nixos
rtjure has joined #nixos
<sphalerite> rnhmjoj: doesn't look like it would be complicated to package though
<joko> Is it possible to freeze nixpkgs so that even if someone updates the channel, the system does not get updated?
glenn_ has quit [(Ping timeout: 240 seconds)]
<clever> joko: line 56 bakes a given nixpkgs into the system, which will appear at /run/current-system/nixpkgs at runtime
<clever> joko: line 48 then sets NIX_PATH to use that
<clever> joko: at this point, nix-build, nixos-rebuild, and nix-shell will always use that copy, and never look at the channels
<joko> this is splendid!
<clever> joko: in this case, 56 refers to a fixed-output derivation, but you can also just refer to ${<nixpkgs>} which will indirectly refer to the current nixos's nixpkgs
<clever> joko: and if you did change that, nixos-rebuild -I nixpkgs=/foo switch, would "temporarily" override it, but change what is "current", so it then sticks
<joko> clever: I see... and what would happen if I have already updated? I mean I need to set a specific nixpkgs version first
<tgunb> sphalerite: yes, only for login shells. and this means every program i run gets the environment variable. found the solution: for graphical login the pam module pam_env should do it.
ylwghst has quit [(Quit: Lost terminal)]
cement has quit [(Ping timeout: 255 seconds)]
<hodapp> building packages to LLVM bitcode? whaaa?
<sphalerite> tgunb: yes, that's what sessionVariables does. But it's not configurable by unprivielged users, is it?
<clever> joko: you would either checkout a nixpkgs you like from git, or double-check that you like where the channel is, then point -I nixpkgs= at that, and then it will persist until overriden again
ylwghst has joined #nixos
rtjure has quit [(Ping timeout: 260 seconds)]
<tgunb> sphalerite: im new to nixos, but AFAIU those settings are to be put into configuration.nix and need to be applied by root
<sphalerite> tgunb: yes, and the same applies to pam configuration
<sphalerite> tgunb: and sessionVariables just sets the pam configuration for you.
<sphalerite> But either way it needs to be done as root AFAIU
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/b0dba8f022 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
nh2 has joined #nixos
simukis has quit [(Ping timeout: 264 seconds)]
griff_ has joined #nixos
<tgunb> the thing is that pam_env reads a user supplied file. iiuyc, i set the env vars explicitly in configuration.nix. pam_env needs to be set up, but the user can choose what variebles s/he wants.
rtjure has joined #nixos
<tgunb> https://linux.die.net/man/8/pam_env under user_envfile
ssmike has quit [(Ping timeout: 248 seconds)]
<tgunb> unfortunately, pam_env is not packaged by nix. do you think it would be accepted if I did it?
<sphalerite> tgunb: yes it is, it's in the pam package
<sphalerite> tgunb: and again, as I already said, environment.sessionVariables uses pam_env to set them
katyucha has quit [(Ping timeout: 246 seconds)]
rtjure has quit [(Ping timeout: 240 seconds)]
<sphalerite> but yes you're right, if you add the user_envfile option it should work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #30740: shotwell: 0.26.2 -> 0.27.0 (master...update/shotwell-0.27.0) https://git.io/vdp0m
NixOS_GitHub has left #nixos []
<ylwghst> www.google.com < brb
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a04665592c (from 57 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/36a4dc392a (from 57 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> tgunb: unfortunately the module for pam doesn't seem to have a facility for adding that option. It should be easy to do though, and I'm pretty sure it would be accepted as a PR so it would make a great first PR if you're interested :)
<sphalerite> tgunb: see nixos/modules/security/pam.nix
<tgunb> ok, then i didn't understand correctly. yea, adding that option to nix seems easy enough for a first contribution.
rtjure has joined #nixos
<sphalerite> There might be some edge cases to cover with other uses of pam_env though, particularly in nixos/modules/services/x11/display-managers/gdm.nix
<sphalerite> the other uses of pam_env look ok to be left as is though
betaboon has joined #nixos
Capprentice has quit [(Ping timeout: 240 seconds)]
Capprentice has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.09: https://git.io/vdpEq
<NixOS_GitHub> nixpkgs/release-17.09 bf3dbc2 dywedir: youtube-dl: 2017.10.01 -> 2017.10.20...
NixOS_GitHub has left #nixos []
rtjure has quit [(Ping timeout: 248 seconds)]
<rnhmjoj[m]> sphalerite: i have tried writing a package for bitmap but it's trying to install itself in another package path. i guess some prefix patching is necessary
rtjure has joined #nixos
<sphalerite> rnhmjoj: I'll take a shot at it
* rnhmjoj[m] sent a long message: rnhmjoj[m]_2017-10-23_21:28:47.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/AfzyqVtGzCVykvagTrSrsThs>
<betaboon> hello again. i have another question on nixops: i was under the impression that nixops will make all hostnames in a network resolvable. but doing the following didnt work: create a virtualbox-machine, create a container within that virtualbox, configure nginx to do proxypass to container using its hostname -> container-hostname is not resolvable by virtualbox-nginx. any thoughts ?
rtjure has quit [(Ping timeout: 248 seconds)]
Neo-- has joined #nixos
<dtzWill> hodapp: yessir, most of my day-to-day software (terminal+shell+vim+ssh+utilities+etc) are ALLVM executables (all LLVM IR), mostly JIT'd but optionally built AOT in a binary cache ^_^
hamishmack has joined #nixos
<sphalerite> rnhmjoj: configureFlags = [ "--with-appdefaultdir=$out/share/X11" ];
<sphalerite> that fixes the build
* dtzWill LLVM's ALL the things! ;)
<dtzWill> hopefully will be sharing it all soon
<rnhmjoj[m]> sphalerite: nice. thanks for the help!
<dtzWill> if nothing else would like to catch up to latest nixpkgs and share fixes for things like building with musl and clang ^_^
Capprentice has quit [(Ping timeout: 255 seconds)]
<sphalerite> dtzWill: and you can't share it yet?
<sphalerite> sounds really cool, would love to know more whenever it becomes possible
imagio has joined #nixos
kp__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] earldouglas opened pull request #30741: Jenkins 2.86 (master...jenkins-2.86) https://git.io/vdpzC
NixOS_GitHub has left #nixos []
<dtzWill> I'm a strong believer in sharing and transparency, partly I need a chill week or two to remove bits I'm /not/ allowed to share (I've been using the same tree, unfortunatly, to also build and drive research projects for coworkers that aren't mine to share!)
<dtzWill> glad that sounds cool, I'm eager to make it available for use and poking at ^_^
<dtzWill> .. in fact doing so is one of my strongest motivations haha :D
<imagio> I'm trying to use nvm on nixos unstable but am seeing some strange behavior. "nvm use 4.4.6" spits out "/home/imagio/.nvm/versions/node/v4.4.6/bin/node: No such file or directory"... but that executable definitely exists. Any ideas?
rtjure has joined #nixos
<sphalerite> imagio: binaries for other distros don't work on nixos
<sphalerite> The file that's actually missing is the dynamic linker that binary expects
<sphalerite> Take a look at the output of file .../bin/node
<sphalerite> You'll probably want to use nix instead of nvm
rtjure has quit [(Ping timeout: 255 seconds)]
SovereignBleak has joined #nixos
<imagio> Unfortunately I am locked very specifically to node v4.4.6 for the project I am working on. That is why I would prefer to use nvm as it seems node 4.x in nixpkgs is 4.8.4
boxofrox has joined #nixos
<sphalerite> imagio: just use an old nixpkgs
<sphalerite> imagio: f9df1b5de06792f8b1d1a2b78d51705b066b8d0ce is the commit that upgraded node from 4.4.6, so if you take the commit before that (9a668ec58be6a432cd080656177b5c71e45db36f) you can do sometingg like…
<sphalerite> nix-shell -p nodejs -I nixpkgs=https://github.com/nixos/nixpkgs/archive/9a668ec58be6a432cd080656177b5c71e45db36f.tar.gz
<sphalerite> and you'll get a shell with node 4.4.6 :)
hiratara has quit [(Ping timeout: 252 seconds)]
erictapen has joined #nixos
<imagio> Thanks! That partially solves my problem... the other is that the project I am working on uses meteor which expects to be able to execute its own bundled node. So I end up with this
<imagio> "/home/imagio/.meteor/packages/meteor-tool/1.5.2_2/mt-os.linux.x86_64/meteor: line 135: /home/imagio/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node: No such file or directory"
rtjure has joined #nixos
hiratara has joined #nixos
<sphalerite> also, consider trying to convince whoever is responsible for that awful restriction to do whatever it takes to lift it. Node 4.4.6 is over a year old and has security vulnerabilities
<sphalerite> Are you using meteor from nixpkgs?
ylwghst has quit [(Ping timeout: 248 seconds)]
Ivanych has quit [(Ping timeout: 240 seconds)]
<sphalerite> I don't know anything about meteor or how it works, but depending on how uncooperative it is you may need to use a FHS user env to run it
<imagio> yes
<imagio> Yeah I was looking at fhsUserEnv but being a nix newbie I am unsure how to use it for development
<sphalerite> such a pain how many applications decide they need to be package managers too :(
<sphalerite> I don't know either unfortunately, I've never used them myself
ylwghst has joined #nixos
<imagio> Yeah, meteor's design descisions made sense when it first came out because the tooling didn't exist yet to do what it did. Now it is just a pain haha.
erictapen has quit [(Ping timeout: 248 seconds)]
<rycee> Anybody mind looking through these new installation instructions for Home Manager and see if they seem reasonably simple and understandable? https://github.com/rycee/home-manager/blob/429e3042/README.md#installation
iqubic has joined #nixos
rtjure has quit [(Ping timeout: 248 seconds)]
<rycee> No Git needed :-)
<sphalerite> https://nixos.org/nixpkgs/manual/#sec-fhs-environments seems fairly detailed though
<sphalerite> rycee: that's neat, I like it!
<iqubic> Well, my lenovo ideapad 320 needs to be returned.
<iqubic> It was purchased on Sunday and I already have found a bunch of things wrong with it.
<imagio> ah those fhsUserEnv docs were just what I was looking for, thanks, I missed that somehow
nixos1022 has quit [(Ping timeout: 255 seconds)]
<avn> imagio: personally I have best expirience with thinkpads, but idk if ideapads different or not
<sphalerite> imagio: maybe you were looking at the nixos manual and not the nixpkgs manual. The existence of those two distinctly is a fairly common source of confusion :)
<sphalerite> Doesn't help that they look so similar
<ldlework> infinisil its looking good for 102 from my basic tests
<sphalerite> iqubic: :(
<rycee> sphalerite: Cool. Thanks!
<iqubic> sphalerite: Yeah, it does suck.
<ldlework> rycee 102 is working for me :)
<avn> I have one b50 and one T420 (and one 770E, which have too long history ;))
goibhniu has quit [(Ping timeout: 240 seconds)]
goibhniu has joined #nixos
rtjure has joined #nixos
<ldlework> rycee your instructions seem 👍
dejanr has quit [(Ping timeout: 240 seconds)]
nh2 has quit [(Ping timeout: 258 seconds)]
<imagio> mebuildFHSUserEnv worked fantastically, that is a really useful tool!
<imagio> thanks for the help
leat has quit [(Ping timeout: 260 seconds)]
<ldlework> rycee how does that keep home-manager up to date automatically?
rtjure has quit [(Ping timeout: 240 seconds)]
<rycee> ldlework: When you use an HTTP URL to a tarball in NIX_PATH then Nix is smart enough to download the tarball when it is needed.
<rycee> Once a cache timeout occurs then it'll download it again and HM will get updated then.
rtjure has joined #nixos
<sphalerite> Is there a way to see what the nix daemon is currently building on, besides hacks using ps and similar?
<ldlework> interesting!
<sphalerite> s/ on//
<dtz> sphalerite: I'd like a good answer for this as well, but don't think so :(
<dtz> sphalerite: builds driven by hydra provide visibility, but dunno about local/etc
<dtz> (although maybe other folks have a solution)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/bf3dbc2b38 (from 54 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
chakra has quit [(Quit: Konversation terminated!)]
<sphalerite> aww
<sphalerite> dtz: fwiw I just wrote `for pid in $(ps -o pid --no-header --ppid $(pgrep nix-daemon)) ; do tr '\0' '\n' </proc/$pid/environ | grep name= ; done` (needs root)
rtjure has quit [(Ping timeout: 264 seconds)]
<dtz> HA awesome, okay I'll give that a go (well, after looking at it in pieces b/c I'm curious, but you know)
<dtz> oh nvm that's fairly clear
<dtz> hmm
<sphalerite> observation 1: doesn't work for substituters
leat has joined #nixos
<tgunb> has someone else problems with cfdisk? it hangs from time to time(especially when deleting a partition).
<symphorien> sphalerite: ls /tmp is a good approximation
<sphalerite> hm, does nix sort stuff to build in order to make sure stuff required for non-substitutable builds is substituted before stuff that nothing depends on?
<sphalerite> observation 2: it also doesn't work for whatever I'm building now xD
<sphalerite> symphorien: probably better than that command x)
rtjure has joined #nixos
dywedir has quit [(Remote host closed the connection)]
rtjure has quit [(Ping timeout: 255 seconds)]
p4cman has quit [(Quit: Connection closed for inactivity)]
<sphalerite> symphorien: yeah, works much better :p
<sphalerite> and doesn't require root
<symphorien> :)
<sphalerite> random idea of the day: some fuse magic or something to allow lazy evaluation of store paths, i.e. you can start building something before its dependencies have been built and it will just block once it tries to access the store path of an unfinished dep
<MichaelRaskin> sphalerite: it is useless with current setup.sh
<MichaelRaskin> Well, almost useless.
hiratara has quit [(Quit: ZNC - http://znc.in)]
<MichaelRaskin> The configure check that searches for a missing header will traverse all buildInputs.
<sphalerite> well not entirely lazy in that you'd start building the dependency right away
Neo--- has joined #nixos
<MichaelRaskin> Well, doesn't really matter — every build would immediately ask for all of its buildInputs to be built.
hiratara has joined #nixos
rtjure has joined #nixos
<MichaelRaskin> If you want better build ordering, that is a good question, but FUSE magic is irrelevant.
<mbrgm> does nixos come with a NAT64 module?
Neo-- has quit [(Ping timeout: 255 seconds)]
<sphalerite> MichaelRaskin: aww, ok
<sphalerite> is there a way to list all valid store paths?
rtjure has quit [(Ping timeout: 248 seconds)]
<MichaelRaskin> print-live + print-dead ?
<sphalerite> aaah yes, haha, neat
<MichaelRaskin> nix-store --gc --print-live --print-dead
<MichaelRaskin> For some reason it prints .lock files, too
<MichaelRaskin> Yeah, print-dead prints too much
rtjure has joined #nixos
<sphalerite> aww
<MichaelRaskin> Well, you could feed --print-dead output to a loop that runs nix-store --check-validity
rtjure has quit [(Ping timeout: 240 seconds)]
tgunb has quit [(Quit: Leaving.)]
tgunb has joined #nixos
<Dezgeg> I have this beauty somewhere in my shell history: comm -23 <(echo /nix/store/* | tr " " "\n" | grep -v '\.lock$') <(nix-store --check-validity --print-invalid /nix/store/*)
rtjure has joined #nixos
<sphalerite> heh
<sphalerite> I should really go to bed, but…
<sphalerite> [ 96%] Building CXX object unittests/Transforms/IPO/CMakeFiles/IPOTests.dir/WholeProgramDevirt.cpp.o
<gchristensen> ouch
<sphalerite> it's getting so close…
<sphalerite> I really hope it won't fail at 100% again though
dejanr has joined #nixos
rtjure has quit [(Ping timeout: 240 seconds)]
Neo--- has quit [(Ping timeout: 240 seconds)]
<ylwghst> any ideas why cant create the bin https://gist.github.com/ylwghst/647c861a6277763c80293f6a23a5bd93 ??
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jammerful opened pull request #30744: makeself: 2.2.0 -> 2.3.1 (master...makeself) https://git.io/vdpiG
NixOS_GitHub has left #nixos []
<makefu> ylwghst: install -m 755 -p ../bin/notify-desktop /usr/bin/notify-desktop does not look right
<makefu> try setting PREFIX in makeflags to $OUT
<makefu> such as: makeFlags = [ "PREFIX=$(out)" ];
<ylwghst> same error
rtjure has joined #nixos
<ylwghst> from log: install flags: install SHELL=/nix/store/h404wfcz8rzzlq8vr4z7plcijwzfci72-bash-4.4-p12/bin/bash PREFIX=\$\(out\)
<ylwghst> $out shoud be printed here or not?
<sphalerite> nnnnnnnnnnoooooooooooooooo… the tests for llvm fail in qemu-user 😢
<gchristensen> :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #30741: jenkins: 2.85 -> 2.86 (master...jenkins-2.86) https://git.io/vdpzC
NixOS_GitHub has left #nixos []
<sphalerite> Well... Looks like I'll be spending a lot of tomorrow waiting for builds too
nh2 has joined #nixos
rtjure has quit [(Ping timeout: 248 seconds)]
erasmas has quit [(Quit: leaving)]
nh2 has quit [(Client Quit)]
<tazjin> is there a way to force nix to add a runtime dependency to a derivation? I packaged an upstream shell script and had to do some nasty sed-ing to include store paths to commands it calls
<makefu> ylwghst: yes, i just took the sample from nixpkgs. you could try to override the makePhase with ''make install PREFIX=$out''
rtjure has joined #nixos
<michaelpj> tazjin: `propagatedBuildInputs`. Although IMO replacing references to things in the PATH with direct store links is significantly cleaner, and doesn't have any risk of clashing with other things in the PATH
<ylwghst> makefu: result: install flags: install SHELL=/nix/store/h404wfcz8rzzlq8vr4z7plcijwzfci72-bash-4.4-p12/bin/bash
ison111 has joined #nixos
<ylwghst> without prefix
<makefu> ylwghst: ... just checked the source
<ylwghst> makefu: i think the prefix should be printed already but it uses exactly $out
<tazjin> michaelpj: actually I tried propagatedBuildInputs but it didn't behave as expected (I didn't have the binary from that extra input on my PATH afterwards), maybe that expectation is wrong? The store link rewrite works fine though!
rtjure has quit [(Ping timeout: 260 seconds)]
<makefu> seems you have to patch the source (either by sed or patch-file)
markus1199 has joined #nixos
<ylwghst> thx
<michaelpj> tazjin: oh hm, possibly that only works if you're using it as the input to something else. I'm not sure what you do if you want it also to be installed when you install the derivation
Vorpal has quit [(Ping timeout: 248 seconds)]
markus1189 has quit [(Ping timeout: 240 seconds)]
<makefu> ylwghst: of course,best case if you create a PR on upstream with the $PREFIX available as a variable
rtjure has joined #nixos
Vorpal has joined #nixos
<ylwghst> makefu: ok but why $out isnot printed in this step: install flags: install SHELL=/nix/store/h404wfcz8rzzlq8vr4z7plcijwzfci72-bash-4.4-p12/bin/bash PREFIX=\$\(\"\$TARGET\"\)
<ylwghst> sorry
<ylwghst> install flags: install SHELL=/nix/store/h404wfcz8rzzlq8vr4z7plcijwzfci72-bash-4.4-p12/bin/bash PREFIX=\$\(\"\$out\"\)
<alhariel> is there a list of valid values for i18n.consoleKeyMap?
<ylwghst> there should be nix path already or not?
<makefu> ylwghst: i think this will be expanded when being used by the makefile
<ylwghst> ok
rtjure has quit [(Ping timeout: 240 seconds)]
demego has quit [(Ping timeout: 240 seconds)]
<makefu> mhh but according to https://nix-cache.s3.amazonaws.com/log/kxl32lnf0qf0xls37mgjgvk2vs8skaf3-feh-2.20.drv (another tool which gets build with the PREFIX= makeflage) it should be directly expanded
<ylwghst> makefu: i think so
<ylwghst> thats what i thought
<ylwghst> why isnt
<gchristensen> makefu: you should probably refer to cache.nixos.org instead of nix-cache
<makefu> gchristensen: i just copy-pasted "raw" from https://hydra.nixos.org/build/62317475
<gchristensen> hmmm!
rtjure has joined #nixos
<tazjin> alhariel: search your /nix path for a folder called `keymaps`, it should be in `kbd` or `kbd-env`
<makefu> ah https://hydra.nixos.org/build/62317475/log/raw gets redirected ...
pxc has quit [(Ping timeout: 258 seconds)]
<ylwghst> hm
<ylwghst> it cant be..
<ylwghst> it does look like its somehow escaped
<MagneticDuck> So I have a path in the store, $PATH, and nix-store --query --hash gives $HASH. I'm trying to point a requireFile derivation to my file and I've set the sha256 parameter to $HASH and the name parameter to the name of my file as it was when I added it with nix-store --add
<makefu> ylwghst: can you provide the derivation definition?
<MagneticDuck> However, the requireFile fails -- it builds the warning message.
<alhariel> under store or .ro_store
<MagneticDuck> Ideas?
rtjure has quit [(Ping timeout: 240 seconds)]
Piece_Maker has joined #nixos
Acou_Bass has quit [(Ping timeout: 248 seconds)]
Piece_Maker is now known as Acou_Bass
rtjure has joined #nixos
tgunb has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] alexvorobiev closed pull request #30706: meritous: init at 1.4 (master...meritous) https://git.io/vdAiJ
NixOS_GitHub has left #nixos []
rtjure has quit [(Ping timeout: 260 seconds)]
jb55 has quit [(Ping timeout: 240 seconds)]