AllanEspinosa has quit [(Ping timeout: 258 seconds)]
vaibhavsagar_ has joined #nixos
<NixOS_GitHub>
[nix] earldouglas opened pull request #1351: Drop misleading ellipses (master...ellipses) https://git.io/v9vhL
Guest60 has joined #nixos
<ben>
if i use nixops to set up a local virtualbox nixos, does it make sense to make the nix store a shared folder?
[0x4A6F] has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #25070: haskell: add a ghcDefault pkgset, pointing to current default (master...ghcDefault) https://git.io/v9vh0
[0x4A6F] has joined #nixos
hamishmack has joined #nixos
newhoggy_ has joined #nixos
nalice has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 258 seconds)]
carlosda1 has joined #nixos
mudri has quit [(Quit: WeeChat 1.7)]
carlosda1 has quit [(Ping timeout: 252 seconds)]
ryantrinkle has joined #nixos
<hodapp>
if I'm shipping a shell.nix for the sake of setting up a dev environment, is there a standard way of having it check out just the latest code from some repo, ignoring sha256?
Swant has quit [(Killed (mst (<No reason given>)))]
<dash>
hodapp: put it in the repo, use a relative path...
Swant has joined #nixos
<dash>
or put it in its own repo and use a git submodule and a relative path
<hodapp>
dash: how does one use a relative path in this context?
exarkun has quit [(Read error: Connection reset by peer)]
vaibhavsagar_ has quit [(Ping timeout: 258 seconds)]
<hodapp>
just set 'src' thus?
<dash>
hodapp: i was going to try this myself tomorrow: make a repo with nix files in it, add all the code it should build as git submodules, set src attribute to those submodule dirs
<simpson>
hodapp: src = ./.;
<hodapp>
thanks
<simpson>
hodapp: You can also go up using .. and so forth.
exarkun has joined #nixos
Guest60 has quit [(Quit: My Mac Pro has gone to sleep. ZZZzzz…)]
cheecheeo has quit [(Ping timeout: 260 seconds)]
seagreen has quit [(Ping timeout: 240 seconds)]
peacememories has joined #nixos
<hodapp>
weird... just copied most of pkgs/applications/graphics/darktable/default.nix into shell.nix in the repo directory, and it works fine up until I call cmakeConfigurePhase, which can't find the C compiler
<hodapp>
but 'which cc' takes it directly to '/nix/store/dqfikdyxdrykwcbg1wp6nd725y0c7va4-gcc-wrapper-5.4.0/bin/cc'...
AllanEspinosa has joined #nixos
<hodapp>
if I run 'nix-shell ~/nixpkgs -A darktable' then configuration proceeds just fine, but if I run 'nix-shell -I nixpkgs=~/nixpkgs' from the darktable repo where I've put a shell.nix that is nearly identical to pkgs/applications/graphics/darktable/default.nix, CMake configuration can't find the compilers
<hodapp>
so the two invocations must be different somehow, but why?
<ahmedtd>
Does anyone know how the nixpkgs quicklisp-to-nix generation works?
zeus_ has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
Guest60 has joined #nixos
carlosda1 has joined #nixos
acarrico has quit [(Ping timeout: 252 seconds)]
carlosda1 has quit [(Ping timeout: 240 seconds)]
sigmundv__ has quit [(Ping timeout: 260 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
nhill has quit [(Quit: WeeChat 0.4.2)]
seagreen has joined #nixos
derjohn_mob has quit [(Ping timeout: 258 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
griff_ has joined #nixos
iclanzan has joined #nixos
derjohn_mob has joined #nixos
takle_ has quit [(Remote host closed the connection)]
<iclanzan>
Does anyone know how to get OpenVPN to work after resuming from suspend?
systemfault has joined #nixos
ericsagnes has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #25075: [WIP] nvidia-firmware: init at 325.15 - calling all nvidia users (master...p/nvidia) https://git.io/v9fIt
iclanzan has quit [(Quit: WeeChat 1.7)]
takle has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
takle has quit [(Ping timeout: 260 seconds)]
carlosda1 has joined #nixos
carlosda1 has quit [(Ping timeout: 260 seconds)]
chaoflow has quit [(Ping timeout: 260 seconds)]
Wizek_ has joined #nixos
griff_ has quit [(Quit: griff_)]
dridus has joined #nixos
contrapumpkin has joined #nixos
justan0theruser has quit [(Ping timeout: 240 seconds)]
justanotheruser has joined #nixos
ericsagnes has quit [(Ping timeout: 260 seconds)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
tnks has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
tnks has joined #nixos
hexagoxel has joined #nixos
vaibhavsagar has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
Guest60 has quit [(Read error: Network is unreachable)]
<delta__>
I just tried to switch to nixos-unstable, but sudo nix-channel --update gives me 'error: unable to download ‘https://nixos.org/channel/nixos-unstable/nixexprs.tar.bz2’: HTTP response code said error (22)'. Any idea what the problem is?
sdll has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
delta__ has quit [(Ping timeout: 260 seconds)]
delta__ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
Guest36040 has joined #nixos
takle has joined #nixos
systemfault has quit [(Quit: Bye!)]
takle has quit [(Ping timeout: 240 seconds)]
carlosda1 has joined #nixos
dridus has quit [(Quit: znc? wassat?)]
carlosda1 has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
johnsonav has joined #nixos
ryanartecona has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
seagreen has quit [(Quit: WeeChat 1.7)]
seagreen has joined #nixos
takle has joined #nixos
delta__ has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
ilyaigpetrov has joined #nixos
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
takle has joined #nixos
aneeshusa has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
newhoggy_ has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
newhoggy_ has quit [(Remote host closed the connection)]
ericsagnes has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
carlosda1 has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
carlosda1 has quit [(Ping timeout: 255 seconds)]
pxc has joined #nixos
pxc has quit [(Client Quit)]
sophiag has joined #nixos
justbeingglad has joined #nixos
nicknovitski has quit [(Ping timeout: 255 seconds)]
justbeingglad has left #nixos []
takle has joined #nixos
<sophiag>
does anyone here use xmonad instead of metacity with gnome? there are instructions on the haskell wiki, but i'm wondering if there's a way to set it up in my configuration.nix instead
leat has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
MercurialAlchemi has joined #nixos
exarkun has quit [(Read error: Connection reset by peer)]
<Guest36040>
I used xmonad, I tried to use it with KDE, but the support is just bad, and you need to work around all sorts of hacks. Decided to dump KDE integration, and just use Xmonad and construct my own "windows environmen".
Guest36040 is now known as CMCDragonkai
<sophiag>
the wiki says it works well with gnome :https://wiki.haskell.org/Xmonad/Using_xmonad_in_Gnome#Setting_up_Gnome_to_use_Xmonad
<sophiag>
otoh...i find gnome3 on nixos just doesn't work well generally
<CMCDragonkai>
Wikis say lots of things. Have to try it to know it.
<sophiag>
ha
<sophiag>
so do i have to disable gnome in my configuration.nix in order to launch into xmonad?
<puffnfresh>
your login manager should allow choosing what window manager to go to
<CMCDragonkai>
You can disable gnome and enable xmonad, if you leave them both enabled, the display manager allows choosing any combination of the 2
aneeshusa has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
exarkun has joined #nixos
marsel has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
<sophiag>
ah, ok. i think i remember seeing that when i initially installed it and can't remember if i just had it commented out or not
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
edef has quit [(Ping timeout: 268 seconds)]
griff_ has quit [(Ping timeout: 260 seconds)]
marsel has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
RayNbow`TU has joined #nixos
ryanartecona has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
carlosda1 has joined #nixos
freusque has joined #nixos
johnramsden has joined #nixos
carlosda1 has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
takle has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<johnramsden>
Could Someone give me some advice? I'm having trouble packaging something with buildFHSUserEnv and I think I must be doing it wrong. I tried without the FHS but it didn't work I assume because I was attempting to use a deb.
<johnramsden>
When I end up trying to run it I get "/nix/store/fnkc45zxdqzp7dmifj44pz3y5c5aj924-nylas-mail-init: line 11: /nix/store/ds48y738w84qw498bzn34zjnv4d4axnd-fhs-fhs/usr/bin/usr/share/nylas-mail/nylas: No such file or directory"
<engblom>
There seem to be bug when it comes to zfs root. The installation goes well, but then upon rebooting I get "cannot import 'rpool': no such pool available"
<johnramsden>
engblom: You might need to set your host ID
<engblom>
johnramsden: I have done that by setting networking.hostID in /mnt/etc/nixos/configuation.niz
<engblom>
networking.hostId, I mean
<johnramsden>
Are you trying to boot from ZFS?
takle has quit [(Ping timeout: 255 seconds)]
<engblom>
Yes
<johnramsden>
I'm not sure if that's possible
<engblom>
It is possible with ubuntu, at last
<johnramsden>
You probably need an extra boot partition
<engblom>
least*
<mbrgm>
joachifm: thanks for reviewing! :)
<engblom>
unless nixos grub is lagging behind, I can not see why a separate boot partition would be needed
<johnramsden>
Are you using systemd-boot?
<johnramsden>
grub?
<engblom>
Actually, it boots far enough to load the kernel. It just fails to mount the root system as it can not find the pools
<engblom>
That means it that grub found the kernel from the zfs pool
<johnramsden>
hmm. And you set them to Legacy?
<engblom>
Yes
<c74d>
mountpoint=legacy shouldn't affect whether the *pool* is found, should it?
<johnramsden>
Well, Nix only Manages them unless their legacy unless I'm mistaken
<johnramsden>
ZFS can be complicated to boot from, I usually create a 512MiB partition and boot from that. Then you can use systemd-boot too. Unless you're BIOS.
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/v9flH
<NixOS_GitHub>
nixpkgs/master 59c70e4 Vincent Laporte: jbuilder: 1.0+beta5 -> 1.0+beta7
dmi3y has joined #nixos
newhoggy has joined #nixos
<clever>
johnramsden: 90% of the time you dont need buildFHSUserEnv, you need patchelf
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Remote host closed the connection)]
<johnramsden>
clever: I thought buildFHS basically did that too.
<clever>
johnramsden: buildFHS sets up a giant mess of symlinks to simulate an FHS env, then uses some bash scripts and setuid stuff to chroot into it and run something
<clever>
a random example of a debian package being patchelf'd
<johnramsden>
clever: Thanks
<clever>
and you normally dont need to use wrapProgram either
<clever>
patchelf --set-rpath does the same thing
Itkovian has joined #nixos
newhoggy has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
freusque has quit [(Quit: WeeChat 1.7)]
takle has joined #nixos
newhoggy has quit [(Ping timeout: 258 seconds)]
bennofs has joined #nixos
indi_ has quit [(Client Quit)]
freusque has joined #nixos
ambro718 has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
vaibhavsagar_ has joined #nixos
marsel has joined #nixos
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
carlosda1 has joined #nixos
<FRidh>
I fetched a git repo and now I need to modify some files in there and save the updated src. What is the recommended method? Using runCommand and cp -r I get permission errors when modifying files.
<mbrgm>
is there a way to search the nix package providing a specific file? similar to apt-file?
<clever>
FRidh: after you cp -r, you need to chmod -R +w
carlosda1 has quit [(Ping timeout: 252 seconds)]
<clever>
mbrgm: only for files in bin/ right now
takle has joined #nixos
<clever>
mbrgm: if you name a file i can do some tricks on this end to see if i can find it
<mbrgm>
clever: what's the way to search for bin/ files? for my current file, I'm quite sure about its package, was just curious about a general way ;)
ravloony has joined #nixos
<clever>
mbrgm: the bin/ stuff is indexed in programs.sqlite in the root of a channel, and command-not-found handles that
nschoe has joined #nixos
<mbrgm>
clever: ah, I see. is command-not-found available outside of nixos?
<clever>
mbrgm: its only configured on nixos, and its part of a nixos module
<mbrgm>
gnah
<clever>
mbrgm: but you can cheat and just open the programs.sqlite file with sqlite3
<mbrgm>
ok, so I'll have to switch to nixos some time soon ;)
<clever>
it should be somewhere like ~/.nix-defexpr/channels/nixpkgs/
<FRidh>
clever: ok. I see now that that is done normally in the unpackPhase of the generic builder, which runCommand doesn't use if Im correct
<mbrgm>
clever: great, ty!
<clever>
FRidh: yeah, runCommand disables all phases
takle has quit [(Ping timeout: 240 seconds)]
ambro718 has quit [(Ping timeout: 240 seconds)]
lsix has joined #nixos
ixxie has joined #nixos
kampfschlaefer has joined #nixos
<ixxie>
what is the name of the file browser NixOS ships with?
<clever>
ixxie: depends on which desktop environment you install, gnome, kde, and xfce each have their own
mudri has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c closed pull request #25067: update sbcl and stunnel and more (master...master) https://git.io/v9vSf
civodul has joined #nixos
thc202 has joined #nixos
<ixxie>
clever: aha
<ixxie>
I experienced random overheating last night and I am trying to diagnose it
<ixxie>
Nautilus seemed to hang a few times
goibhniu has joined #nixos
takle has joined #nixos
johnramsden has quit [(Remote host closed the connection)]
<mudri>
I'm trying to build haskellPackages.xml-html-conduit-lens on nixos-unstable.
<bennofs>
clever, mudri: the haskell packages are auto-generated from the all-cabal-hashes repository set up by commericalhaskell / fpcomplete that has meta information on all packages on hackage
aminechikhaoui has joined #nixos
<bennofs>
mudri: the source tarballs are fetched from Hackage as cabal-install would do it though
<mudri>
bennofs: aah, is this a problem that should be fixed at xml-html-conduit-lens?
<bennofs>
so this is really a case of the package itself being broken, it would fail the same way if you'd installed it with tests enabled with cabal
johnramsden has joined #nixos
johnramsden is now known as Guest99872
<mudri>
In the meantime, what can I do to use the package?
Guest99872 is now known as ramsdenj
ericsagnes has joined #nixos
<bennofs>
mudri: you can disable the tests for the packagde
<bennofs>
mudri: how are you using this haskell package?
<engblom>
nixos-install made my menu, so I guess if I do changes manually to the menu it would get overwritten
<clever>
the option i linked will affect how nixos generates the config
takle has quit [(Ping timeout: 240 seconds)]
<engblom>
clever: I could use boot.extraKernelParams ?
<clever>
that is just an alias to the one i linked
<johnramsden>
engblom, boot.loader.grub.zfsSupport needs setting too if you missed it.
<engblom>
johnramsden: I already have " boot.supportedFilesystems = [ "zfs" ]; "
<clever>
that puts zfs into the initrd, but not into grub
<johnramsden>
Might be your problem there.
carlosda1 has quit [(Ping timeout: 240 seconds)]
dmi3y has joined #nixos
<engblom>
I will try that first
<engblom>
Now, when I have everything mounted under /mnt how do I update the system? Should I do nixos-install again?
<clever>
yes
<clever>
it will rebuild anything that is out of date and re-run grub-install
<engblom>
Okay, will try it later today! Have to rush away again
<johnramsden>
Good luck!
ryanartecona has quit [(Ping timeout: 260 seconds)]
<johnramsden>
How would I create two lists of packages then append them? Something like, myPkgs = with pkgs; [ <package> ]; environment.systemPackages = with pkgs; myPkgs ++ [ packages];? But that doesn't work.
<clever>
johnramsden: that should work, what error does it give?
<clever>
and myPkgs must not be inside the attrset
<johnramsden>
error: syntax error, unexpected '=', expecting ';', at
<clever>
you omited the character position that says where the problem is
takle has joined #nixos
<clever>
can you gist the full file and the exact error?
<johnramsden>
I've gone environment.systemPackages = with pkgs;
<johnramsden>
let <custom package>; in environment.systemPackages = with pkgs; myPkgs ++ [ packaged-onboard ];
<johnramsden>
I'll gist
<Isorkin>
http://nixpaste.lbr.uno/J3lE2xkX?nix How to fix error - sudo nixos-rebuild test - cannot coerce a set to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/strings.nix:442:44 | nix-build ~/mypkgs -A php56-libressl - normal work
<johnramsden>
Oh! Got it.
edef has joined #nixos
<johnramsden>
Was writing environment.systemPackages twice
takle has quit [(Ping timeout: 260 seconds)]
derjohn_mob has quit [(Ping timeout: 255 seconds)]
<clever>
mudri: does ~/.config/nixpkgs/config.nix exist?
<mudri>
The file is definitely being read, because if I put something wrong in it, it fails sooner.
<mudri>
It's just that if I try to build liblastfm, it fails because it tries to use the old xml-html-conduit-lens.
MoreTea has joined #nixos
<clever>
mudri: ah, what if you use super.callPackage for lastfm?
<mudri>
clever: same problem.
<engblom>
clever: That fixed the booting problem. Still it complains about the swap.
<clever>
engblom: what is the error about swap?
<clever>
mudri: another option is to make the attrset recursive (add the rec { keyword), and then inherit the lense stuff in the args to callPackage
<engblom>
clever: Actually, when testing, it found the swap. It just took several seconds for it at that point of the boot process, so I thought i failed
carlosda1 has joined #nixos
ixxie has joined #nixos
<mudri>
Sounds worth doing. I'll give it a go...
<engblom>
Thanks for the help!
<johnramsden>
Nice! You got it booting!
<engblom>
Yes, I got!
<engblom>
Now I need again to go on a customer visit, so the project will have to rest again a bit.
<johnramsden>
That always feels good
carlosda1 has quit [(Ping timeout: 240 seconds)]
<mudri>
clever: with “self.callPackage ../repos/liblastfm { xml-html-conduit-lens = xml-html-conduit-lens; }”, I get unexpected argument. Do I have to pass in a whole modified haskellPackages, or something?
<clever>
mudri: can you paste the contents of ../repos/liblastfm/default.nix ?
<engblom>
The nice thing is that I got it fully ZFS, so I would be able to send do zfs send/recv for the whole system, including /boot
<clever>
engblom: but there is still a bootloader stub outside of the zfs volume, that makes it actually bootable
<clever>
engblom: and nixos would have restored /boot when fixing the stub anyways
derjohn_mob has joined #nixos
<engblom>
clever: It is easy enough to restor the grub part. I would just chroot into the system from a live-disk
<clever>
engblom: yeah, and if you run 'nixos-rebuild boot' it will restore both the stub, and /boot
ryanartecona has quit [(Ping timeout: 240 seconds)]
<clever>
mudri: yeah, that line1 is the problem, you want to bypass it, and callPackage package.nix directly
<engblom>
I would be interested to test nixos on aarch64 (rpi3). Is there any such port of nixos available?
<mudri>
Ah, right.
<clever>
engblom: there is some hydra stuff pre-building it, gchristensen has been working on it i think
<clever>
engblom: i have also booted not-os (a nix based distro i made) on my rpi3, but only an armv7l build, with pure network boot
<mudri>
clever: seems to have done the job. Thanks!
<engblom>
My rpi3 will mostly do gpio stuff, so nothing memory or disk heavy. Because of that 1Gb is plenty of RAM, so I would want to run ZFS on rpi. This would give nice way to send live snapshots of /home, rollback for /home all with a dynamic size as zfs allows datasets to grow and shrink
<clever>
engblom: i have also been thinking about zfs on a pi, and the 32bit problems have been on my mind
<clever>
aarch64 would bypass that
<engblom>
clever: I actually think zfs is the perfect fs for rpi, if you do not have "desktop usage". Especially as you can separate system from data and still allow both to grow when necessary.
<clever>
yeah
<clever>
engblom: though my general idea with not-os was more along the android model, where the system is 100% read-only, and the data partition may or may not even exist
<FRidh>
how you use the phases in nix-shell when you've overridden them?
<FRidh>
Then, an unrelated question. I get the following error: /tmp/nix-build-binder-2017-03-27.drv-0/clang/tools/extra/binder/context.cpp:254:119: error: exception handling disabled, use -fexceptions to enable
<LnL>
I created a pr a while back that added a runPhase function that would work as expected, but I think it's better to just make the functions behave as expected
<FRidh>
even though I have cmakeFlags = old.cmakeFlags ++ ["-DCMAKE_CXX_FLAGS=-fexceptions"]; where old.cmakeFlags contains already "-DCMAKE_CXX_FLAGS=-std=c++11"
<Turion>
Hi, I haven't installed nixos yet, but I'm thinking about it. I have a couple of questions: 1. How do different versions of the same package work in nixos? E.g. having python 2 and python 3 installed parallelly, or not using the same version as in the main repository. 2. How is Haskell integrated in nixos? Can I install Haskell packages system wide in a sane way using nix? (I.e. dependencies aren't broken, or packages rebuilt automaticall
<Turion>
y)
<puffnfresh>
Turion: nix-shell is a tool which helps with different versions of the same software
oahong has quit [(Ping timeout: 255 seconds)]
<Twey>
Wasn't nix-shell meant for debugging derivations? :þ
<puffnfresh>
e.g. nix-shell -p python2
<puffnfresh>
no, nix-shell is a useful tool outside of debugging
<Twey>
Turion: The Haskell ecosystem is quite mature
<puffnfresh>
I do lots of Haskell development on NixOS
oahong has joined #nixos
<Twey>
puffnfresh: I mean, I know it is now, but I find it amusing because it started off as a debugging aid, then people started using it for environments and everyone laughed because it was a cool hack, and now everybody does it :þ
<Turion>
So if the main repository has an outdated version of whatever package, it's easy for me to tweak my local configuration to get the newer version (given that it builds the same way etc.)
<puffnfresh>
Turion: yeah, that's pretty easy
<Turion>
Great :)
<puffnfresh>
usually
cfricke has quit [(Quit: WeeChat 1.7)]
<Turion>
Does nix call stack or cabal for Haskell packages?
<puffnfresh>
it uses Cabal, as a library
<Twey>
Turion: Actually Stack calls Nix :þ Or it can, anyway
<Turion>
Twey, ok, surprising..?
jacob has joined #nixos
<Turion>
And is it easy to contribute Haskell packages that are on Hackage?
<Twey>
Turion: My experience is that you often end up writing packages for things in NixOS, but the writing is usually very simple
jacob is now known as Guest43251
<Turion>
(I'm coming from a Gentoo background, there it's easy with a script that creates an ebuild from a .cabal file or something like that)
<puffnfresh>
Turion: they automatically get pulled in
<Twey>
Turion: Particularly for Hackage packages, you can just use cabal2nix to generate it automatically
<Turion>
Ah excellent
<puffnfresh>
Hackage packages get put into nixpkgs very regularly
<clever>
Turion: there is also cabal2nix
<puffnfresh>
and cabal2nix is for things which aren't in nixpkgs (yet)
<Twey>
Yeah
<Turion>
Do some people here code in Agda?
<Twey>
Turion: Yes
<Turion>
I find the (lack of a proper) package management annoying, does that get better with nix?
<Twey>
Turion: Not really
<Turion>
Or is it conceivable that one could write some nix expressions to make it easier?
ixxie has quit [(Ping timeout: 245 seconds)]
<Twey>
It is conceivable
<Twey>
We don't really have an Agda infrastructure at the moment, though we have packages for a few thingss
<Twey>
things**
<Turion>
Ok
<Twey>
But there's nothing stopping you from writing such a thing if you wanted to
ixxie has joined #nixos
<Turion>
The way I'm understanding it right now is that nix comes with a functional (sort-of) programming language, so it should be possible maybe to write a function that takes a github URL and lets you install the Agda package hiding behind it
<Turion>
But I don't know whether this is possible in nix
<Twey>
Turion: Totally possible
<Twey>
In fact I think we do that already
<Turion>
Awesome
<johnramsden>
Any clue why one would get error: infinite recursion encountered, at undefined position?
<FRidh>
LnL: clever: unfortunately NIX_CFLAGS="-fexceptions"; didn't help either
<Twey>
Oh, Tweag funded it! Go Tweag
<clever>
johnramsden: its usualy better to put things line line 15-69 into their own file, and then load it with callPackage
<Twey>
Fuuzetsu: 👍
<Turion>
Twey, ahh this is why one day when I installed cv3 with Haskell, it insisted on installing nix
<clever>
johnramsden: and also, you want to do the patchelf in postInstall, not fixupPhase, fixupPhase does some important stuff that your loosing
<clever>
johnramsden: hmmm, or just patchelf right in the unpackPhase
<Turion>
Sounds all great. I think I'm pretty sold on nixos now ;)
<Turion>
Twey, puffnfresh, clever, thanks for your help! Now I only need to find a free weekend to install nixos...
<Twey>
Ack, is that the time? I need to run
<johnramsden>
clever: Do you Have an example of loading a package with callPackage? When I tried doing that earlier I couldn't get it to work.
<Twey>
Turion: Glad I could help ☺ NixOS still requires some TLC, but is perfectly usable if you're technically capable, and has the nice property that when you get it into a working state it stays that way :þ
<clever>
it probably needs a -machine <foo> to be passed in
mekeor has joined #nixos
ThatDocsLady is now known as ThatDocsLady_afk
<clever>
and the boot process and hardware layout is far less standardized on arm, so the kernel is tightly coupled to how you make it boot, and what qemu has to emulate
<gchristensen>
ugh you're probably right
<gchristensen>
ugh ugh ugh this is going to be hard to make support multiple arm platforms, if we choose
<clever>
the bootloader like u-boot can help to even that out some
<clever>
as will device-tree
<clever>
from what ive read, you can make a kernel that has a range of drivers linked in, and pass it a DTB that describes what hardware is actualy present, and which drivers to point at what addresses
davidak has joined #nixos
<clever>
this kind of mess is also why i was looking into UML linux for the nixos test framework, it seemed simpler then fixing qemu
<clever>
gchristensen: i think EL3 is to do with the secure monitor, and EL2 is to allow a hypervisor inside the vm
k2s has quit [(Client Quit)]
<tjg1>
i have another question. is there a way to mark a swap device as not needed for boot and just letting systemd mount it?
<clever>
gchristensen: so we should be able to turn el3 and el2 off safely
<clever>
then kvm will work
<tjg1>
i know it's possible with regular filesystems. i have an issue where stage 1 keeps rescanning for lvm devices, because it can't find the swap zfs zvol
<gchristensen>
clever: erm, how?
<clever>
gchristensen: still looking thru the code to find that
<clever>
tjg1: i dont think stage-1 is responsible for enabling swap, can you screenshot the problem?
<tjg1>
clever: sure, lemme reboot
zarel has quit [(Ping timeout: 245 seconds)]
<CMCDragonkai>
tjg1: i tried to setup ZFS zvol swap, and when I tested if it actually worked by setting up a TMPFS and writing junk to it, it locked up the machine as soon as memory started to spill over
<CMCDragonkai>
tjg1: does zfsonlinux actually support zvol swap and solved this issue, it was on their github issues list
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
<clever>
gchristensen: this answer says how to enable secure mode, so lets just invert it, -machine secure=off -machine virtualization=off, this should remove EL3 and EL2 support
<avn>
CMCDragonkai: I still got lock-ups on memory starvation, especially if delete stuff which have ddt entries (files, written before I turn dedup off)
<clever>
tjg1: if resumeDevice (no s) is a non-empty string, wait for it to appear
<CMCDragonkai>
tjg1: I get similar messages like that as well! But not due to swap, but due to LUKS problems
<clever>
tjg1: if it is an empty string, wait for everything in resumeDevices (with an s)
<clever>
tjg1: the s variant is the result of running a map and filter over the swap devices
<CMCDragonkai>
avn: Doesn't it mean it doesn't work. I wouldn't want to run zvol swap if there's even a small chance it will lock up the machine, too risky
<clever>
tjg1: it must start with /dev, it must not have randomEncryption, and it must not be a zram
<clever>
CMCDragonkai: i went with zfs+swap on lvm, with the lvm on luks, just to avoid the zvol swap issue
<CMCDragonkai>
clever: ZFS+SWAP on LVM on LUKS, does that affect the performance much?
<clever>
CMCDragonkai: the machine is nearly a decade old, so its hard to tell
<clever>
i wouldnt expect lvm to add much overhead
<clever>
so i would expect the swap->lvm->luks to have the same performance as swap on randomized luks
<clever>
with the negative that the swap can be recovered if you have the passphrase
<CMCDragonkai>
is your swap also encrypted?
<clever>
CMCDragonkai: the swap is on lvm, and the PV for lvm is on luks
<clever>
so a single passphrase protects the entire lvm array (swap + zfs)
<tjg1>
zfs is not on lvm
<clever>
in my laptop, it is
aminechikhaoui has quit [(Ping timeout: 245 seconds)]
<clever>
i was expecting zvol swap issues, and used lvm to avoid them
<tjg1>
ah
<clever>
tjg1: setting randomEncryption on the swap device might solve the problem your having, but then it will be double-encrypted
<clever>
tjg1: if you dont mind reinstalling, it might be better to change the layout to be more like my laptop
<tjg1>
i could just move swap to the lvm ssd
<clever>
that also works
<clever>
tjg1: oh, i just had a thought
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to unstable-aarch64: https://git.io/v9fHW
<NixOS_GitHub>
nixpkgs/unstable-aarch64 c479fce Graham Christensen: pass in aarchh64 args
<CMCDragonkai>
tjg1: My SSDs are being used for L2ARC and ZIL
<CMCDragonkai>
no room for swap!
<clever>
tjg1: what if you make a /swap symlink to /dev/pool/swap
<clever>
tjg1: then the safety on line 209 of stage-1.nix will think your using a swap file
<clever>
tjg1: but once you boot, it follows the symlink and uses the zvol!
<avn>
clever: zfs not allow swapfile btw
<clever>
avn: hence the symlink to a zvol
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v9fHE
<NixOS_GitHub>
nixpkgs/master 4dda88c Tim Steinbach: linux: 4.9.23 -> 4.9.24
ixxie has joined #nixos
<avn>
btw, why stage1 of boot wait for my /dev/zvol/tank/swap? can it be deffered (I not need swap in first few mins after boot)
<clever>
avn: it thinks the hibernation image is on that swap, and wants to resume it before mounting too much
<tjg1>
we're talking about that exact issue
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v9fHX
<NixOS_GitHub>
nixpkgs/master 1b3282d Tim Steinbach: linux: 4.10.11 -> 4.10.12
<clever>
avn: if we symlink /swap to /dev/zvol/tank/swap, then the stage-1 scripts will think its a swap file, and ignore it, but stage-2 will follow the symlink and use the zvol
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 4 new commits to release-17.03: https://git.io/v9fH1
<NixOS_GitHub>
nixpkgs/release-17.03 ec70293 Tim Steinbach: linux: 4.10.10 -> 4.10.11...
<NixOS_GitHub>
nixpkgs/release-17.03 e6f3b39 Tim Steinbach: linux: 4.4.61 -> 4.4.62...
<NixOS_GitHub>
nixpkgs/release-17.03 186fad5 Tim Steinbach: linux: 4.9.23 -> 4.9.24...
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to unstable-aarch64: https://git.io/v9fHF
<NixOS_GitHub>
nixpkgs/unstable-aarch64 7439825 Graham Christensen: host -> virt
<NixOS_GitHub>
nixpkgs/unstable-aarch64 d4fc5ae Graham Christensen: whitespace
<tjg1>
Apr 21 13:01:58 pegasus swapon[1033]: swapon: cannot open /swap: No such file or directory
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v9fHb
<NixOS_GitHub>
nixpkgs/master 7fb1b54 Tim Steinbach: linux: 4.4.62 -> 4.4.63
<Guest87926>
How do I get openssl-dev into my environment? I want openssl.pc in my pkg-config environment, and I see it lives in /nix/store/sx5xwbkfdjrp32w8ispqxnz0fqvn7s2w-openssl-1.0.2k-dev/lib/pkgconfig/libssl.pc, amongst other hashes, but I don't know how to get that into my pkg-config environment
<tjg1>
seems that now systemd doesn't wait for zpool import
Guest87926 is now known as TweyII
<clever>
tjg1: ah, that could be an issue
<clever>
Guest43251: nix-shell -p openssl
TweyII is now known as Guest8704
<clever>
Guest8704: and your fighting nickserv some
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to release-17.03: https://git.io/v9fQT
<NixOS_GitHub>
nixpkgs/release-17.03 e38565e Tim Steinbach: openjdk: 8u121-13 -> 8u131-11...
<NixOS_GitHub>
nixpkgs/release-17.03 eb99e40 Tim Steinbach: scala: 2.12.1 -> 2.12.2...
LexLeoGryfon has joined #nixos
drasich has joined #nixos
Guest8704 has quit [(Changing host)]
Guest8704 has joined #nixos
Guest8704 is now known as TweyII
<TweyII>
clever: Yes, I noticed, sorry
<TweyII>
clever: No, that doesn't work
<LexLeoGryfon>
hey
<TweyII>
The openssl package doesn't seem to put openssl.pc anywhere pkg-config can find it
<LexLeoGryfon>
is anyone can suggest NixOS docker image that just works out of the box?
<TweyII>
Oh, you also pull in a new pkgconfig that's different from the outside pkgconfig?
<clever>
TweyII: you must also add pkgconfig to the packages
<clever>
TweyII: that will load this setup-hook, which scans $buildInputs, and adds it to the pkgconfig search path
<clever>
this is why i always tell people to never install build-time utils like gcc, ld, pkg-config, and so on
<TweyII>
I see
<clever>
nix just isnt meant to be used like that
<LexLeoGryfon>
Gentlemen?
<TweyII>
Is the standard way to save a custom environment for a project still to make a shell.nix with a dummy derivation in it and drop into that thing's build environment?
aminechikhaoui has joined #nixos
<clever>
TweyII: either a dummy shell.nix, or a full default.nix
kier has quit [(Remote host closed the connection)]
<avn>
TweyII: yep, and later it can be converted to expression, if you intend to package your stuff
<clever>
TweyII: you can always upgrade the dummy to a full expression at a later time
<TweyII>
Is there a tool that will autogenerate me a stub shell.nix?
<avn>
clever: btw, collection of that dummy shell.nix for variouus languages can be very useful as well
<clever>
with import <nixpkgs> {}; stdenv.mkDerivation { name = "foo"; buildInputs = [ pkgconfig openssl ]; src = ./.; }
<TweyII>
Yeah
<clever>
TweyII: that will do for most projects
<LexLeoGryfon>
is anyone can suggest NixOS docker image that just works out of the box?
<goibhniu>
LexLeoGryfon: I guess not (I haven't heard of any official ones) ... also, please don't forget the ladies :)
kier has joined #nixos
<clever>
TweyII: nix-shell will also bring gcc and binutils in, so no need to install those globally either
<LexLeoGryfon>
I've tried few from docker-hub, but one is just alpine linux without nix-rebuild andother NixOS feautures, and other image won't work
<LexLeoGryfon>
okay, second question - how I can supply USE flag (gentoo-like) to package during install? for example i want nix to build 'nano' from source with 'static' useflag and without 'ncurses' support. Which command will do that?
vandenoever has quit [(Ping timeout: 260 seconds)]
<clever>
LexLeoGryfon: static isnt an option, and ncurses doesnt appear to be optional
dmi3y has quit [(Quit: dmi3y)]
<FRidh>
if I'm correct unpackFile is a generic function that can be used regardless of the filetype or whether it is a folder / repo checkout. Unfortunately, it doesn't seem to support a destination argument. Is there one?
<clever>
FRidh: it will unpack to the current directory, and then cd into that directory
<FRidh>
normally the unpackPhase uses sourceRoot
<clever>
FRidh: and it will compare the dir listing before&after, to figure out what sourceRoot is
<FRidh>
clever: that's the unpackPhase, right? Not unpackFile
<clever>
but it still wants ncurses, and fails to build
<LexLeoGryfon>
thank you for mentioning packageOverrides, this is what I wanted.
acarrico has joined #nixos
carlosda1 has quit [(Ping timeout: 260 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<NixOS_GitHub>
[nixpkgs] matthiasbeyer opened pull request #25086: madonctl: init at 0.1.0 (master...add-madonctl) https://git.io/v9fAN
ixxie has quit [(Ping timeout: 260 seconds)]
derjohn_mob has joined #nixos
davidak has quit [(Quit: Leaving.)]
<viric>
qknight: what happened to the tour of nix?
<viric>
qknight: ah, in firefox it hangs "Downloading". In chrome it works better
<LexLeoGryfon>
well, I must admit that this channel is more helpful and alive than any channels associated with #suckless community and statically linked distros
<Infinisil_>
Why is the window manager started before desktop manager though?
<clever>
engblom: haskellPackages.xmobar
<clever>
Infinisil_: cant think of an answer to that
Infinisil_ has quit [(Quit: Leaving.)]
takle has quit [(Remote host closed the connection)]
<engblom>
clever: So how do I add that, and more importantly, where do I find such options myself?
<infinisil>
Because I think that's the reason my config with xfce and xmonad didn't work just like that. I needed to add an autostart item to xfce with `sleep 3; xmonad --replace`
<clever>
engblom: you should be able to add haskellPackages.xmobar to environment.systemPackages
<engblom>
clever: Thanks, and where are those things documented? For example, if I want to add xmonad-contrib
<clever>
engblom: every single package on hackage is available as an attribute under haskellPackages
<joepie91>
avn: jophish: thanks for the comments on polkit relying on JS, btw, it made me go "wtf? why?" and now I accidentally found a bunch of documentation on polkit that I'd been looking for a while ago :P
<joepie91>
(and yeah, JS /probably/ wasn't the right choice there, for the same reason JS wouldn't have been the right choice for Nix... not declarative)
<clever>
engblom: haskellPackages.xmonad-contrib
<engblom>
Thanks!
<jophish>
joepie91: no problem, happy to help!
<engblom>
Now I have the most critical stuff added to my test. I am done for today.
<infinisil>
Your test?
freusque has quit [(Quit: WeeChat 1.7)]
<engblom>
infinisil: I am testing nixos in a VM, to see if it is worth installing as main OS.
<infinisil>
I see
<engblom>
infinisil: And if I like it, all I will have to do is to copy over the configuation files when I install on real metal :)
<infinisil>
Question: I am a little confused with system config vs user config. The system config is my configuration.nix, but what's the user config? I'd like to manage it the same way, with packages, options, etc. but how?
<clever>
infinisil: it loads some custom packages, then defines a custom package called 'mystuff' that is the result of merging many packages
<clever>
infinisil: then i can just nix-env -iA nixos.mystuff, and it will atomicly update the profile to match the current config
leat has joined #nixos
dbmikus has joined #nixos
<infinisil>
I'll have a look once firefox decides to finally open the url
dbmikus has quit [(Client Quit)]
<engblom>
There is one thing I will need before I could permanently switch to nixos: a recent snapshot of openscad (https://github.com/openscad/openscad).
dbmikus has joined #nixos
<engblom>
But that will be a later challenge unless some friendly soul makes a package for me.
<goibhniu>
engblom: did you try bumping the version already?
cpennington has quit [(Ping timeout: 240 seconds)]
<infinisil>
@clever: Interesting, can you also use configuration options, so that you don't need to add all dem dotfiles manually?
<clever>
infinisil: depends on if the package allows it or not, some things like vim and emacs let you embed the user config into the package
<clever>
infinisil: https://pastebin.com/9M2jiHmp this gets loaded by configuration.nix, and embeds my vimrc into the vim package, while also providing some defaults for env variables (line 37-40)
<engblom>
goibhniu: No, as I am completely newbie to everything with nixos yet.
<engblom>
goibhniu: I just made my first install today
<engblom>
I could of course mail the maintainers of openscad and ask if they could make a snapshot package too and maintain it with like monthly updates until the next release is out
byteflame has joined #nixos
<infinisil>
clever: That's nice, thanks! In the end I plan to have it set up so I can just copy my configuration files which can set up the whole system for me, including every setting of every application (hopefully)
MercurialAlchemi has quit [(Ping timeout: 258 seconds)]
<clever>
infinisil: ive done similiar for some servers i'm setting up, and ive written testcases that can spin up a fresh vm purely from the config, and run tests against the software
<goibhniu>
engblom: an official release would be nice alright, but you may only need to change a few lines to install a version from github
aminechikhaoui has quit [(Ping timeout: 240 seconds)]
aminechikhaoui has joined #nixos
dridus has joined #nixos
<infinisil>
I got to be honest, I'm already sick of configuring all the broken software, nothing seems to ever work without something going wrong
<infinisil>
I could ask for help about so many things
<infinisil>
NixOS is really beautiful, but oftentimes (and I guess this applies to all distros) there's just something not working, some bug, some wrong config, parse errors, missing files, ugh
<infinisil>
Guess I'll just have to learn a lot and contribute more to fix stuff, eh
<goibhniu>
\o/
cpennington has joined #nixos
chakerbenhamed has joined #nixos
ryantrinkle has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<infinisil>
Has someone by any chance experience with radicale (CardDAV, CalDAV server) and/or nginx?
iyzsong has quit [(Ping timeout: 260 seconds)]
arjen-jonathan has joined #nixos
iyzsong has joined #nixos
<clever>
infinisil: ive found the nginx stuff in nixos to be great
<infinisil>
It's very well established indeed
<clever>
infinisil: let me throw together an example
<infinisil>
I do have nginx running already
<infinisil>
I'm having problems with nginx + radicale
<NixOS_GitHub>
[nixpkgs] peti closed pull request #24850: haskell-packages: factor package set construction into new file (master...haskell-make-package-set) https://git.io/vSDKK
freusque has joined #nixos
<disasm>
infinisil: netstat -an|grep 5234
<infinisil>
Hmmm, wait how does the proxy exactly work
<infinisil>
Does it forward from dav.infinisil.io any port to 127.0.0.1:5234?
<infinisil>
I'll try opening the port
<disasm>
infinisil: the proxy passes traffic back to another ip/port, in your example, 127.0.0.1:5234
<clever>
infinisil: when nginx gets a request on port 80 with the Host: header set to dav.infinisil.io, it will internaly relay the request to http://127.0.0.1:5234
<clever>
but it can only pass http traffic
<disasm>
which means you have to have something running on 127.0.0.1 on port 5234
<clever>
websocket and raw tcp are not allowed, but websocket can be added
<infinisil>
I see
<disasm>
infinisil: how are you launching the python daemon for radicale?
<infinisil>
I opened port 5234, now it shrieks: An error occurred during a connection to dav.infinisil.io:5234. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
<infinisil>
I'll try a caldav client now
<disasm>
lol, it's early, I missed that part of the gist :)
<clever>
infinisil: radicale is not doing ssl
<clever>
infinisil: so you need to remove an s from the https://
<infinisil>
But, like isn't the proxy supposed to hide all that?
<infinisil>
okay i have an idea, I until now I tried to use something like https://myserver.domain.com:3000/bob/birthdays.ics/ (from the docs) to connect to my server, but because I am proxying, I don't really need the port do iI
<NixOS_GitHub>
[nixpkgs] hrdinka pushed 1 new commit to release-17.03: https://git.io/v9JsW
<NixOS_GitHub>
nixpkgs/release-17.03 2af7c40 Chris Hodapp: mapnik: add optional PostgreSQL dependency...
newhoggy has quit [(Ping timeout: 260 seconds)]
<clever>
gchristensen: reading the arm docs more, it looks like trustzone is implemented in EL3, and going by the qemu source, that has its own address space that it lives in
<gchristensen>
clever: I got some good info from #qemu on oftc, I'll tell you later :)
<clever>
gchristensen: it almost sounds like the hardware has 2 different views of 'physical addressing', so you cant even bypass things with paging tables
nschoe has quit [(Quit: Program. Terminated.)]
<clever>
nor would you need to be aware of the partitioning when configuring paging
<clever>
'This additional address bit gives a physical address space for the Secure world and a completely separate physical address space for the Normal world.'
<clever>
gchristensen: ah, it sounds like the arm has an extra bit on the address bus, to signal secure/non-secure
freusque has quit [(Ping timeout: 260 seconds)]
<clever>
and qemu implements it as a seperate address space, more like a harvard architecture
ertes has quit [(Quit: Bye!)]
<clever>
neat, the cpu will basicaly lie about pages existing, so there is no way to tell the difference between unmaped ram, and "secure" ram
<clever>
i almost always dd to block devices, so ive never seen it do that before
<ben>
itd be cool if the remote end of a nixops deploy automatically rolled back after a while if the local end doesnt confirm that it can still ssh in
<clever>
ben: i have thought about how to configure watchdog stuff to handle events like that
<Dezgeg>
yeah, I get caught by that as well... it's conv=notrunc or something
<clever>
simpler to just do it in 2 passes, image->card, spl->card
newhoggy has quit [(Ping timeout: 240 seconds)]
<infinisil>
Question:Can I use a specific package from a different channel?
<clever>
infinisil: yes
<infinisil>
how?
aminechikhaoui has quit [(Ping timeout: 255 seconds)]
<infinisil>
while it builds, the buku binary crashes on start, I know it works on unstable though
<clever>
then you may want to use the entire unstable like my last gist
<infinisil>
But but but
<infinisil>
okay i'll try
<clever>
then it will use the unstable buku against the unstable version of its dependencies
newhoggy has joined #nixos
<clever>
and it should get buku right from the binary cache and not have to build it
<infinisil>
Makes sense
<clever>
though you will wind up with 2 copies of glibc and anything else it depends on
ryanartecona has joined #nixos
<clever>
something a lesser OS cant even do, lol
<jophish>
hahah
<clever>
guides for things like musl say you need a whole chroot or docker instance just to mess with it
<clever>
because there can only be one /lib/libc.so
<infinisil>
lol yeah, nixos is pretty great
<infinisil>
I just got it to work
newhoggy has quit [(Ping timeout: 258 seconds)]
<infinisil>
I also thought once more about the whole all config files in a nix expression, but I think it's too much effort in the end. Much easier to just store all files in a repo and use something like GNU stow
<joepie91>
is there a formal specification of Nix (the language) somewhere?
<joepie91>
format is not terribly relevant so long as it's accurate :)
ambro718 has joined #nixos
<clever>
jophish: ive got both docs and raw source!
<hodapp>
If I have a derivation in nixpkgs, and I want to turn this into a shell.nix which produces a proper dev environment, how would I go about this? I have a shell.nix which "works" but which has some odd problems, mainly that cmakeConfigurePhase cannot find the compiler
marsel has quit [(Ping timeout: 255 seconds)]
<clever>
hodapp: you should be able to just nix-shell ~/nixpkgs -A foo
<clever>
hodapp: and it will find the expression and just give a shell
* joepie91
has a look
newhoggy has quit [(Ping timeout: 260 seconds)]
<hodapp>
clever: and that works for something in nixpkgs that's grabbing a specific release, but I'm aiming for a shell.nix to put in a repo alongside the source
<spacefrogg>
joepie91: see parser.y 353-362
<hodapp>
and maybe I'm just invoking it wrong, but if I do it as "nix-shell -I nixpkgs=~/nixpkgs" it properly checks out all the dependencies, and then configurePhase fails
<NixOS_GitHub>
[nixpkgs] Lassulus opened pull request #25093: coyim: init at 0.3.7_1 (master...coyim) https://git.io/v9Jw2
<clever>
hodapp: this default.nix will return an attrset containing many derivations, and it will use callPackage to load each of them from other nearby files
<clever>
and you can just change the src in each of those nearby files to src = ./.; to make it always use the current source
<hodapp>
it's src = ./.; right now in the shell.nix I'm trying
<hodapp>
but then must I still call unpackPhase and things like that?
<clever>
unpackPhase is optional
<clever>
all that will do is copy the source from the nix store back to the current directory
ambro718 has quit [(Ping timeout: 258 seconds)]
<clever>
each time you nix-(shell|build), the src = ./.; will copy a snapshot of the source to /nix/store
<hodapp>
in my case it just says "unpacking source archive /nix/store/yi0k7yzk6hq4w3wyiiwlla4127zf6abq-darktable", "unpacker appears to have produced no directories", and exits the nix-shell
<clever>
but if your using nix-shell, you can just skip the unpackPhase and directly configure the source you have checked out
batdog has quit [(Remote host closed the connection)]
<clever>
just remember to make clean, or the next nix-build will reuse the old .o's and make a mess
<clever>
oh, and since its cmake, you also have the option to mkdir ../foo-build; cd ../foo-build; cmake ../foo/
<clever>
then the build dir isnt part of the source, so it cant mess up
<clever>
and rm -rf is far easyer then implenting a perfect make clean
newhoggy has joined #nixos
<Dezgeg>
IIRC there were other problems as well
lsix has quit [(Quit: Konversation terminated!)]
newhoggy has quit [(Ping timeout: 252 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
<infinisil>
I wish the Nix language had types and enums, would be very useful sometimes
newhoggy has joined #nixos
<MarcWeber>
niksnut's patch php outputs = ['dev', '..'] caused apcu to fail. Adding php.dev to NIX_CFLAGS_COMPILE doesn't make it work because it then fails because it doesn't find a relative #include "main/php_stdint.h"
<hodapp>
clever: hmmm. I guess I just don't have a good sense of how development is done in a case like this... would one typically just run things like 'cmake' manually, and leave packaged builds up to a more formal derivation in nixpkgs?
<clever>
hodapp: thats how i do things
<MarcWeber>
Is there a simple way to make gcc still find the header file?
<hodapp>
perhaps that's what I'm missing
batdog has joined #nixos
snikkers has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
<infinisil>
Who wants some pizza, I'm ordering
byteflame has quit [(Ping timeout: 260 seconds)]
<infinisil>
Well not it's too late
joepie91 has quit [(Excess Flood)]
ryanartecona has joined #nixos
<infinisil>
Question: Are you content with your current config? Or is there still something missing/wrong? How long has it been since you started your config?
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
acowley_work has joined #nixos
<hodapp>
o_O
<hodapp>
I should eat lunch...
<infinisil>
"Just that last little tweak" -- *2 hours later*
<clever>
more like 6 hours later, lol
newhoggy has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<infinisil>
Anybody wants to tell me about how content they are with their config?
<infinisil>
Because I feel like it's gonna take me a year to get mine to where I want it to
joepie91 has quit [(Excess Flood)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
cpennington has quit [(Ping timeout: 260 seconds)]
<ericnoan>
infinisil: What do you feel is missing?
<hodapp>
I mostly tweak mine when I need to add support for something (scanner, shitty WiFi, something that's supposed to help the shitty WiFi, something to fix the problems that happened when I tried to help the shitty WiFi, removing a bunch of crap pertaining to the shitty WiFi, trying another network manager because of the shitty WiFi)
<gchristensen>
niksnut: would it be feasible to have the nixos.org/nix website include summary information, like: links to each architecture and their expected sha, and the path to nix?
<infinisil>
Well.. terminal (want to use daemonized urxvt), firefox sync server, radicale calDAV/CardDAV server, firefox that's not super slow, a not glitchy irc client i like, a way to manage all my dotfiles, etc. I could go on
newhoggy has quit [(Ping timeout: 252 seconds)]
<hodapp>
why's this shell.nix give me "warning: dumping very large path (> 256 MiB); this may run out of memory"? Is it just that it has 40-50 buildInputs in a stdenv.mkDerivation?
<hodapp>
...wait, why do I even need a stdenv.mkDerivation when it's just dependencies?
<infinisil>
@hodapp: You seem to have pretty shitty WiFi
<hodapp>
infinisil: now I just have a broken window
<hodapp>
but that's totally unrelated of course
<hodapp>
but seriously, the WiFi was so shitty that I just repurposed an old OpenWrt router as a bridge, as in https://wiki.openwrt.org/doc/recipes/atheroswds, and that has worked miraculously better... in fact, most of my print server problems completely stopped
<ericnoan>
infinisil: many of those issues do not sound nix related :) why is firefox slow btw? also surely there are tons of packaged irc clients. you could also keep your dotfiles in a git repo, thats what I do
<hodapp>
oddly, the WiFi on my laptop (also with NixOS) is fine.
<clever>
hodapp: "warning: dumping very large path (> 256 MiB); this may run out of memory" is because the src = ./.; referenced over 256mb of files
<clever>
hodapp: its probably trying to snapshot the entire .git folder
<hodapp>
clever: it seems to me I can just ditch almost the entire stdenv.mkDerivation here since I'm not doing basically anything a normal derivation would
<hodapp>
or... do I still need something like this present?
<clever>
hodapp: you can also do src = lib.cleanSource ./.;
thc202 has quit [(Ping timeout: 255 seconds)]
<clever>
you still need to use stdenv.mkDerivation to get a compiler and make buildInputs function correctly
<hodapp>
oh... dang
<clever>
but you can omit src entirely
newhoggy has joined #nixos
<hodapp>
yes, that works
<clever>
unpackPhase is what gives the error about missing $src, and if you never run it, it wont fail
<clever>
though i tend to keep src=, so i can also test with nix-build
<ericnoan>
So, firefox multiprocess is released, but some of my plugins do not support it yet... *growls*
<hodapp>
hmmmm
<clever>
ericnoan: that reminds me, i need to get firefox 53 on my nixos, so i can update my extension
<hodapp>
it would be nice if shell.nix still worked with nix-build
<niksnut>
gchristensen: for what exactly? the nix binary tarballs?
<clever>
hodapp: you could make a default.nix that works with nix-build, then shell.nix would just be this: (import ./default.nix {}).overrideDerivation (old: { src = null; })
<clever>
hodapp: then shell.nix will override default, and null out the src
<ericnoan>
clever: yeah, finally we can step into the future of parallel processing
civodul has joined #nixos
<hodapp>
clever: what does the lib.cleanSource above do?
<gchristensen>
niksnut: yeah, this way I can provide fetching instructions that don't involve digging through the install script to find the information
<clever>
hodapp: it will ignore .git, .svn, .hg, and any .so or .o files when importing the source
<clever>
and symlinks called result
<gchristensen>
niksnut: it is a requirement for me that I don't run the default install script that comes with it, so my update instructions are complicated
<hodapp>
still gives "warning: dumping very large path (> 256 MiB); this may run out of memory" with that
davidak has joined #nixos
<clever>
hodapp: can you gist both files?
<hodapp>
both files?
<clever>
hodapp: shell.nix and default.nix
<niksnut>
gchristensen: that should be pretty easy, since the nixos-homepage build process already has the hashes (in nix-release.tt)
<gchristensen>
hmm nice, I'll start looking there
newhoggy has quit [(Ping timeout: 258 seconds)]
cpennington has joined #nixos
<gchristensen>
thank you
<clever>
gchristensen: aarch64 is also backwards compatible with v6 and v7, so it should also be possible to make some tarballs for armv6 and armv7
<gchristensen>
aarch64 _can be_ but does not have to be
<clever>
ah
<clever>
so it will depend on the cpu's in the build slave
<niksnut>
so you can already refer to nix_hash_i686_linux etc. in nix/download.tt
<gchristensen>
the cavium thunderx's can't execute or emulate 32bit
<clever>
gchristensen: an rpi3 would have build-extra-platforms = armv6l-linux armv7l-linux aarch64-linux, while your thunderx's would just lack build-extra-platforms entirely (defaulting to the arch nix was built for)
<gchristensen>
niksnut: from there I suspect the next part would be adding the path to nix in nix-release.nix? ie: /nix/store/j6q3pb75q1sbk0xsa5x6a629ph98ycdl-nix-1.11.8
<clever>
hodapp: renaming shell.nix to default.nix, and using a new shell.nix like this may help
<nixo_>
Hi,I'm having a problem. Yesterday I made a nixos-rebuild boot --upgrade. Today I rebooted and my user account does not login (black screen after login and then again on login manager). But another user account does. And the previous version of nixos does work. Anybody can help in debugging it?
<clever>
nixo_: anything interesting in the journal when you run journalctl?
aneeshusa has joined #nixos
CMCDragonkai has quit [(Ping timeout: 258 seconds)]
<hodapp>
ah, if I get rid of the build directory, hanging around because build.sh produces it, the message stops
<clever>
thats why i try to always put the build directory at ../build-foo/
<clever>
so ./. doesnt find it
<hodapp>
there might be a way for me to tell the repo's build.sh to do things that way, not sure
phreedom has joined #nixos
<hodapp>
huzzah! I can
carlosda1 has joined #nixos
<nixo_>
clever: I'll log out to try
nixo_ has quit [(Quit: Leaving)]
carlosda1 has quit [(Ping timeout: 260 seconds)]
<infinisil>
Do you think it's stupid to commit .ssh/known_hosts to a public repo?
<sphalerite>
But it does make that period between your private key being compromised and your having removed your pubkey from all access lists a lot scarier!
<elasticdog>
any examples on how to set options for the buildInputs would be appreciated
<infinisil>
Well I already did commit that publicly, may remove it later though, I can't see a problem with it (only shows github.com and my domain infinisil.io)
<clever>
infinisil: yeah, i see even less of an issue with domains that are easily found anyways
<clever>
infinisil: you can also put "secrets = import ./secrets.nix;" into the let block near the top, and then just have an attrset of more private things
<nixo_>
clever: oh, here we are: window manager i3 not found. That's weird
<clever>
nixo_: how are you enabling i3?, would you be able to switch to another wm for testing?
Itkovian has joined #nixos
drasich has quit [(Ping timeout: 260 seconds)]
ambro718 has joined #nixos
<elasticdog>
clever: is there a better means of structuring that project-specific default.nix to remove that problem...that was pieced together from examples in the manual and works aside from the windosSupport override
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
<clever>
elasticdog: you would need a different file if you wanted to use it as an overlay, depend on what your doing, and i also just noticed, you have stdenv in the buildInputs, but thats not required
<clever>
nixo_: cant see anything wrong with that, i would expect it to just work
<elasticdog>
clever: it doesn't have to be an overlay, I just want to be able to `cd ansible-project/` and then `nix-shell` to have it utilize this default.nix file
<clever>
elasticdog: it should just work with the value in the gist
dustmote has joined #nixos
<clever>
elasticdog: and if i download the default.nix in the gist, and run nix-shell on it, it does begin downloading things
<Isorkin>
Who can help with the config (php + libressl)?
<clever>
same
<gchristensen>
ah
<clever>
writeScriptBin will put it in bin/ so you can install the "package", while writeScript will just put the script bare in /nix/store, so its easyer to reference from other scripts
<infinisil>
Well the script is really simple, I'll go with just one script and use sudo on the command itself
<clever>
infinisil: but if you use sudo "echo foo > /sys", you need to allow echo without a password
<clever>
infinisil: and you might as well just allow a shell at that point
<clever>
IITaudio_: so the odd thing isnt the broken user, its the working user, why does he still work
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
<IITaudio_>
clever: I was able to login with the user by placing the bin/i3 path in the (newly created) .xsession; it seems that the login command sends a malformed none + i3 string, because the error message said something like "no session named 'i3''" with 1 ' more
<clever>
IITaudio_: either i dont know how to use gitlab, or there are 0 files in that
tokudan has joined #nixos
xugjka is now known as UgJkA
<IITaudio_>
clever: does it work now? I just discovered that there's an option for "public repository, private repository content"
<clever>
ah, now i can see files
<IITaudio_>
clever: ah, please don't judge me. My nix-skills are extremely bad
<clever>
IITaudio_: which username works and which doesnt?
<IITaudio_>
IITaudio does NOT work, nixo DOES
<clever>
oh neat, didnt know there was an option to enable adb
<clever>
it was added in oct of last year
<clever>
after i went nuts and read the entire nixos option list, lol
carlosda1 has joined #nixos
<IITaudio_>
clever: ahah, yes keeping track of the options available is quite a pain. And sometimes they exists on master but not on the release so I have to comment them out and hope to remember to enable it in the future
FRidh has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<clever>
IITaudio_: ah, found something that will likely ruin your performance
<clever>
IITaudio_: i think your loading 8 extra copies of <nixpkgs> here
reinzelmann has joined #nixos
<clever>
IITaudio_: what you want to do is put { rxvt_unicode, xfce, xdotool }: into i3tmp.nix, and then do pkgs.callPackage ./nixopts/configs/i3tmp.nix {}
<clever>
that will reuse the existing nixpkgs and make it build much faster
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v9UUC
<NixOS_GitHub>
nixpkgs/master d16a451 Frederik Rietdijk: wine: 2.0 -> 2.0.1
<NixOS_GitHub>
nixpkgs/master c6b3c66 Frederik Rietdijk: wineUnstable: 2.5 -> 2.6
<IITaudio_>
clever: cool to know, never asked myself if doing it the way it is was stupid
carlosda1 has quit [(Ping timeout: 240 seconds)]
acowley_work has quit [(Remote host closed the connection)]
ryanartecona has joined #nixos
<clever>
IITaudio_: another side effect of the way you did it, i3tmp.nix will obey /root/.nixpkgs/config.nix
<clever>
but everything else will obey nixpkgs.config within configuration.nix
<clever>
so overrides you apply may not work fully
<clever>
and overrides from aother user may take effect in weird places
newhoggy has quit [(Ping timeout: 260 seconds)]
<clever>
probably should just "grep -r import" the whole thing, i found another instance in notmuch
<IITaudio_>
clever: yeah I'll fix it now that I know the way to go
byteflame has quit [(Ping timeout: 252 seconds)]
<clever>
and theres a bit too much to just go over it all, so i'll give the bisect some more attention
<pbogdan>
Is there a contributor guide to nix / nixos ecosystem? I don't mean in the sense of "follow these guidelines when contributing" but more of a "here are some areas that need attention / are priority" or "if you can do x, y z here's how you could help"
<clever>
IITaudio_: https://pastebin.com/pD8Sa5xS i flagged the bad one as bad, then just went back 1000 commits, it worked, so i hit good
<clever>
IITaudio_: and now i'm just re-doing build-vm for each commit it picks
byteflame has joined #nixos
<IITaudio_>
using my config or yours?
<clever>
with one of my basic configs
k2s has joined #nixos
<freusque>
Good evening, I'm writing some slides to show NixOS to people in the alps, are there resources I could borrow?
<clever>
which does break on the demo user
<clever>
it wont say why nixo works, but it will probably say why the rest are broken
<IITaudio_>
clever: however, is there a way I can donate to you? It's not the first time you help me here
phreedom has quit [(Remote host closed the connection)]
<clever>
i have paypal and bitcoin if you want
<gchristensen>
IITaudio_: I can't speak to clever, but help us update / write documentation, or update / add packages would help everyone, even clever next time he's helping someone else :)
<IITaudio_>
gchristensen: every time I need a package i write it and add it to nixpkgs, I'm nico202 on github, I'm loving NixOS and suggesting it to everybody :)
newhoggy has joined #nixos
<gchristensen>
ah wonderful :)
<infinisil>
I am too inexperienced yet, I wouldn't know how to do it, but I'm continuously learning :D
<IITaudio_>
ghcristensen: but sometimes some money can help too, I hope :)
<gchristensen>
no doubt
<infinisil>
Who are you anyways clever? How come you know nixos so well?
<infinisil>
(sorry if i missed something)
<gchristensen>
~ nobody knows ~
<clever>
lol
<clever>
infinisil: i get a bit OCD about knowing how things work, so i just devoured all of the source in nixpkgs and nix
<cransom>
some say he knows two facts about ducks and both are wrong.
<IITaudio_>
gchristensen: about the documentation, I saw we are moving away from the wiki but I still have not understood *where* we are moving
<IITaudio_>
clever: paypal address?
<infinisil>
lol
<clever>
IITaudio_: cleverca22@gmail.com
<gchristensen>
lol cransom
<bennofs>
clever: I get that "want to know how it works" from time to time, but I cannot keep up with all the lang frameworks! :)
<clever>
infinisil: script2 is in the global path, and all it does is run script1 as root via sudo, so script1 has root and doesnt need anything special
<Yaniel>
and the overlay is only for getting a local toolchain
<bennofs>
What's the correct place to use for temporary home dirs during build? mktemp -d or just $NIX_BUILD_TOP/some-id?
<clever>
bennofs: id just make it in the current directory
<Zer000>
Yaniel, I'm aware of buildRustPackage or whatever it is but I thought that would use an older rustc
<clever>
bennofs: the current dir will usualy be a sub-dir of $NIX_BUILD_TOP, named similiarly to the package, and private to that instance of the build
<bennofs>
clever: isn't $NIX_BUILD_TOP already named after the package?
BlessJah has joined #nixos
<clever>
bennofs: yeah, and it will then unpack the tar inside $NIX_BUILD_TOP, creating a 2nd dir, named after the root dir of the tar
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<IITaudio_>
bennofs: using it from one years now, never had a problem. Well, had once, nothing serious
byteflame has quit [(Ping timeout: 255 seconds)]
<LnL>
obadz: not sure but if what Dezgeg mentioned is true, will cause nix to detect the bootstrap tools as a runtime dependency of bash.dev even if it's totally unnececary
<bennofs>
clever: I think the problem is stuff like device permissions not being quite right (you don't get a logind session iirc)
<clever>
LnL: i think part of the issue though, is that allowedRequisites has no way to allow foo.out but ban foo.dev
<bennofs>
btw, you can configure lightdm greeter-less + autologin, which makes it almost as lightweight as slim
<obadz>
LnL / Dezgeg ⇒ nix-store -qR `nix-instantiate '<nixpkgs>' -A bash.out` | grep bootstrap-tools is just as bad
<clever>
oh, interesting, slim + xterm is also broken
<clever>
its not just i3
<LnL>
obadz: that's normal, nix-store -qR of a drv will include the stdenv and all it's build dependencies
newhoggy has quit [(Ping timeout: 260 seconds)]
<Dezgeg>
yeah, it would have to be nix-BUILD -A bash.out to be bad
Sonarpulse has quit [(Ping timeout: 260 seconds)]
<obadz>
Dezgeg: but nix-build doesn't print out a closure…
ryantrinkle has quit [(Ping timeout: 268 seconds)]
<clever>
obadz: would need to nix-store -qR each output of bash i think
<obadz>
ah
<IITaudio_>
bennofs: so which dm are you using/which one do you suggest?
<LnL>
I think you could determine what comes from the stdenv with nix-store -q --tree
<obadz>
anyway, moving on…
<clever>
IITaudio_: i'm going all of the DM's a spin in build-vm, to see what else was broken
<obadz>
ah maybe
<obadz>
nix-shell -E 'with (import <nixpkgs> {}); let p = python2.withPackages (ps: with ps; [ wxPython ]); in p.env' --pure --run 'python2 -m wx.lib.wxcairo'
<obadz>
⇒ raise RuntimeError, "Unable to find the Cairo shared library"
<obadz>
I could dig further but, pinging here first in case anyone knows what to do about this?
newhoggy has joined #nixos
<obadz>
probably some LD_LIBRARY_PATH magic
<clever>
obadz: that tends to happen with a lot of python stuff, you cant patchelf the rpath of wxcairo.py
<obadz>
patchelf a text file?!
<clever>
obadz: so you need to patchelf or LD_LIBRARY_PATH wrap the python binary
<clever>
obadz: but the library cant control which python wrapper you use
thc202 has joined #nixos
<clever>
so you need to make your own wrapped python, that fixes every dynamic library the python code is using
<Dezgeg>
typically you patch the absolute path of the library to the python sources
<Dezgeg>
LD_LIBRARY_PATH is evil
<obadz>
Dezgeg: in the application wrapper, or in the library itself?
<bennofs>
Dezgeg: +1
<bennofs>
obadz: in the lib
<obadz>
so I try to patch the source to point it to cairo?
<bennofs>
obadz: correct
<obadz>
ok, on it :)
<IITaudio_>
clever: however, the build-vm option is one of the most cool thing ever
<obadz>
thx
<clever>
IITaudio_: yeah, ive even used build-vm on a gentoo machine before
<LnL>
guess it has been a while since I ran a gc...
<clever>
LnL: i turned auto-gc on and set it to keep 5gig free on some servers, and 20gig on my desktop
aneeshusa has quit [(Quit: WeeChat 1.7)]
<bennofs>
clever: hmm, we could monkey-patch ctypes util find_library in the python app wrapper to support rpath-like for python
<LnL>
I have enough free space, just want to check if nix-shell will redownload the bootstrap tools
<MichaelRaskin>
I dunno, I actually use ii and tail -f
<the-kenny>
if you get used to hash-based nick colors you'll never want to go back
<bennofs>
the-kenny: yeah but changing hashes might be confusing. this way, you've always got the same color for me :)
<clever>
bennofs: that reminds me, mirc had an option to manualy set a color on a user
<the-kenny>
bennofs: yeah, that's a problem to take into account. One could also give one or two colors (or grayscale?) to "infrequent chatters" and keep the normal hashing algorithm
<clever>
i havent touched that heap in years
<MichaelRaskin>
Even worse: I set up XMPP via mcabber to log to files that I can tail -f
ryanartecona has quit [(Quit: ryanartecona)]
<bennofs>
Hmm, so what would be some good questions to compare language framework support in nixpkgs by?
<schoppenhauer>
is there an automatic way to find libraries in some binary tarball and patchelf it?
<schoppenhauer>
or do I have to track down all libs manually?@s
carlosda1 has quit [(Ping timeout: 260 seconds)]
<gchristensen>
bennofs: "how painful is it for a developer who knows the language?"
<gchristensen>
bennofs: "how painful is it for a developer who does not know the language?"
<bennofs>
First one I've got is whether it vendors deps (like the rust support does) or has a deriv for each lib as well (like haskell or basically everything else)
<clever>
bennofs: does nixpkgs have EVERY single package from a central repo auto-packaged?
<MichaelRaskin>
schoppenhauer: aren't they *.so anyway?
<MichaelRaskin>
clever: that's actually a bad test
<IITaudio_>
guys I'm going to sleep, thanks everybody for your help :)
<schoppenhauer>
bennofs: ok, hm. is there at least a tool that makes it easier? because I mostly just slaughter through the binaries until they run and then try to build a package
<clever>
gchristensen: 2017-01-03 10:33:05< kmicu> gchristensen: ah, that chapter is not updated since 1.6 with ‘Nix now has proper integer arithmetic operators. For instance, you can write x + y instead of builtins.add x y, or x < y i
<clever>
nstead of builtins.lessThan x y. The comparison operators also work on strings.’.
<clever>
gchristensen: same reply the bot gave a month ago
<bennofs>
schoppenhauer: you could run ldd on all binaries with find, remove duplicates from that output and then just build one big RPATH to apply to all binaries with find again
newhoggy has quit [(Ping timeout: 240 seconds)]
<clever>
schoppenhauer: and if you let the fixupPhase run, it will trim extras that dont belong automatically
IITaudio_ has quit [(Quit: Leaving)]
<schoppenhauer>
clever: was that additional to bennofs?
<infinisil>
HmmI think there was users host, host2 and bryant
<infinisil>
Good night!
carlosda1 has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos opened pull request #25101: desktop-managers: Use a black BG as fallback (master...desktop-manager-background-fix) https://git.io/v9UzB
newhoggy has joined #nixos
batdog has joined #nixos
<obadz>
tip of the day: cd /path/to/git/nixpkgs && ln -s . a && ln -s . b
<obadz>
then the paths in git diff and git show are accessible :)
<MichaelRaskin>
Also, then you can probably give git a wrong command and get a patch with three levels of a/a/a/ in the beginning
newhoggy has quit [(Ping timeout: 255 seconds)]
bennofs has quit [(Ping timeout: 245 seconds)]
newhoggy has joined #nixos
faffolter has quit [(Ping timeout: 240 seconds)]
<hodapp>
ahhhh, the glory of having to exert basically zero effort to get my laptop to the same state as my desktop
<hodapp>
...except for the compilation time because I didn't bother to set up remote builds
aneeshusa has joined #nixos
<NixOS_GitHub>
[nixpkgs] obadz opened pull request #25102: python2Packages.pyspread: init at 1.1 (and fix wxPython to inject required dependencies) (master...python-pyspread) https://git.io/v9UgW
<obadz>
^ all done :)
<obadz>
hodapp: nix-copy-closure is what I used for this exact case
newhoggy has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
mudri has quit [(Quit: WeeChat 1.7)]
<hodapp>
that is a thing I could perhaps do
<obadz>
I just copy my system profile & user profile to my laptop via local network then run rebuild boot / nix-env and it's very zippy since nearly everything is there
newhoggy has quit [(Ping timeout: 255 seconds)]
markus1219 has quit [(Ping timeout: 258 seconds)]
<hodapp>
is there an easy way of transferring, say, everything pertaining to a particular shell.nix file?
markus1209 has quit [(Ping timeout: 268 seconds)]
dridus has quit [(Quit: znc? wassat?)]
<hodapp>
oh, I see their first example
<obadz>
yeah probably but you have to figure out the derivation output that your shell env corresponds to
<hodapp>
how does one do that?
<hodapp>
hm... actually this is just a Python environment, I should just be able to drop into the shell and see where 'python' goes
<hodapp>
actually, scratch --sign, I tried that after the first failed
newhoggy has quit [(Ping timeout: 260 seconds)]
<sdll>
Team, could you please tell me how I can translate security.setuidPrograms here (https://nixos.org/wiki/Slock) to the valid security.wrappers line in configuration.nix?
<obadz>
yeah so I added myself as a trusted user on both hosts
<obadz>
so I can copy unsigned closures
<obadz>
hodapp: nix.trustedUSers = [ "hodapp…" ]; in your global system conf
<obadz>
then rebuild/switch
<hodapp>
at the host I'm transferring to?
<obadz>
yes
<hodapp>
just "hodapp"?
<obadz>
whatever your username is
dbmikus has quit [(Ping timeout: 240 seconds)]
<sdll>
obadz: Could you please tell me the way to translate security.setuidPrograms = [ "slock" ]; to the proper security.wrappers line?
<obadz>
hmm am not sure, let me have a look
<hodapp>
obadz: thanks, that worked
newhoggy has joined #nixos
<sdll>
obadz: The warning given if setuidPrograms is used is as follows: " The option definition `security.setuidPrograms' in `/etc/nixos/configuration.nix' no longer has any effect; please remove it. Use security.wrappers instead"