<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>
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?)
<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
<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?
<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..
<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>
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
<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)]
<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
<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 ?
<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
<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>
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
<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.
<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?
<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
<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
<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
<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: 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
<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>
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)]
<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
<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)
<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
<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
<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
<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?
<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)]
<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
<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)]
<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
<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?
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.
<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?
<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
<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.
<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
<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...
<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...
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
<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?
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?
<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 ...
<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)]
<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>
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*))
<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?
<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
<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.
<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
<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
<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 ?
<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 ^_^
<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>
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.
<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)
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>
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
<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: 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\"\)
<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.