gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
chessai has joined #nixos
alexteves has joined #nixos
alexteves_ has quit [Ping timeout: 240 seconds]
abathur has joined #nixos
mkoenig has quit [Remote host closed the connection]
BlessJah has quit [Ping timeout: 245 seconds]
ryanartecona has joined #nixos
mkoenig has joined #nixos
jensens has quit [Ping timeout: 252 seconds]
<Mic92> mguex: did you ever wrote down the ancient tale of nix?
pxc1 has quit [Ping timeout: 256 seconds]
<dtz> the legend of nix
<dtz> (sym)link to the /nix/store
chrios_ has joined #nixos
<dtz> lol
chrios has quit [Ping timeout: 248 seconds]
<Mic92> dtz: there is more behind it https://en.wikipedia.org/wiki/Nyx
<mguex> Mic92: several times but I guess this tale must be told orally until the story is completed
noam_ has quit [Ping timeout: 276 seconds]
<Mic92> mguex: then we must record audio instead.
<mguex> Mic92: good stories are told from within a moment...so they can be told even on IRC - but only if the moment is right
mekeor has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA1MS
<NixOS_GitHub> nixpkgs/master 890c0db georgewhewell: rtlwifi: 2017-07-18 -> 2018-02-17
<NixOS_GitHub> nixpkgs/master b62a26e Jörg Thalheim: Merge pull request #36128 from georgewhewell/rtlwifi...
noam has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c opened pull request #36149: [WIP] Libreoffice 6 (works, but I don't like one test I disabled) (master...libreoffice-6) https://git.io/vA1Dv
NixOS_GitHub has left #nixos [#nixos]
noam has quit [Read error: Connection reset by peer]
noam_ has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<mguex> but since you brought up the topic...novices and veterans, wise men and fools, sorceres and mages of #nixos...gather round for I shall tell you a story...the story of Nix
TonyTheLion has quit [Ping timeout: 260 seconds]
kelleyNif has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 1ad37a8 Shea Levy: texlive.bin: Fix duplicate patch definition
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to staging: https://git.io/vA1DG
NixOS_GitHub has left #nixos [#nixos]
BlessJah has joined #nixos
x1n4u has quit [Ping timeout: 245 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to glibc-2.27: https://git.io/vA1D8
<NixOS_GitHub> nixpkgs/glibc-2.27 47bf559 Shea Levy: Merge branch 'staging' into glibc-2.27
NixOS_GitHub has left #nixos [#nixos]
<duncan^> Still waiting for the story btw
x1n4u has joined #nixos
<mguex> In the beginning there was Chaos. The world of building, testing and packaging software bleak and strange as the old mages did everything with their bare hands. And everyone had a different idea on what was right.
Guest97367 has quit []
Guest97367 has joined #nixos
Guest97367 is now known as nkaretnikov
nkaretnikov has quit [Client Quit]
nkaretnikov has joined #nixos
mkoenig has quit [Remote host closed the connection]
<mguex> A few souls woke up from their sleep and looked around and discovered that everything was dark.
erasmas has quit [Quit: leaving]
mkoenig has joined #nixos
<gillmanash> tell me more, tell me more
<duncan^> What if we disagree with the premise of the story
kelleyNif has quit [Quit: Leaving.]
<dtz> trying to find out if nixUnstable's upgrade-nix is reasonable upgrade path from nix 1.11
<dtz> (invoked from nix-shell)
<dtz> fired up a docker container, tried it.... https://gist.github.com/dtzWill/16ff4a131c536cca18d98a2c9cfbf769
<dtz> lol
<Mic92> duncan^: some will also disagree with the ending
<dtz> d'oh
<dtz> silly nix assuming tools on PATH
<duncan^> does it end with full Unix v7 and IEEE Std 1003.1-2008 compliance?
<mguex> First they were scared but since they all were brave, they shook off their worries and set out to find the sparkling truth. The truth on how to overcome state, know thy dependencies and finally reach pureness.
<dtz> oh, lmao, upgrade-nix doesn't upgrade to 2.0 just yet anyway xD
ryanartecona has quit [Quit: ryanartecona]
genesis has joined #nixos
* dtz points at nix-2.0 branch instead
sonarpulse has quit [Ping timeout: 248 seconds]
<dtz> oh no you can't, haha
<mguex> Each off them ignited a torch and slowly illuminated the darkness by sharing the result of tedious work and experiments with the other members of the Fellowship.
<dtz> I DID MY BEST
<sorear> BlessJah: hi, I was called?
* dtz settles with "nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -iA nixUnstable" lol
<dtz> i thought upgrade-nix did more, hopefully it doesn't need to anyway :)
michalrus has joined #nixos
<michalrus> How can I fix this Travis error? “error: store path mismatch in file downloaded from” https://travis-ci.org/michalrus/kornel/jobs/347547984#L469
<mguex> Alas, it's getting late! But next time I will tell you about out strong hero Hercules and his quest to overcome the most brutish beast of all...the horrific Hydra!
<michalrus> What does it mean? Is it related to Nix 2.0 and this build machine’s cache?
<michalrus> How to clean travis cache? :o
<michalrus> So many questions.
<clever> michalrus: i have some thoughts, checking...
<michalrus> <3 <3
randallb has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
<clever> michalrus: yeah, i think i see the problem
<Mic92> mguex: but it looks like borg and not herkules is overcoming hydra:
<clever> michalrus: line 27 wants the sha256 of the unpacked tarball
<clever> michalrus: line 35 wants the sha256 of the packed&compressed tarball
<Mic92> *hercules
<clever> michalrus: this expression is broken, and a given hash will only work on 1.11, or 2.0, and not both
<michalrus> clever: ohhh. I just copied it from the wiki.
<michalrus> Thank you for pinpointing it!
<clever> michalrus: yeah, the wiki is wrong, it wasnt tested enough on 2.0
<clever> michalrus: and the test on line 21 was also broken
<michalrus> :’
<clever> michalrus: 1.12pre is "older" then 1.12, so it never actually used the new logic on the new version
<dtz> aww 'nix run' errors in docker re:private mount namespace
<michalrus> Is there any current version of this expression around?
pxc1 has joined #nixos
<Mic92> dtz: how that?
<dtz> I suppose I could bind-mount a docker volume over /nix/store lol but QQ
<clever> michalrus: pass it 2 hashes, one from `nix-prefetch-url` and the other from `nix-prefetch-url --unpack`
<dtz> trying to use "nix run" with a diverted store, it does some magic that doesn't seem to work OOB in docker
<dtz> seem to rem docker having a flag for this or something
<dtz> shrug
<Mic92> dtz: depending on your storage driver, hardlinks will not work the way you expect.
<michalrus> clever: ookay. =) But reflex kept the test on L13?
<clever> michalrus: the test is only broken for 1.12pre, it works fine for 2.0
<michalrus> It doesn’t matter now,I guess.
<michalrus> Yes.
<clever> that fault causes it to use the 1.11 method on 1.12pre
<clever> which is why the 2nd fault never came out
<michalrus> Yes, yes, clear.
<michalrus> clever: so maybe, hmm, if this is the recommended approach now, maybe you could update wiki, if you get a chance?
<michalrus> Or is it publicly editable?
<michalrus> Hmm.
alexteves has quit [Ping timeout: 265 seconds]
<clever> the last wiki was shutdown due to spam
<bsima> has anyone used beamer and latex on nixos? I've got latex installed, but missing beamer
<clever> not sure about the state of the current one
<michalrus> Maybe this expression should be in the official docs, as it’s pretty useful.
<michalrus> Mhmmm.
pxc1 has quit [Ping timeout: 252 seconds]
sanscoeur has quit [Remote host closed the connection]
<MichaelRaskin> Wait, encoding difference on ASCII filename would break everything
<gchristensen> MichaelRaskin: that .sql2 file looks almost likee ruby
<MichaelRaskin> Oh well, I did chat to a Ruby-loving colleague while polishing the Bash-with-SQL hybrid syntax
<dtz> bsima: you'll need to use the "combine" thing to pull in.... collection-latexrecommended
shabius has quit [Remote host closed the connection]
<samueldr> having trouble finding something is there a way to control the output of curl from a nix download?
<dtz> and yes I use beamer on NixOS all the time :)
chrios_ has quit [Ping timeout: 240 seconds]
<samueldr> (e.g. from environment)
shabius has joined #nixos
aarvar has quit [Ping timeout: 252 seconds]
chrios_ has joined #nixos
<MichaelRaskin> Mic92: i wonder if it is a problem with recognising the HTML intermediate page when GitHub needs to repack a GC-ed archive
<MichaelRaskin> Although it is too reproducible…
<Mic92> yes it is
<MichaelRaskin> Maybe case sensitivity?
<MichaelRaskin> Although a case-insensitive mac builder would have already broken something…
<Mic92> it is the exact same hash
<Mic92> (after a second trial)
<MichaelRaskin> So what? If there are two specific files that conflict, they will always conflict the same way
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth closed pull request #36147: perl-packages.nix updated to actual CPAN versions [staging] (staging...perl-packages-update-3) https://git.io/vA1rS
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> Mic92: I contacted github support about the weird PR
jackdk has joined #nixos
<Mic92> gchristensen: good
<gchristensen> their support people are usually just a hair above worthless, I wonder what we'll hear back :)
<samueldr> s/what/if
<Mic92> gchristensen: probably they are flooded with requests.
<gchristensen> indeed
shapr has joined #nixos
<gchristensen> it is a tier-1 support person usually. It can be really hard to get beyond tier 1... even when I can demonstrably say that my `git clone` of one repo instead sent me Lyft's TLS private key repo.
<MP2E> support person: "where's that on the flowchart?"
<MP2E> :P
<gchristensen> :P
<Mic92> gchristensen: you have to mention `Shibboleet`
<gchristensen> haha, that is right
<clever> gchristensen: something ive been wanting to find is a good tier1 support bot, you just give it a tree of questions&answers, with some invisible questions based on past state, and then it can be programmed to solve basic problems
<clever> gchristensen: and also to record the answers for a ticket that can be passed up to tier2
<clever> so they dont have to ask the same stuff
<gchristensen> hmm yeah
ebzzry_ has quit [Ping timeout: 256 seconds]
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<bsima> where do I put this texlive.combine? https://nixos.org/nixpkgs/manual/#sec-language-texlive
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA1HB
<NixOS_GitHub> nixpkgs/master c1a9584 rnhmjoj: sc-controller: 0.4.0.2 -> 0.4.1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master c360fbc Jörg Thalheim: Merge pull request #36148 from rnhmjoj/scc...
<Mic92> bsima: in your package list, i.e environment.systemPackages. Here is an example for home-manager instead: https://github.com/Mic92/dotfiles/blob/master/nixpkgs-config/home.nix#L59
<Mic92> hope this does not create more confusion
<bsima> mic92: I haven't learned home-manager yet, I'm hoping to get a nix-shell going with beamer
<bsima> thanks for the search, gotta run to dinner now though, will hack on this later :)
shabius has quit [Remote host closed the connection]
coot has quit [Ping timeout: 256 seconds]
<abathur> clever: as long as there's a random chance tier2 is also a bot
dbmikus has quit [Quit: WeeChat 2.0.1]
ottidmes has quit [Quit: WeeChat 1.9.1]
<clever> abathur: it also needs to be programed to detect users giving false answers to questions
<clever> abathur: when i was helping to fix that reflex-platform fetchnixpkgs issue, there was 2 fetchNixpkgs.nix files
<clever> abathur: and we where editing the wrong one, because the --show-trace was clipped to omit the key detail
<clever> which resulted in an unexpected hash in the url from the errors, and all the hashes we gave failing
<abathur> clever: and to give a QA feedback quiz afterwards
<abathur> ha
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/fd1d76bb1a8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
coconnor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 5 new commits to master: https://git.io/vA1Q7
<NixOS_GitHub> nixpkgs/master 2f1c45c Jan Tojnar: gnome3.libgit2-glib: complete meta attribute
<NixOS_GitHub> nixpkgs/master ed7607f Jan Tojnar: gnome3.gspell: complete meta attribute
<NixOS_GitHub> nixpkgs/master 3726a26 Jan Tojnar: simple-scan: add meta.maintainers
NixOS_GitHub has left #nixos [#nixos]
ottidmes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vA17U
<NixOS_GitHub> nixpkgs/master d984f3e Jan Tojnar: gnome3.gspell: fix eval
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> Is it possible to add an import to a nixos config when nix-build'ing something of it? I would love to be able to add a custom build attribute (like config.system.build.initialRamdisk) for arbitrary configs
pxc1 has joined #nixos
<clever> ottidmes: several options
ryanartecona has joined #nixos
<clever> 1: nix-build '<nixpkgs/nixos>' --arg configuration '{ imports = [ ./configuration.nix ]; system.build.initialRamdisk = foo; }'
<clever> ottidmes: hmmm, what exactly are you trying to do?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vA17s
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master b0a57be Jan Tojnar: gnome3.libgda: fix eval
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes> clever: I want to make it easier for myself to build initrd's for unlocking sedutil encrypted drives
<clever> ottidmes: ahh
<clever> ottidmes: one min
<ottidmes> clever: Right now I have a script called mklinuxpba (make a Linux Pre-Boot Authorization image), which takes the initrd, kernel, and kernel params from Grub, but this means I have to boot into the live system every time I want to make an image for it
pxc1 has quit [Ping timeout: 260 seconds]
sanscoeur has joined #nixos
phdoerfler has quit [Quit: Leaving.]
Yaniel has quit [Excess Flood]
<ottidmes> clever: Instead I would like to make the script such that I can just point it to a nixos config and it uses it to determine the initrd, kernel, and kernel params to use in the PBA image, that way I can even create them on another machine
<clever> ottidmes: yeah, writing that now
scribbler has joined #nixos
<ottidmes> clever: If I have that, I can test my PBA image that hopefully allows me to kexec into Windows 10! (I am in the process of moving to a NixOS/Win10 hybrid environment)
sanscoeur has quit [Ping timeout: 248 seconds]
<ottidmes> NixOS inside Hyper-V, Ubuntu with Nix via WSL and Windows 10 as host OS that contains a X server to show the GUIs present in NixOS and Ubuntu
sitwon has joined #nixos
<clever> ottidmes: how does this look?
<sitwon> I'm using nix on Ubuntu 17.10, I installed the 'pycharm-community' package which installed 'python2.7' as a dependency. How can I tell 'nix' not to put python in my path (I want to use Ubuntu's python package by default)?
thc202 has quit [Ping timeout: 245 seconds]
mbrgm has quit [Ping timeout: 252 seconds]
<ottidmes> clever: Thanks! I am not quite sure where to put it though, I cannot run nix-build pre-boot-image.nix, right?
<clever> ottidmes: nix-build pre-boot-image.nix -A build
<clever> ottidmes: that will generate a directory containing a kernel, initrd, and the kernel params
<clever> ottidmes: fill in the right fields of configuration on line 2, and it should modify the initrd
<clever> you can even set things like boot.kernelPackages to change out the kernel&modules
mbrgm has joined #nixos
CrazedProgrammer has quit [Read error: Connection reset by peer]
<ottidmes> clever: Right, of course, that is same CLI as: nix-build '<nixpkgs/nixos>' --no-out-link -A config.system.build.initialRamdisk
<clever> ottidmes: but this also gets the kernel params (a string) and the kernel itself, and bundles it all up
<clever> ottidmes: is sedutil in nixpkgs?
<ottidmes> clever: I really have to use nix-build more often, all I basically do with it build a local package and build ISOs with it :P
<ottidmes> clever: No, it is not, but I have packaged it, I really should create a pull request for it
<adelbertc> can anyone confirm if the `sha256` parameter of `dockerTools.pullImage` is the SHA256 of the `manifest.json` file of the image being pulled?
<clever> ottidmes: if you gist your expression, i can make an example of how to add it to the initrd example i made
<adelbertc> i am currently pulling the image successfully but then the build fails with hash mismatch
cinimod has joined #nixos
disasm has quit [Quit: WeeChat 1.9.1]
disasm has joined #nixos
<ottidmes> clever: No need, I can take it from here, just needed to make the link between nix-build any-attrset.nix -A any-attr
<clever> ottidmes: ah
<clever> ottidmes: also, -A is way more fun then you think
<clever> ottidmes: -A foo.bar.baz
<clever> foo, bar, and baz, can be functions
<clever> and all the arguments you set with --arg, are passed to each
<ottidmes> clever: And that I could then just eval the nixos config from there, which is basically what nixpkgs/nixos/default.nix does
<clever> any-attrset.nix can also be a function
<ottidmes> clever: Oeh, nice!
Yaniel has joined #nixos
<ottidmes> clever: This allows me to introduce "Nix scripts" to my nixos configurations :)
cinimod has quit [Ping timeout: 256 seconds]
<clever> ottidmes: oh, let me grab a related example
<clever> ottidmes: line 3-13 basically does the same thing as import <nixpkgs/nixos>, no idea why i made it more complex then, lol
<clever> ottidmes: that pulls in the netboot-minimal.nix module, and the custom module on line 9-13
<clever> ottidmes: and then line 22/23, grab the kernel and initrd (and the initrd contains the entire rootfs), and sticks them into /boot/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master f929f38 Jan Tojnar: maintainers/scripts/update.nix: deduplicate packages...
<NixOS_GitHub> [nixpkgs] jtojnar pushed 8 new commits to master: https://git.io/vA1de
<NixOS_GitHub> nixpkgs/master cc1d6fc Jan Tojnar: gnome3: add updateScript
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 4145f5e Jan Tojnar: gnome3.folks: use updateScript
<clever> and 16-19 configurs grub to present that in the menu
<clever> so now i have a 2nd copy of nixos, in the /boot partition
<clever> with its own nixos config
<ottidmes> clever: Nice trick :)
xcmw has joined #nixos
mk-fg has quit [Ping timeout: 256 seconds]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<clever> and then ive taken it to more extreme levels
<clever> ottidmes: this configures a laptop to act as a router, complete with nat, dhcp, bind, tftp, httpd, and full network booting
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #33086: gnome3: switch to updateScript (master...gnome-updatescript) https://git.io/vb5iR
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> clever: Yeah, you can truly go nuts with this, so many possibilities :)
<clever> ottidmes: that netboot image also includes justdoit, a bash script that fully automates a nixos install
Supersonic has quit [Disconnected by services]
<ottidmes> clever: Yeah, I have looked at that one, plan to use it as some point, I did make my own nixos-install variant that allows me to install without needing to bootstrap my config
<clever> my version includes zfs, and optional luks support
<clever> though the nvme support is poor right now
ryanartecona has quit [Quit: ryanartecona]
<clever> scsi drives do ${drive}${part}, so, sda1
Supersonic112 has joined #nixos
<clever> but nvme drives do ${drive}p${part}, nvme0n1p1
<clever> and the root is nvme0n1
Supersonic112 is now known as Supersonic
<ottidmes> clever: As in, I use NIX_PATH a lot, but nixos-install just overwrites it, making my installs fail, if I do not first build some simpler config, but with my custom script this simply works
<clever> ah, that issue
<clever> id recomend using fetchurl, rather the NIX_PATH
<clever> nixops is also another solution, create an initial bare-bones install that only has sshd, then nixops takes over and does everything
<ottidmes> fetchurl for custom paths? I have nixcfg on my NIX_PATH for example, such that I can do: <nixcfg/shared/modules/foo.nix>
<clever> ottidmes: i prefer doing ./nixcfg/shared/modules/foo.nix
<clever> ottidmes: then it just has to be in the same directory, and nixos-install wont break it
nckx has quit [Quit: Updating my GuixSD server — gnu.org/s/guix]
<ottidmes> clever: I have my network of machines configured in such a way that my nixops config is like 15 lines of Nix
sitwon has quit [Quit: leaving]
<ottidmes> clever: But that is the problem I do not have everything at some root folder, I have multiple roots, so I use NIX_PATH to set my root path
<clever> yeah, i have stuff spread across nix-misc, nix-tests, nixcfg, and nixos-configs, lol
<clever> i'm trying to move it all into nixos-configs
d4g_ has joined #nixos
chessai has quit [Ping timeout: 245 seconds]
<ottidmes> clever: I have everything in one project, but separated over multiple git repos, so on my desktop I have everything, but on my server, it will only have some components, only those relevant to it, but the structure will be the same nixcfg/<component_or_profile>/<consistent_structure>
CrazedProgrammer has joined #nixos
<clever> ottidmes: ah
nckx has joined #nixos
ryantm_ has joined #nixos
d4g has quit [Ping timeout: 252 seconds]
<ottidmes> clever: And then I have my config setup so that it scans nixcfg/<profile> to check if the profile represents an host or a class of hosts, if it is a host, it will be added to the list of hosts automatically, which my nixops config then uses to automatically determine its network
chessai has joined #nixos
<clever> ottidmes: oh, do you know any haskell?
<ottidmes> clever: Plenty of experience with Haskell
<clever> ottidmes: this generates an initrd, with a haskell binary for init
<ottidmes> clever: Cool!
<ottidmes> clever: That is one of the next steps I wanted to take, create my own initrd script with a self created init, I mean, those PBA of mine just misuse NixOS their initrd's
<clever> ottidmes: i also have a simpler one, that is more nixos-like, but can still be customized and stripped down more
<ottidmes> clever: Even though they have nothing to do with NixOS other than how they are build
<ottidmes> clever: My preference definitely goes to the Haskell one, I mean, writing your nano Linux distro in Haskell, how awesome is that :P
<clever> :D
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
<clever> ottidmes: the real fun part, is ripping sedutil and partprobe to shreds, and FFI'ing them into the same binary
<ottidmes> clever: But why? Why would you want to do that?
<dtz> lol
<clever> ottidmes: so you can get away with having a single staticly linked ELF file in the initrd, and you dont even fork out a single child
pxc1 has joined #nixos
<ottidmes> clever: Someone asked the question whether it was possible to run ./iso.nix and have that build the iso, I was thinking shouldn't something like #!/usr/bin/env nix-build and then #! nix-build '<nixpkgs/nixos>' --no-out-link -A config.system.build.initialRamdisk --arg configuration, work, but does not seem to :(
<clever> ottidmes: --arg needs 2 params i think
markus1199 has joined #nixos
<clever> ottidmes: ive not used the #! mechanics much either
pxc1 has quit [Ping timeout: 252 seconds]
markus1189 has quit [Ping timeout: 256 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dtz> sedutil? "command-not-found sedutil" shows nothing, but for partprobe shows busybox and parted
<ottidmes> dtz: I have it only packaged locally, have yet to make a pull request for it
<ottidmes> dtz: If you are interested I can paste it somewhere quick
<clever> dtz: its involved in unlocking a hdd with built-in crypto
<dtz> not on my behalf, only heard of it just now! :)
<dtz> oh okay
<clever> dtz: prior to unlocking, you see a different set of blocks
<ottidmes> dtz: I use it on all my newer SSDs, it leverages the native encryption that is already there, basically all modern SSD are encrypted by default, but the key is provided by default, with sedutil you can set your own, so that you have to provide the key to make the data usable
<clever> ottidmes: do NVME drives support it?
<clever> ottidmes: i know somebody that has a similar setup, where his bios unlocks the drive, and thought it would need proper firmware support
<ottidmes> clever: I have to go to sleep now, but I see how I in theory could make the #! work to allow you to build your iso config by running ./iso.nix, by using a function with nix-build and letting the function eval the string that contains the config
<ottidmes> clever: The support for it is more recent, but I understood that they too are now supported, but is it less mature
<ottidmes> clever: "NVMe Support: V1.15 should resolve this in both sedutil-cli and the PBA." https://github.com/Drive-Trust-Alliance/sedutil/issues/120
<clever> ottidmes: nice, so that could entirely solve the luks on my laptop
<ottidmes> clever: Yeah, I now use it where I used to have LUKS, and the nice thing is, no performance penalty, but you do lose things like hibernate (poweroff == encryption re-enabled)
<clever> ottidmes: i need to investigate hibernation more, i suspect it can still work there
<clever> ottidmes: the problem, is that you have to run a special command against the swap device, to restore the original os image
<ottidmes> clever: Yeah, in some cases you can make it work, depends on sleep states and other hardware support
<clever> the stage-1 in nixos will write the major:minor of a block device to /sys/power/resume
<clever> then the kernel will restore the ram and resume execution of the original kernel
<clever> ottidmes: in theory, your PBA image could do that, without even kexec'ing the right kernel
<ottidmes> clever: Hmm, interesting, something to look at
<ottidmes> clever: I really need to get some sleep now, but interesting stuff! Got some great new ideas, bye!
LysergicDreams has joined #nixos
<clever> yep
scribbler has quit [Quit: scribbler]
ottidmes has quit [Ping timeout: 260 seconds]
<fearlessKim[m]> In a nix-shell I set $out to a local folder so that the installPhas succeeds, aka `export out=toto` but the installPhase keeps having flags such as pkgconfigdir=/nix/store/ql2l382bky9r3dbpsjzd3grfy8zw45bd-lkl-2018-11-10-dev/ . How can I fix it ?
<clever> fearlessKim[m]: try "env | grep --color lkl-2018-11-10-dev"
<fearlessKim[m]> clever: ty, so I guess I have to modify the $dev output path too
<clever> fearlessKim[m]: ah yeah, split outputs
<clever> that package has both a $out and a $dev
scribbler has joined #nixos
<fearlessKim[m]> clever: also as the previous discussion was about initrd and stuff, could you give your insight on https://github.com/NixOS/nixpkgs/pull/33067 ? (It's a small PR). I run the VM via libvirt/qemu without initrd (because I read it was faster) but with -kernel <myKernel> and I believe that's why /proc doesn't exist
<clever> fearlessKim[m]: if an initrd is in use, it will mount /proc /sys /dev and /run before transfering control to stage2
<clever> ah, and a change from ~11 months ago added code extremely early in stage-2, that expects /proc to already be present
<clever> fearlessKim[m]: i dont see you gaining that much time by skipping the initrd, its only going to save you one or 2 seconds of bootup time
<clever> fearlessKim[m]: oh, also, try doing echo "$@" in stage2
<clever> fearlessKim[m]: i suspect that also has the entire /proc/cmdline
<clever> fearlessKim[m]: but only when not using an initrd
<fearlessKim[m]> I wonder if I can retrieve the appropriate initrd though as it will be within the nixops VM ?
<clever> fearlessKim[m]: ahh yeah, you need to mount the /boot and extract that image, i see the issue
<fearlessKim[m]> when running qemu -kernel, I believe one needs to explicit -initrd with a host file
<fearlessKim[m]> I like your $@ idea
<clever> fearlessKim[m]: follow the usage of argv_init in https://github.com/torvalds/linux/blob/master/init/main.c
<clever> it starts with just argv[0] = "init"
<clever> i think 562 then appends all kernel params
<clever> 318 also does similar things
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aij opened pull request #36152: infiniband-diags: init at 2.0.0 (master...infiniband-diags) https://git.io/vA1x4
NixOS_GitHub has left #nixos [#nixos]
<fearlessKim[m]> clever: I see great. You are awesome
<clever> fearlessKim[m]: and if you lack an initrd, the kernel must support the rootfs
<clever> fearlessKim[m]: another option is to pass grub to -kernel, and then let grub read the config files, or just use a legacy MBR
<clever> though then you loose paravirtual some
<fearlessKim[m]> yep I compile everything inkernel rather than as mods. the VM boots with my patch but I was not sure if that was a good patch
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
scribbler has quit [Ping timeout: 240 seconds]
sigmundv__ has joined #nixos
<fearlessKim[m]> clever: it seems to work, there is another error a bit later when saving the init log because /proc is not available but this I dont care
pxc1 has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
marusich has quit [Ping timeout: 252 seconds]
marusich has joined #nixos
pkill9 has quit [Ping timeout: 260 seconds]
pxc1 has quit [Ping timeout: 240 seconds]
thebardian has joined #nixos
sanscoeur has joined #nixos
marusich has quit [Ping timeout: 256 seconds]
marusich has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
sanscoeur has quit [Ping timeout: 252 seconds]
razzy has quit [Ping timeout: 255 seconds]
<mfiano> clever: Hi, I wanted to ask you why you use qemu over virtualbox. I haven't used qemu in about 15 years so I don't know what's good now
<clever> mfiano: in general, i prefer qemu for most things, its better documented, more flexible, and open source
muzzy has joined #nixos
<mfiano> I see
<clever> mfiano: but if i just want to boot ubuntu or windows without any fuss and fancy config, i use virtualbox
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging bcc04c7 Ryan Mulligan: lzip: 1.19 -> 1.20...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vA1pS
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging b8b2225 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vA1pQ
<mfiano> clever: You kinda got me using some new tools (vimium, sessionbuddy, etc) and try some fancy things with my boxes. I never did luks before and I want to try that next
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #35879: lzip: 1.19 -> 1.20 (master...auto-update/lzip-1.19-to-1.20) https://git.io/vAiYg
NixOS_GitHub has left #nixos [#nixos]
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/ebe462bdc94 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
<mfiano> also interested in your idea about the sdcard key
<clever> mfiano: at the lowest level, the luks header contains a list of entries
<clever> each entry can be encrypted differently (passphrase, keyfile, maybe smartcard?)
<clever> and all of those entries contain an encrypted copy of the same thing, a master key
<clever> luks will then use that master key for the actual drive encryption
<clever> so you have several ways to unlock it
<clever> `cryptsetup luksFormat /dev/sda2` will create a new luks volume, and ask for a passphrase
cinimod has joined #nixos
<mfiano> also, i never did LVM. i always just make regular partitions, no raid, no encryption. i want to upgrade my setups :)
<clever> `cryptsetup open --type luks /dev/sda2 rootfs` will create a /dev/mapper/root that points to the un-encrypted block device, and ask for the passphrase
<clever> with those 2 commands, you can make a luks protected block device, and then format it with any FS of your choosing
<clever> and if nixos is configured properly, it will do `cryptsetup open` on bootup
<clever> but the /boot cant be encrypted
<mfiano> what is 'properly'?
<clever> boot.initrd.luks.devices = [ { name = "root"; device = "/dev/sda2"; preLVM = true; } ];
<clever> mfiano: this has to be added to the nixos config, which tells it to run `cryptsetup open --type luks /dev/sda2 root` during bootup
<clever> mfiano: i also have a bash script here, that just automates the entire thing
marusich has quit [Ping timeout: 256 seconds]
<mfiano> that command makes me wonder what other 'type's there are besides luks
cinimod has quit [Ping timeout: 240 seconds]
blankhar1 has joined #nixos
<clever> Device type can be plain, luks (default), loopaes or tcrypt.
<clever> from the man page
<clever> i think most of those will just use your password as a key
marusich has joined #nixos
<clever> ive tried them before, every string of nulls on your hdd turns into your password, repeating endlessly :P
<clever> in plain view of the world!
<mfiano> wth
<clever> it just xor's the data with your password
<mfiano> HA
<clever> and if the data is 0, then no bits are flipped
<mfiano> Can I see that bash script?
<clever> luks only uses your password to unlock a master key, and i think every sector has a unique IV, so its much simpler
<clever> justdoit.nix generates the bash script, based on nixos config
<mfiano> Cool. Do you also use LVM?
<clever> lines 45-72 are a nix if statement, which will either insert 46-60 or 62-71, based on what you set kexec.justdoit.luksEncrypt to
schoppenhauer has quit [Ping timeout: 245 seconds]
<clever> when using luks, i also include lvm in the system
<clever> i use zfs, but it doesnt play nicely with swap
<clever> so the swap has to be seperate from the zfs
<mfiano> I never used either and I want to learn more about them to see where I might fail and lose all my data first :)
<clever> but if you luks the swap, and luks the zfs, it will ask for 2 passwords on bootup
<clever> so, instead, i luks the lvm, then lvm contains both swap&zfs
<clever> mfiano: check the man pages for pvcreate, vgcreate, and lvcreate
razzy has joined #nixos
<mfiano> Ok
<clever> mfiano: and cryptsetup
schoppenhauer has joined #nixos
<mfiano> I should probably test this as I learn nixops in a VM
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master cece9a2 Peter Hoeg: pythonPackages.jsonrpc-async: remove name
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 5 new commits to master: https://git.io/vA1hc
<NixOS_GitHub> nixpkgs/master 9e4b9e8 Peter Hoeg: pythonPackages.jsonrpc-websocket: remove name
<NixOS_GitHub> nixpkgs/master 703b940 Peter Hoeg: pythonPackages.jsonrpc-base: remove name
itegulov has joined #nixos
CrazedProgrammer has quit [Ping timeout: 240 seconds]
razzy has quit [Read error: Connection reset by peer]
aminechikhaoui has quit [Ping timeout: 248 seconds]
<mfiano> clever: Do yo uuse any method to secure /boot ?
<clever> mfiano: none currently
aminechikhaoui has joined #nixos
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth reopened pull request #36147: perl-packages.nix updated to actual CPAN versions [staging] (staging...perl-packages-update-3) https://git.io/vA1rS
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vA1h7
<NixOS_GitHub> nixpkgs/master 810318a aszlig: redshift: Don't remove icon-theme.cache...
NixOS_GitHub has left #nixos [#nixos]
jtojnar_ has joined #nixos
jtojnar has quit [Ping timeout: 252 seconds]
jtojnar_ is now known as jtojnar
ertes-w has quit [Read error: Connection reset by peer]
ertes-w has joined #nixos
ertes-w has quit [Read error: Connection reset by peer]
aardito has joined #nixos
<aardito> how do emacs packages work in nixos config?
ertes-w has joined #nixos
<aardito> I just ran into an issue with a package I was using, went to check it out on github and discovered that I'm running a version of the package at least a couple years out of date
<aardito> so just curious whether I'm doing something wrong or if I should switch to pulling from melpa myself
<Ralith> I believe the default emacs packag source is melpa stable, which can be old
<Ralith> there are other sources
jtojnar has quit [Ping timeout: 268 seconds]
pie_ has quit [Ping timeout: 240 seconds]
pxc1 has joined #nixos
<ryantm> Somewhat recently someone started doing a mass automatic import of MELPA packages. Maybe your channel is out of date?
07IACK8TM has joined #nixos
<07IACK8TM> [nixpkgs] dezgeg closed pull request #35317: Add regextester (master...add-regextester) https://git.io/vAznT
<92AACXDNL> nixpkgs/master de650d4 Sam Parkinson: elementary-cmake-modules: init at 319ec5336...
07IACK8TM has left #nixos [#nixos]
<92AACXDNL> nixpkgs/master 1c4298f Sam Parkinson: regextester: init at 0.1.7
92AACXDNL has left #nixos [#nixos]
92AACXDNL has joined #nixos
<92AACXDNL> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vA1jq
muzzy_ has joined #nixos
hamishmack has quit [Quit: hamishmack]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vA1jO
<NixOS_GitHub> nixpkgs/master e65676d Bart Brouns: tp_smapi: unstable-2017-12-04 -> 0.43
NixOS_GitHub has left #nixos [#nixos]
aminechikhaoui has quit [Ping timeout: 256 seconds]
<aardito> how would I change that?
muzzy has quit [Read error: Connection reset by peer]
<aardito> I'm just using services.xserver.windowManager.exwm.extraPackages right now
pxc1 has quit [Ping timeout: 256 seconds]
<ryantm_> nix-channel --update and sudo nix-channel --update
aardito has quit [Ping timeout: 260 seconds]
<ryantm_> the super user and the regular user have different channels
aminechikhaoui has joined #nixos
<elvishjerricco> Tried to create a wrapper script to give `nix build` the CLI I want. Didn't go well. Don't think it's possible...
elvishjerricco has quit [Quit: Updating details, brb]
elvishjerricco has joined #nixos
mounty has quit [Ping timeout: 260 seconds]
<mfiano> How do I know if I am running the new Nix 2.0?
<clever> mfiano: does the nix command exist?
<mfiano> Nope
<clever> then your likely on 1.11, you cna confirm with realpath $(which nix-build)
<mfiano> Strange. I installed after the release date from an updated channel
<clever> its not the default on master/unstable
<elvishjerricco> mfiano: I don't think Nix 2.0 is on any channel yet, except for 17.09 as `nixStable2`
<clever> there is an open PR to fix that
<elvishjerricco> `master`/`unstable`/`17.09` have a prerelease of it as `nixUnstable` I believe
<mfiano> Looks like I'm on 1.11.16
<mfiano> It wants me to install `nix-env -iA nixos.nixStable2`
* mfiano wonders if he should be brave
<elvishjerricco> I've only been using it for a couple of days now but it's treated me well so far
<elvishjerricco> If you're on NixOS, you probably want to install it slightly differently though
<clever> nix.package = pkgs.nixStable2; for example
mounty has joined #nixos
<elvishjerricco> Yep. Otherwise `nix.conf` isn't quite right
<mfiano> What is the difference between installing something with `nix-env -i` and adding it to systemPackages? When would you use one way over the other?
<elvishjerricco> The difference is mostly just that things installed in `configuration.nix` will keep updated with your channel. Anything installed with `nix-env` has to be manually upgraded. Also, the more you keep in `configuration.nix`, the more declarative and reproducible your system is.
<mfiano> I see. It seems `nix-env -q` lists 1 thing that is also in my config. How do I remove it from being tracked by nix-env?
<elvishjerricco> mfiano: But `nixStable2` would not go in `systemPackages`. Like `clever` said, you'd want to do `nix.package = pkgs.nixStable2`
<elvishjerricco> mfiano: `nix-env -e pname`
<mfiano> I'm just going to wait until nix 2.0 happens through a channel update
<mfiano> Thank you for your help
mounty has quit [Ping timeout: 276 seconds]
<mfiano> How old is the stable channel by the way? I am wondering if it's a good idea for a newbie that wants to learn as much as he can to switch to unstable or not.
mounty has joined #nixos
<clever> mfiano: the 17.09 channel is from the 9th month of 2017
<clever> it forked of off master then, and has only had bug fixes and the occasional version upgrade
<mfiano> I guess my question is, how unstable is 'unstable'? Am I going to have a hard time doing trivial things while I'm learning?
<clever> mfiano: i run unstable on all of my machines
<mfiano> Yeah well you aren't exactly a novice :)
<clever> and it still goes thru a wide array of tests before it updates
<clever> so its still pretty stable
johnw_ has joined #nixos
<mfiano> Ok, I'll pull the trigger when I find the right incantation
<clever> [root@amd-nixos:~]# nix-channel --list
<clever> the nix-channel man page explains how to add/remove channels
<clever> and you are free to change an install between channels whenever you want
<clever> so you can always switch to stable if you have problems
uptime has quit [Ping timeout: 252 seconds]
johnw has quit [Ping timeout: 255 seconds]
<mfiano> Are the manpages built from docbook too?
<fearlessKim[m]> gosh you got me hooked with all this LUKS talks, I want to do it ! but I have just one big partition ':(
zzamboni has joined #nixos
<mfiano> Seems so, nevermind
<clever> fearlessKim[m]: for my zfs based nas with a 3 drive raid array, i wanted to avoid stealing 512mb for /boot, because then i loose 512mb on all 3 drives
<clever> fearlessKim[m]: so, i opted to put /boot onto a 64mb usb stick, lol
<clever> you cant even buy things that small nowadays
uptime has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] mfiano opened pull request #1932: nix-channel grammar and punctuation (master...patch-1) https://git.io/vAMvL
NixOS_GitHub has left #nixos [#nixos]
rauno has quit [Ping timeout: 245 seconds]
sigmundv__ has quit [Ping timeout: 252 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
muzzy_ has quit [Ping timeout: 252 seconds]
<ldlework> How do you install the dotnet core cli?
<clever> ldlework: which command do you want to run on the CLI?
alex`` has joined #nixos
<clever> what is the binary called on most distros?
<clever> as in, what command would you run on a shell?
<ldlework> dotnet
<clever> [clever@amd-nixos:~/apps/nixos-configs]$ dotnet
<clever> The program ‘dotnet’ is currently not installed. You can install it by typing:
<clever> nix-env -iA nixos.dotnet-sdk
<ldlework> Neat, wish I had that on OSX :D
<ldlework> cheat mode
<thebardian> Is there a current state on grub and zfs, if I'm doing a nixos rootonzfs install, should I still put /boot on its own non-zfs partition?
<ldlework> oddly, I have that package installed, but no dotnet binary
ryanartecona has quit [Quit: ryanartecona]
<clever> thebardian: i still dont trust grub with zfs, so i go with ext4 /boot for legacy systems
<clever> thebardian: for efi, you can either do vfat /boot, or ext4 /boot + vfat /boot/efi
<thebardian> What do you do for efi
<thebardian> Right
<thebardian> okay thanks
<ldlework> like I have all the fsharp compiler stuff I need, but I need the dotnet utility in order to actually manage the project files and dependencies and stuff
<clever> grub also needs a special flag, to tell it that the vfat is at /boot/efi
<clever> boot.loader.efi.efiSysMountPoint
<thebardian> what about zfs boot environments, does nixos have those available on the bootloader
<clever> thebardian: if you set fileSystems."/".fsType = "zfs"; it will automatically include the zfs tools in the initrd
<clever> thebardian: and your root dataset has to have mountpoint=legacy set on it
<thebardian> wow
<clever> thebardian: that script does the entire install, from formating the disk to nixos-install
<clever> thebardian: and it can be pre-installed into the iso image, so you simply boot and run justdoit, lol
<thebardian> This is too much
itegulov has quit [Ping timeout: 260 seconds]
<clever> thebardian: also, the kexec.nix in the same directory, generates a tarball containing kexectools, a kernel, and initrd (which contains a rootfs, and justdoit)
<thebardian> In freebsd installer I can just choose "raidz1" and 3 hard drives.
<clever> thebardian: so you can just unpack the tar to /, run /kexec_nixos, and now nixos is running entirely from ram
<clever> if i have root on any hardware, i can convert it to nixos in under an hour :P
<thebardian> Thanks for the info
pxc1 has joined #nixos
ajp has quit [Quit: No Ping reply in 180 seconds.]
ajp has joined #nixos
sanscoeur has joined #nixos
pxc1 has quit [Ping timeout: 252 seconds]
zzamboni has quit [Quit: Leaving.]
sanscoeur has quit [Ping timeout: 240 seconds]
muzzy_ has joined #nixos
<ldlework> clever any further clues?
Guanin has quit [Ping timeout: 276 seconds]
Guanin has joined #nixos
chessai has quit [Ping timeout: 245 seconds]
tv has quit [Ping timeout: 240 seconds]
rburkholder has joined #nixos
dynamicudpate has quit [Ping timeout: 276 seconds]
tv has joined #nixos
marusich has quit [Ping timeout: 248 seconds]
marusich has joined #nixos
muzzy_ has quit [Remote host closed the connection]
muzzy_ has joined #nixos
ryantm_ has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
abathur has quit [Remote host closed the connection]
<angerman> Does anyone have a nix-expression for a customized ghc, without having to modify nixpkgs's ghcHEAD?
mekeor has quit [Ping timeout: 252 seconds]
kitemikaze has quit [Remote host closed the connection]
kitemikaze has joined #nixos
michas_ has joined #nixos
leat has quit [Ping timeout: 256 seconds]
jackdk has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Wallacoloo opened pull request #36153: Krita: fix typo in description (master...krita-description) https://git.io/vAMJh
NixOS_GitHub has left #nixos [#nixos]
thebardian has quit [Ping timeout: 256 seconds]
<clever> ldlework: on?
MercurialAlchemi has joined #nixos
<ldlework> I installed dotnet-sdk but I have no relevant binary
<clever> ldlework: ah, it may have different contents on osx
<clever> ldlework: you may have some luck using nix-index and nix-locate on darwin
<ldlework> I skimmed through the binary list in ~/.nix-profile/bin and didn't see anything, hmm
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ nix-build -A dotnet-sdk
<clever> after checking out the latest master, on linux
<clever> copying path '/nix/store/63rsl125qchsggnk7dnr825kj0bzikzp-dotnet-sdk-2.0.3' from 'https://cache.nixos.org'...
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ ls result/bin/dotnet -lh
<clever> lrwxrwxrwx 1 root root 67 Dec 31 1969 result/bin/dotnet -> /nix/store/63rsl125qchsggnk7dnr825kj0bzikzp-dotnet-sdk-2.0.3/dotnet
<clever> it exists on the linux version
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ nix-build -A dotnet-sdk --argstr system x86_64-darwin
pxc1 has joined #nixos
<clever> error: Package ‘dotnet-sdk-2.0.3’ in /home/clever/apps/nixpkgs/pkgs/development/compilers/dotnet/sdk/default.nix:48 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<clever> ldlework: what happened when you tried to nix-env -i it?
<ldlework> I used allowBroken
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ nix-build -A dotnet-sdk --argstr system x86_64-darwin --arg config '{ allowBroken = true; }'
<clever> error: while evaluating the attribute 'buildPhase' of the derivation 'dotnet-sdk-2.0.3' at /home/clever/apps/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:148:11:
<clever> cannot coerce null to a string, at /home/clever/apps/nixpkgs/lib/strings.nix:85:38
<clever> ldlework: allowBroken wont work
<clever> ldlework: its hard-coded to download a pre-built linux binary, and patchelf it
<clever> so it can only ever produce linux binaries
<ldlework> mm
<ldlework> thank you clever. I guess I can brew this one.
<clever> if you have a darwin version of the above url, nix could be updated, but brew is probably simpler
<clever> i dont know much about how to package pre-built software on darwin
<clever> it needs a patchelf like tool, that goes by a different name
<fearlessKim[m]> Is there anything in nix 2.0 that makes it easier to work with local sources ? getting bored of adding cleanSource or "Nix daemon out of memory"
<clever> fearlessKim[m]: nothing that i know of, but you can still focus on just making the tree smaller, why is the directory so big that it runs out of memory?
pxc1 has quit [Ping timeout: 260 seconds]
<fearlessKim[m]> usually it's because of .git or a remaining "build" folder for cmake based projects
<clever> fearlessKim[m]: cleanSource should deal with .git already, maybe build?
<fearlessKim[m]> or some utility to fetch a local git repository ? does the builtins.fetchgit improve that ?
sanscoeur has joined #nixos
<clever> fearlessKim[m]: there is fetchgitlocal
<clever> fearlessKim[m]: line 4 calls toString on src, which forces it into a normal absolute path, not in the store
<clever> fearlessKim[m]: so the nix build user needs permission to cd into whatever directory it happens to live at, and perform read based operations
<fearlessKim[m]> fetchgitlocal doesn't work, https://github.com/NixOS/nixpkgs/pull/31937
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/fd1d76bb1a8 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
<fearlessKim[m]> I haven't tried with the extra authorization I admit
<clever> fearlessKim[m]: upon closer inspection, it tries to modify the directory, so it would need +w as well
<clever> which just gets messy
<fearlessKim[m]> so my PR moved the .git folder into tmp and used GIT_sthg to make it work
<clever> fearlessKim[m]: oh, nix 2 has builtins.fetchgit
<clever> fearlessKim[m]: that might solve the problem on lines 7-27 of the original fetchgitlocal
<clever> let me see exactly what it does
sanscoeur has quit [Ping timeout: 248 seconds]
<fearlessKim[m]> that's my hope, I haven't install nix 2 but if thatsolves it I install it straightaway
uptime has quit [Ping timeout: 240 seconds]
<clever> line 188 defines the primop
<clever> the 1st argument is either a attrset or a uri
<clever> if its a set, it contains url/ref/rev/name
<clever> it will then run git commands, as the user doing the eval (no need to mess with permissions), to inspect the state of the git repo
leothrix has quit [Quit: ZNC 1.6.5 - http://znc.in]
<fearlessKim[m]> cool
<clever> it does something with git ls-files and filterSource
<clever> let me just run it and see what happens...
leothrix has joined #nixos
<clever> nix-repl> builtins.fetchGit ./.
<clever> { outPath = "/nix/store/dbznif876wsriw8y5zcwnsnir0i064fn-source"; rev = "0000000000000000000000000000000000000000"; revCount = 0; shortRev = "0000000"; }
* clever scratches head
hyper_ch2 has joined #nixos
<clever> fearlessKim[m]: aha, it only reports a rev if the git repo is clean
<clever> fearlessKim[m]: if any files have been modified, it reports all 0's
<clever> fearlessKim[m]: it also did filterSource magic to exclude every file that git isnt aware of
<clever> so random junk like build/ and other un-commited files just vanish automatically
uptime has joined #nixos
teto2 has joined #nixos
<hyper_ch2> sphalerit: did you try to send yet an unenrypted DS to an encrypted one?
rogue_koder has quit [Read error: Connection reset by peer]
rogue_koder_ has joined #nixos
cinimod has joined #nixos
reinzelmann has joined #nixos
<teto2> clever: clever so it won't stash modifications before fetching into the store ? I think both behaviors would be interesting. I use a function found via google fetchLatestGit that just removes any kind of hashing so you don't need to type rev/hash
<clever> teto2: i think modified files that git is aware of will be copied into the nix store
<clever> teto2: but files that arent even in git, will be ignored
<teto2> (I am fearlessKim, had to switch to IRC, got sick riot.im UI glitches)
<clever> so your changes persist, but your added files just vanish
<clever> so .o files just get filtered out automatically
<teto2> seems useful, installing nix 2.0 :) ty
<clever> yep
cinimod has quit [Ping timeout: 240 seconds]
<Dezgeg> does it respect .gitignore ?
<clever> Dezgeg: its based on git ls-files
<clever> Dezgeg: not sure what it will do if a file is in both .gitignore, and the git index
<Dezgeg> I suppose the latter
<Dezgeg> but what I was after is that does it include untracked files but NOT those in .gitignore, and apparently not
cnu- has quit [Ping timeout: 276 seconds]
<Dezgeg> I think if you could do git ls-files -o it'd do that
<clever> -o appears to invert the action
<clever> yeah, all untracked files
<Dezgeg> oops, -oc I guess would show both
x1n4u has quit [Ping timeout: 240 seconds]
cnu- has joined #nixos
leat has joined #nixos
x1n4u has joined #nixos
musicmatze has quit [Remote host closed the connection]
endformationage has quit [Ping timeout: 245 seconds]
zzamboni has joined #nixos
MichaelRaskin has left #nixos [#nixos]
reinzelmann has quit [Quit: Leaving]
noffle has left #nixos ["WeeChat 1.9-dev"]
orivej has joined #nixos
i-am-the-slime has joined #nixos
ottidmes has joined #nixos
Itkovian has joined #nixos
pxc1 has joined #nixos
michas_ has quit [Ping timeout: 240 seconds]
pxc1 has quit [Ping timeout: 240 seconds]
cinimod has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #36154: Keybase 1.0.44 (master...keybase-1.0.44) https://git.io/vAMIl
NixOS_GitHub has left #nixos [#nixos]
pxc1 has joined #nixos
systmkor has joined #nixos
hyper_ch2 has quit [Ping timeout: 260 seconds]
hamishmack has joined #nixos
benley has quit [Ping timeout: 256 seconds]
benley has joined #nixos
asuryawanshi has joined #nixos
<BlessJah> sorear: I believe shlevy suggested you might know how risc-v chips compare to widely available cpus: are they like embedded (i.e. router), smartphone or could they compete with low-, high-end desktop chips?
robstr has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<sorear> BlessJah: is this a question about existing hardware or hypothetical future hardware?
x1n4u has quit [Ping timeout: 276 seconds]
hask_bee_3 has joined #nixos
x1n4u has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<BlessJah> both
<BlessJah> will I buy risc-v router, s
<BlessJah> smartphone or laptop in 5 years?
hyper_ch2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] timor opened pull request #36155: [WIP] german dictionary for hunspell (master...hunspell) https://git.io/vAMtu
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
harmathy has joined #nixos
zzamboni has quit [Read error: Connection reset by peer]
fiddlerwoaroof has quit [Ping timeout: 268 seconds]
<sorear> right now: the 'hifive unleashed' board, I don't have one but from published specs, for control-intensive workloads (e.g. gcc) I expect it to be on par with rpi3. no GPU or SIMD/cryptographic functionality will make other stuff suffer. other publically disclosed products ('hifive1'/FE310, Andes AE250, Greenwaves GAP8) lack MMUs and are out of scope for nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 9436e04 Robert Schütz: Merge pull request #36153 from Wallacoloo/krita-description...
<NixOS_GitHub> [nixpkgs] dotlambda pushed 2 new commits to master: https://git.io/vAMtd
<NixOS_GitHub> nixpkgs/master 4aa49af Colin Wallace: krita: fix typo in description
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> sorear: yeah shlevy's ordered one and is working on porting nixos for it
nixer101 has joined #nixos
<nixer101> Hi everyone! How can I list a package that is installed by the user? The problem is that I installed Palemoon package from unstable yesterday; however when run from user account, it starts an OLD version. I have verified/checked store, garbage collected, rebooted - and nothing. I then removed palemoon from configuration.nix altogether and switched - but updatedb/locate still lists it and its still with user.
<clever> nixer101: nix-env -q
<srhb> nixer101: nix-env -q
<nixer101> I have never install a package using user
<srhb> eek
<nixer101> nothing...
<clever> nixer101: what does "type palemoon" say?
<nixer101> clever: root/user?
<clever> nixer101: just run it as your normal user
<nixer101> not found
<clever> nixer101: how are you starting palemoon?
<nixer101> There is start menu link, which says "Custom definition for Palemoon"
<nixer101> "userapp-Pale Moon-875FFZ"
<clever> nixer101: do you see it in one of these directories? ~/.local/share/applications ~/.nix-profile/share/applications/ or /run/current-system/sw/share/applications/
scribbler has joined #nixos
<nixer101> 1 second, clever
<jonge> hi. yesterday i heard about "guix". from what i have seen it looks extremely similar to nixos, even paths and tool output etc. - can somehome help me understand if this is kind of a fork and why it exists? and how it is different? or is there a nice link to an article about that?
<sorear> BlessJah: forseeable future: different markets are moving at different rates. right now most of the design activity I see is in the embedded space, a router is not unlikely, although you'll need an exploit to get any code onto it (luckily, I don't see infosec making much progress in 5y). smartphones have a lower degree of new product activity, and most of the big players are already ARM architectural licensees, so
<sorear> it's less likely but possible. laptops are even less likely due to the Windows ISV tradition of binary-only software, although niche products (cf novena, pinebook) are likely to happen
<clever> jonge: from what ive heard, it uses a different language in place of nix, but still uses the same .drv files and daemon, and focuses more heavily on only open-source software
<nixer101> clever, the link points to this dir: "/home/userp/.local/share/applications". However, this is pure configuration.nix generated system. I have never installed palemoon by pulling it as user.
<clever> nixer101: do any palemoon files exist in /home/userp/.local/share/applications?
nadley has quit [Ping timeout: 240 seconds]
vcunat has joined #nixos
<nixer101> clever: There are three files there, two of which belong to palemoon: mimeinfo.cache 'userapp-Pale Moon-875FFZ.desktop' 'userapp-Pale Moon-HDPEFZ.desktop'
<sphalerite> so it's just pale moon misbehaving
<clever> nixer101: can you pastebin the contents of the 2 palemoon files?
<jonge> clever: is the language "more mature" or "more experimental" than that of nix? and how can guix be "open-sourcer" than nix? i mean nix has a `allowUnfree` flag.
<nixer101> clever: I want to stress out that all software was pulled by nixos-rebuild.
vcunat has quit [Client Quit]
<nixer101> clever: sure! thanks
<clever> jonge: i think guix just doesnt have the allowUnfree flag, and doesnt allow unfree software
<jonge> clever: i see. so that even sounds like a limitation.
scribbler has quit [Ping timeout: 240 seconds]
<clever> jonge: i think nix can still be used in the same store though, but ive not looked into guix that much
reinzelmann has joined #nixos
ZoomZoomZoom has joined #nixos
<nixer101> clever: thats what cat * does
<sorear> BlessJah: complicating factor: 2020 marks 20 years since x86_64 was released, and the Windows 10 minimum hardware requirements will be out of patent by "5 years from now" (unless Microsoft decides to start mandating AVX, but they have no incentive to do that and many not to), so the PC hardware market may be a jungle by then for non-riscv reasons
<clever> nixer101: it looks like palemoon created those files when you ran it, to flag itself as the default browser
rogue_koder_ has quit [Quit: Konversation terminated!]
<clever> nixer101: and thats now persisting, and making that old version, the default version
<clever> nixer101: just delete those files and it should fix the issue
<nixer101> clever: thats very logical! But why did nix and nix-garbage-collect respect these? Shouldn't they by logic just cut these store units, that these links would basically not work?
<clever> nixer101: the rollback generations in your profile kept those versions around by chance
fiddlerwoaroof has joined #nixos
<sphalerite> jonge: guix is just one of the hardline free software philosophy distros.
<nixer101> clever: but how? can nix trace all links backwards and then prevent them from uninstalling?
<clever> nixer101: nix is only checking the links under /nix/var/nix/gcroots/
<sphalerite> jonge: for now, guix is in some ways better than nix though I'd say, especially the UI seems to be better thought out. Hopefully that will change as nix's new CLI becomes more complete though
zzamboni has joined #nixos
<nixer101> clever: but can you explain why these store elements stayed? I CAN run palemoon 27.4.2, even though its absent in configuration.nix and I have never installed it as user. This is how I uploaded to pastebin right now...
sigmundv__ has joined #nixos
Thra11 has quit [Ping timeout: 245 seconds]
<clever> nixer101: what does this command say? nix-store --query --roots /nix/store/pwplsdk340pad0irimfvmm0kxkxd3ail-palemoon-27.4.2
<nixer101> clever: (put it on single line, removed one /n):: /nix/var/nix/profiles/system-1-link /nix/var/nix/profiles/system-2-link
<clever> nixer101: so generation #1 and #2 of nixos had version 27.4.2, and nixos is keeping them incase you want to undo removing it
<nixer101> clever: very strange, I run nix-collect-garbage several times. Also commented it out from configuration.nix
pxc1 has quit [Ping timeout: 240 seconds]
<clever> nixer101: by default, nix-collect-garbage doesnt remove the roots, so you can undo things still
<clever> nixer101: it has to be given an extra flag like -d or --delete-older-than, and ran as root, to delete those
<nixer101> clever: by roots, you mean system generations, right?
<nixer101> clever: sorry, I am very new to nixos
<sorear> BlessJah: non-forseeable future: there are very few non-compatibility technical reasons to prefer one mainstream ISA over another for application cores. riscv is likely to be attractive in rapidly evolving markets with many new players that don't have licensing arrangements. very small cores prefer simpler instruction sets and are unlikely to be x86, cores designed to run code that is very different from typical
<sorear> modern C programs will have to invent their own instruction sets as a matter of course
<sphalerite> system generations are just one kind of root
<clever> nixer101: every system generation is a root, and there are some other roots for other things
<jonge> sphalerite: yeah can't wait for nix2.0 to land on my laptop via upgrade
nckx has quit [Ping timeout: 252 seconds]
retrry[m] has quit [Ping timeout: 276 seconds]
clacke[m] has quit [Ping timeout: 276 seconds]
<sphalerite> You could start using it now!
<sphalerite> Although quite a few recent switches seem to have gone non-optimally :/
civodul has joined #nixos
nckx has joined #nixos
<nixer101> clever: so I understand it as nix-collect-garbage by default cleans store from units that are unreachable from any profile/generation, but it does not touch generations at all; where -d option also removes old generations first, and all goes removing the old cruft?
sanscoeur has joined #nixos
clacke[m] has joined #nixos
<nixer101> "and all" = "and then"
Thra11 has joined #nixos
retrry[m] has joined #nixos
jensens has joined #nixos
<clever> nixer101: yeah
<robstr> morning :) I want to send a file located in my home directory via email from my nixos machine, but when opening chromium attach file from gmail everything is empty :-/
<nixer101> clever: thanks! I understand now what happened. The units were not cleaned, because they were referenced in older system generations. And they were able to rise from zombie state, because they were linked by local desktop files, that palemoon autogenerated...
ThatDocsLady has joined #nixos
chessai has joined #nixos
<clever> nixer101: yep
<nixer101> thanks clever and sphalerite!
kitemikaze has quit [Ping timeout: 240 seconds]
pxc1 has joined #nixos
<robstr> ok got it -.- my fault
sanscoeur has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
phry has quit [Remote host closed the connection]
phry has joined #nixos
rindvieh has joined #nixos
i-am-the-slime has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #36156: cpp_ethereum: mark as broken (master...cpp_ethereum) https://git.io/vAMmp
NixOS_GitHub has left #nixos [#nixos]
<robstr> what is a good and lightweight pdf viewer ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAMYv
<NixOS_GitHub> nixpkgs/master 87f8676 José Romildo Malaquias: catch: 1.11.0 -> 1.12.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 1cb726b Jörg Thalheim: Merge pull request #36135 from romildo/upd.catch...
* etu kinda likes evince
<BlessJah> sorear: thanks, it's a pity there aren't "mainstream" laptops coming soon
<teto2> updated to nix 2.0, man doesn't get installed ? can't find the output
<teto2> robstr: zathura/apvlv/mupdf
<clever> BlessJah: have you seen https://www.crowdsupply.com/eoma68/micro-desktop ?
lsix has joined #nixos
<robstr> teto2: ty
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 5 new commits to release-17.09: https://git.io/vAMYz
<NixOS_GitHub> nixpkgs/release-17.09 2d7e341 Lancelot SIX: postgresql94: 9.4.15 -> 9.4.16...
<NixOS_GitHub> nixpkgs/release-17.09 686ba77 Lancelot SIX: postgresql93: 9.3.20 -> 9.3.21...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 f71286e Lancelot SIX: postgresql95: 9.5.10 -> 9.5.11...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #33066: rkt: needs libacl in LD_LIBRARY_PATH at runtime (master...rkt) https://git.io/vb5UA
NixOS_GitHub has left #nixos [#nixos]
<teto2> robstr: note that zathura failed with some files (very rare though) in which case I fall back to evince
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #29768: networkd: also load builtin modules (master...networkd) https://git.io/vdkmy
NixOS_GitHub has left #nixos [#nixos]
<BlessJah> clever: "upgrade what you need when you need" -- the device is of a size of credit card...
<clever> BlessJah: more that you replace the entire creditcard with a new module, but you can reuse everything else
<clever> BlessJah: so the entire laptop body/screen/keyboard can be reused when you switch to that fancy new RISC chip thats coming out
<sphalerite> hey hey people
<sphalerite> I have a joke
<sphalerite> ready?
<sphalerite> Remember… phonebloks? :D
<clever> sphalerite: this isnt as insane :P
<YegorTimoshenko[> clever: you mean RISC-V?
<clever> YegorTimoshenko[: yeah
kitttn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] idontgetoutmuch opened pull request #36157: Stop forcing hmatrix-gsl to use gsl 1.16 and use gsl 2.4 instead (master...master) https://git.io/vAMOe
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> I know :D
<YegorTimoshenko[> oh, great stuff
<kitttn> hi, guys)
<BlessJah> clever: attractive idea, are there GPD Win sized cases?
<YegorTimoshenko[> hi!
<clever> BlessJah: none that i know of right now
<kitttn> quick question - how to properly configure awesome wm? i have a config from my old arch, but how can i apply it to awesome in configuration.nix?
<kitttn> or should i do it in another way?
thc202 has joined #nixos
<lejonet> clever: I'm very tempted of signing up for one of them risc-v dev boards :P
nschoe has joined #nixos
nschoe has quit [Client Quit]
<BlessJah> kitttn: I think you can keep the config in your home directory
<clever> BlessJah: the interface has the following things: sata, ethernet, usb, 18/24 pin RGB LCD, MMC, SPI, I2C,
<sphalerite> kitttn: you can just copy your config over. You may need to make some adjustments if you're referring to /usr anywhere, but overall it should probably work as is.
<sphalerite> kitttn: as for getting it configured declaratively, there don't seem to be any options for it. For that, you'd want to make a wrapper that calls it with the config
<sphalerite> and install that instead of awesome itself
<goibhniu1> BlessJah: AFAIK, there's a Chinese manufacturer looking at using eoma68 for a handheld gaming device.
<clever> BlessJah: so you could just take any small-ish lcd panel, a mini (or custom) usb keyboard&joystick/mouse, 3d print a case, slap in a pcmcia socket, and you can jam in an existing EOMA module for the processor
goibhniu1 is now known as goibhniu
<clever> BlessJah: and you dont have to deal with the fine pitch of a cpu or the high freq
<kitttn> great, will try to put it in home folder, will write back to let you know, how it worked :)
<BlessJah> clever: is it better than usb-c? A usb-c capable phone could act as a desktop. Microsoft tried to do something like this once
cinimod has quit [Ping timeout: 248 seconds]
Guest36413 is now known as r0bby
<clever> BlessJah: i believe they only require usb 2.0
r0bby has quit [Changing host]
r0bby has joined #nixos
<robstr> when using nix-shell for project specific env, is there some documentation about this ? I'm a bit confused if i need mkDerivation
<sphalerite> I think the project started before USB-C became mainstream
r0bby has quit []
<clever> sphalerite: yeah, that also seems likely
<sphalerite> but something something usb-c phone desktop https://puri.sm/shop/librem-5/
<kitttn> wow, that worked!
r0bby has joined #nixos
<kitttn> Thank you all for help :)
<sphalerite> less than a year to release! And I'm planning on getting one and making it run nixos :D
<ottidmes> clever: Do you know if https://nixos.org/nixos/options.html#distributedbuilds would allow me to say, build everything remotely except those explicitly marked to be build locally (system-config, certain config files, etc.), someone suggested setting maxJobs to 0. Do you know if this would work, otherwise I will just try it and see what happens
<goibhniu> BlessJah: instead of sticking a phone in your router, tv, fridge (where most of the hardware wouldn't be used) ... you could use an eoma68
<sphalerite> ottidmes: o/
<clever> ottidmes: yeah, ive that will probably do what you want
Ivanych has quit [Ping timeout: 252 seconds]
<clever> goibhniu: exactly, why waste the money on an entire phone, when you only need the cpu&ram
<sphalerite> clever: but it won't build the config files locally will it?
<clever> sphalerite: i think nix will just ignore the preferLocal flag when it cant build locally
<clever> sphalerite: it already does so for arm stuff on my x86 hydra
cinimod has joined #nixos
kitttn has quit [Quit: Page closed]
<sphalerite> but AFAIU ottidmes *does* want the trivial stuff to build locally
<ottidmes> sphalerite: Exactly
<BlessJah> clever: thunderbolt v3 supports 4xPCIe 3.0, 2xDP, HDMI and USB3.1
<clever> ottidmes: ah, then just leave maxJobs at 1
<clever> BlessJah: nice, but good luck finding a cheap chip like the allwinner that supports it
<ottidmes> clever: But would that not make it possible for some heavyweight thing to start building locally?
<clever> ottidmes: it will prefer the remote hosts first, so it fills them up first
<clever> ottidmes: and if it has more jobs then they can handle, it will start one locally
<BlessJah> clever: still that's better as a consumer use-case (phone as a desktop), than "industrial"/consumer (router, refrigerator, tv)
michalrus has left #nixos ["WeeChat 1.9.1"]
<BlessJah> consumer would rarely care about upgrading cpu in their router or tv, wouldn't they?
<clever> BlessJah: yeah
<ottidmes> BlessJah: Other things tend to be out of date as well, so yeah, most won't care
<clever> BlessJah: though it is more bulky to "dock" a phone into a tablet or laptop when you want a bigger screen
<BlessJah> it is, I wouldn't to that on a train
<BlessJah> there are convertibles or 2-in-1s that may work well under such condition
evhan has quit [Ping timeout: 240 seconds]
ebzzry_ has joined #nixos
evhan has joined #nixos
<robstr> I want to store my /etc/nixos/ files on github, but the user doesnt have access rights to this directory. What is the preferred way to solve this ?
<clever> robstr: sudo -i
<sphalerite> robstr: you can use git as root
<sphalerite> robstr: or you can chown /etc/nixos to your user
<manveru> i just symlink configuration.nix to a /home directory
<robstr> sphalerite: thank you
<mfiano> robstr: what i do is I keep them in my homedir and just symlink whatever to /etc/nixos/configuration.nix
<manveru> ;)
shoogz has quit [Ping timeout: 276 seconds]
<robstr> ty all, really amazing community around nixos
mmercier has joined #nixos
<sphalerite> or you can set NIX_PATH to point nixos-config to somewhere else
shoogz has joined #nixos
shoogz has quit [Max SendQ exceeded]
rindvieh has quit []
<ottidmes> Or you can go paranoid and create a symlink for /etc/nixos/configuration.nix, set nixos-config in NIX_PATH and set NIXOS_CONFIG, but that is overkill
<aminechikhaoui> I do a different approach, I only have one line in my config: imports = [ /home/amine/src/dotfiles/nixos/configuration.nix ];
<aminechikhaoui> and the dotfiles is my git repo
<aminechikhaoui> not sure if that's the best idea though :D
shoogz has joined #nixos
<robstr> :D
rosa has joined #nixos
rindvieh has joined #nixos
pxc1 has quit [Ping timeout: 260 seconds]
<sphalerite> I prefer the use-git-as-root option myself
<sphalerite> it feels safer
<sphalerite> but tbh if someone gets access to my user account on my laptop they're basically root
<mfiano> i prefer to never use root. it feels safer :)
kai_w has joined #nixos
<kai_w> some packages have 'outputs = [... "lib"]', while others have a 'libOnly' option. Are there any guidelines about when to use one approach over the other?
<sphalerite> this libOnly thign doesn't seem to be in the nixpkgs manual
<sphalerite> so I'd go with outputs = ...
<hask_bee_3> Is it possible to make nix-build create the regular file instead of symlink into the cwd, and use the regular file as a gc root?
<sphalerite> no
<sphalerite> all gc roots need to live in the store
jensens has quit [Ping timeout: 260 seconds]
<teto2> arf I pulled the latest changes from lkl and even with cleanSource, I get ` Nix daemon out of memory`. Is there a variable I can set to increase the memory
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] guibou opened pull request #36158: partio: 1.1.0 -> 2018-03-01 (master...guibou_bump_partio) https://git.io/vAMGs
NixOS_GitHub has left #nixos [#nixos]
<hask_bee_3> okay
ottidmes has quit [Quit: WeeChat 1.9.1]
raynold has quit [Quit: Connection closed for inactivity]
knupfer has joined #nixos
laumann_ has quit [Quit: leaving]
<sphalerite> teto2: what exactly are you doing?
michas_ has joined #nixos
<robstr> when using `stack new bla` I receive Downloaded lts-10.7 build plan. AesonException "Error in #.packages.cassava.contraints.flags['bytestring-....
<robstr> ok found the issue on nixpkgs
humanoyd has joined #nixos
TonyTheLion has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vAMnx
<NixOS_GitHub> nixpkgs/master 48edc14 adisbladis: nodePackages_8_x.npm: init at 5.6.0
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2> infinisil: how do you create serivce.something.<name>.<option> modules?
<infinisil> hyper_ch2: look at how its done in nixpkgs
<srhb> hyper_ch2: Typically attrsOf submodule ...
<hyper_ch2> srhb: look at 3.19 there... that is different
<hyper_ch2> it's multiple sets of a config
<hyper_ch2> but not seperately named
<srhb> hyper_ch2: Read on.
<hyper_ch2> ah ok
rauno has quit [Ping timeout: 248 seconds]
<LnL> yeah, types.attrsOf (types.submodule t)
<LnL> there's also loaOf if you want both [{name = "foo"; ...}] or { foo = ...; }
<srhb> LnL: Wasn't that supposed to be deprecated at one point?
<srhb> Maybe not.
<LnL> you're thinking of loeOf
<srhb> Ah, no, I was thinking of this which got closed: https://github.com/NixOS/nixpkgs/issues/1800
<LnL> that was for option = [ 1 ]; and option = 1;
<srhb> So I guess there's no problem. :)
aarvar has joined #nixos
<sorear> clever: interchangeable parts and design for longevity make sense in mature markets. the EOMA folks' marketing about ~environmental responsibility~ is very funny when you consider how much energy people are going to be wasting by running 2020 hardware in 2040
mkoenig has quit [Remote host closed the connection]
<robstr> When interacting with stack, do i need to append always --nix ?
<manveru> robstr: you can add nix to your stack config
knupfer has quit [Ping timeout: 245 seconds]
<LnL> teto2: what kind of errir is that?
<LnL> error*
<robstr> manveru: ty
mkoenig has joined #nixos
ciil has quit [Quit: leaving]
hask_bee_3 has quit [Quit: Textual IRC Client: www.textualapp.com]
mmercier has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMWJ
<NixOS_GitHub> nixpkgs/master a0cb8cf Robin Gloster: rubygems.grpc: fix with gcc7
NixOS_GitHub has left #nixos [#nixos]
TweyII has joined #nixos
TweyII is now known as Guest28585
<joko> Hey, is it possible to patch a single-file source? nix-build mentions "can't find file to patch"
<clever> joko: is the path in the patch file correct?
<clever> joko: what is the first 2 lines of the .patch?
<joko> clever: diff --git ... and index ...
<clever> joko: next one?
<clever> is there one with +++ and a filename?
ciil has joined #nixos
<joko> --- a/SINGLEFILE and +++ b/SINGLEFILE
knupfer has joined #nixos
<clever> that should work, does that file exist in the root of the unpacked source?
<joko> The source is the file directly, it's a "binary" one
<joko> (I am trying to package racadm from Dell)
<clever> if you add prePatch = "ls -l SINGLEFILE"; does it find it?
Guest28585 has quit [Changing host]
Guest28585 has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/3265226fec3 (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
Guest28585 is now known as TweyII
<joko> clever: oops, no
<clever> joko: try prePatch = "ls -l"; to see what files are in the directory
<joko> clever: I've used sourceRoot = "." and a custom unpackCmd, should I leave those ones? The problem is that the file must be executable
<clever> joko: can you gist the nix expression?
chisui has joined #nixos
<joko> Sure, just a sec
harmathy has left #nixos ["Auf Wiedersehen"]
<clever> joko: ah, src is just a an executable
<joko> clever: exactly
<joko> should I patch it manually?
<clever> first problem there, is that the fetchurl lands at /nix/store/hash-name
<clever> and then the cp copies it to hash-name in the current directory
<clever> so you can never predict what it will be called
<joko> I did it on purpose, so that I can chmod it to executable
<joko> alright, I'll patch it manually then
<clever> no
<clever> rename it when you cp
<clever> cp $src ./whatever.bin
<clever> chmod +x whatever.bin
<clever> then make a patch against that now-constant name
<joko> clever: you're a wizard! it worked!
<lejonet> Mic92: lol, I think I did a stupid when I rebased my branch...
<clever> joko: also, you probably want to use unpackPhase rather then unpackCmd
<joko> clever: and avoid setting sourceRoot?
<clever> joko: oh, and the coreutils, no need to mess with PATH, just put coreutils into buildInputs
<Mic92> lejonet: ok, I am glad we did not break github.
<clever> joko: you still need to set sourceRoot, or make a directory you copy it to
<Mic92> at least not too much.
<clever> joko: nix will expect the unpackPhase to create exactly 1 directory, and auto-detect that as a sourceRoot
<lejonet> Mic92: now to find out how to revert it, man, my git skill is rusty
<Mic92> lejonet: git reflog might help you
<lejonet> Mic92: yeah, looking through that, just unsure how to parse it
<Mic92> lejonet: you can take a look at individual commits in git reflog with tig
<Mic92> just tig <commit>
<lejonet> Mic92: ah, will try that
<Mic92> tig is my favorite. I could not handle git without it.
<Mic92> you can also give it refs like HEAD@{2}
mt_caret_ has joined #nixos
<joko> clever: commands such as uname still cannot be found if I add coreutils into buildInputs
<lejonet> Mic92: think I managed to revert the rebase, but it still want tonnes of people to review it, how do I fix that?
mkoenig has quit [Remote host closed the connection]
<Mic92> lejonet: can you give the url again?
JosW has joined #nixos
<clever> joko: why does it say nativeBuild*Outputs* ?
<lejonet> so note to self, don't push rebases... :P
scribbler has joined #nixos
mkoenig has joined #nixos
<Mic92> lejonet: ah, sorry I messed your github handle up with: https://github.com/NixOS/nixpkgs/pull/34975
<Mic92> because also something strange happend there, I noticed last night
<lejonet> Mic92: hehe, no worries ^^ I was a bit worried that I had broken something, because that test ran fine and all, and when you said I made a typo I was "oh shit, but how did it run then?"
<joko> clever: LOL, my bad
<Mic92> lejonet: just add yourself to the maintainers file.
<nixer101> I am really interested how to get all options possible for "i18n.consoleFont" option. However, those are not packages and I can't find any question on the web about possible options/how to add more. Does someone use custom console fonts?
<viric> clever: is there any kind of fetchgitPrivate that would not require 'root'?
<lejonet> Mic92: ah right, should've figured that :P
<nixer101> if you would just give me direction where to look on the web, I would be really thankful!
<viric> It would be nice if we could use nix for non-system-wide public things (that is, /nix/store)
<clever> viric: thats why i have an issue open about adding ssh agent support to nix
<viric> clever: ah let me see.
<sphalerite> viric: you mean for public things that aren't system-wide, or non-public non-system-wide things?
knupfer has quit [Ping timeout: 268 seconds]
<viric> sphalerite: the 2nd
<clever> viric: basically, it would work the same as `ssh -A`, the daemon makes a listening unix socket inside the sandbox, and the nix-build process running as a normal user connects to the ssh agent normally
<sphalerite> hm, chroot stores sort of allow that?
<clever> viric: and nix will proxy it around to the right user
<viric> clever: I understand, but that's not enough
michas_ has quit [Ping timeout: 276 seconds]
nixer101 has quit [Quit: Konversation terminated!]
<viric> clever: I have a system used by more than one person, but we want isolation of data files, and not all of us to have root rights
nixer101 has joined #nixos
<viric> clever: and nix-build failures would be public in /tmp, or outcomes public in /nix/store
<clever> viric: ah, yeah, i see the issue
<clever> viric: nix 2.0 sort of allows that, with the --store stuff, but the resulting products are at the wrong path and cant just be ran
<viric> hm
<clever> viric: so you then need either some namespace magic (doesnt need root) or nix copy (needs root) to move the binaries into /nix/store
<clever> viric: i was actually planning on something today that would happen to solve your issue as well
<clever> viric: basically, i want to use nix-bundle to install nix into ~/nix/, without the normal mass-recompile issues
<nixer101> Does anyone know how to list all possible options for console fonts ("i18n.consoleFont")? Thanks!
<clever> and to make it very simple to install/manage
<sphalerite> nixer101: setfont --help, then look at the path it mentions at the bottom
<viric> clever: ah interesting
<nixer101> sphalerite: thank you very much!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #36159: esptool: 2.1 -> 2.3.1 (master...esptool) https://git.io/vAM4P
NixOS_GitHub has left #nixos [#nixos]
<clever> viric: with that, you could just namespace yourself into what is essentialy a single-user install like on debian, even if your on nixos
<viric> I don't know nix-bundle though
<sphalerite> nixer101: or you can give it any complete path to a font. I use a large terminus on one machine that I manage — i18n.consoleFont = "${pkgs.terminus_font}/share/consolefonts/ter-v32n";
<clever> viric: it lets you bundle the entire closure of a nix derivation into a single blob, much like the dell installer joko was packaging
<viric> I read about nix-bundle; clear. I don't know the dell thing
<nixer101> sphalerite: you should add this idea to description! thanks for sharing the tip!
<viric> clever: will --store reuse anything of /nix/store ?
* mfiano crosses fingers and updates to unstable
<sphalerite> viric: no. Although it can fetch from there if you use --substituters /
<viric> so easy?
<viric> no signing, just a path?
<nixer101> mfiano: I update only desktop packages to unstable currently :)
<mfiano> ha well it failed
<sphalerite> you might also need to add --no-require-sigs
<sphalerite> but basically, yes :)
<mfiano> no unstable for me
<sphalerite> how so?
<nixer101> mfiano: this line :: nixpkgs.config.packageOverrides = pkgs: { unstable = import <nixos-unstable> { config = config.nixpkgs.config; }; };
<nixer101> mfiano: then prepend any package with "unstable." like "unstable.mc"
<mfiano> sphalerite: here's the last bit of output https://gist.github.com/mfiano/daae4e14723dd0fc187c78bdfe836cc0
<nixer101> mfiano: need to #nix-channel --add nixos-unstable http://path-to-unstable though
<sphalerite> ruby? /me hides
nico202 has joined #nixos
<mfiano> nixer101: that's what i did
<Mic92> gchristensen: the answer from support was not too bad.
<mfiano> I don't use ruby. it's a transitive dependency
<mfiano> I guess unstable really is unstable
<nico202> Hi, a bit off-topic question, feel free to just ignore it, but I saw that mswatch is not in nixpkgs, so I was wondering if anybody here is using an imap idle client with mbsync/offlineimap
<nixer101> mfiano: oh, then buildlog?
<mfiano> huh?
<viric> does nix 2.0 work fine in 17.09?
<nixer101> mfiano: not really. The "palemoon" package in stable right now segfaults every 2 minutes and is 1 year old. But unstable version is rock solid.
<mfiano> nixer101: doesn't help that i can't even run unstable :)
<nixer101> oh, doomseeker failed to build. No zandronum for me :(
<lejonet> Mic92: there we go, I think I've fixed all my typos and screw ups now.. xD
<mfiano> Guess I'm stuck with the 6 month old stable until unstable actually lets me rebuild
pie_ has joined #nixos
zzamboni has quit [Quit: Leaving.]
knedlsepp has quit [Quit: Konversation terminated!]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<viric> why NIX_STORE_DIR and NIX_STATE_DIR are in two variables? Does it make any sense to change one and not the other?
<mfiano> It looks like this issue was fixed a week ago, any idea when it will be added to unstable?
<sphalerite> viric: it rarely makes sense to change either :p
<sphalerite> mfiano: if it's on master, it should be there Soon™
<viric> sphalerite: I want to use nix privately, for other users in the system not to see my files.
<sphalerite> so it should be on nixos-unstable-small already, nixos-unstable seems to be stuck though
<mfiano> sphalerite: nix-unstable was last updated 7 days ago too
<sphalerite> viric: yeah but a chroot store is preferable to using NIX_STORE_DIR/NIX_STATE_DIR since you can still use binary caches
<viric> sphalerite: that requires root
<sphalerite> no, just user namespaces
<clever> viric: mount namespaces can do a chroot without root
<viric> mm
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/glibc-2.27 995f3fb Shea Levy: acl: patchShebangs before build to avoid /bin/sh dependency....
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to glibc-2.27: https://git.io/vAMRW
<sphalerite> nix build --store ~ -f my/secret/stuff.nix
<viric> isn't that for nix 2.0?
<sphalerite> yes
<viric> I'm in nixos 17.09
<sphalerite> you can use nix 2.0 on 17.09
<clever> viric: funnily enough, 17.09 got 2.0 before master
<viric> AH ok
<viric> but as default?
<sphalerite> no
zzamboni has joined #nixos
rauno has joined #nixos
<viric> then I can go without nix-daemon, right?
<viric> are namespace mount defaults good enough so normal users have right to do that?
<sphalerite> yeah I think so
<sphalerite> and yes, unless you're on a nonstandard kernel
<clever> viric: the namespaces are just avaialble by default
<Dezgeg> unless you are on debian or arch and maybe others
<sphalerite> I think the hardened kernel might have it disabled?
michas_ has joined #nixos
<Dezgeg> ...or that
<sphalerite> but viric is on nixos 17.09
rardiol1 has joined #nixos
<sphalerite> Why is nixos-unstable actually stuck?
<gchristensen> Nope, pretty good actually mic92
vandenoever has quit [Ping timeout: 245 seconds]
ebzzry_ has quit [Read error: Connection reset by peer]
zzamboni has quit [Ping timeout: 256 seconds]
Thra11 has quit [Ping timeout: 268 seconds]
<mfiano> Is the --upgrade flag to nixos-rebuild the same as running nix-channel --update before or is there some other difference I'm not seeing?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAMRN
<NixOS_GitHub> nixpkgs/master 565f22d lejonet: nixos/ceph: init module (#35299)...
NixOS_GitHub has left #nixos [#nixos]
<Mic92> lejonet: landed
<lejonet> Mic92: yay!
<lejonet> Mic92: Big thanks for the help
<lejonet> srhb: Looki! ^
<srhb> lejonet: Awesome job! :D I've been following on the sidelines.
<Mic92> lejonet: so what you plan to do with ceph?
<viric> sphalerite: clever: what is the canonical way to have nix 2.0?
ebzzry_ has joined #nixos
<sphalerite> ♥ nixos.wiki loads no scripts from other domains
<clever> mfiano: yes
<sphalerite> viric: systemwide, nix.package = pkgs.nixUnstable I think
<lejonet> Mic92: atm, the plan is to mainly use it as a image backing store for a virtualised environment
<sphalerite> viric: per-user, nix-env -f '<nixpkgs>' -iA nixUnstable
<srhb> Mic92: And we're using it to back our container cluster with persistent storage.
<viric> sphalerite: ah I thought it was fancier
<srhb> Looking forward to Nixifying it
<Mic92> alright.
<lejonet> srhb: Thank you, and big thanks to you and infinisil for all the help in grasping nix :D
<clever> mfiano: it tries to be smart, and update less channels, but its basically the same
<srhb> lejonet: \o/
<mfiano> clever: Thanks
Thra11 has joined #nixos
<mfiano> So nixos-unstable is on its way to becoming stable since it's stuck and stable is almost up for its 6 month release
<sphalerite> lol
<sphalerite> when is 18.03 getting branched off?
<lejonet> Mic92: I'm going to see about working some more on the ceph package to make cephFS, a distributed, POSIX, filesystem backed by ceph, available too and the compilation of some helper scripts that weren't included now (ceph-deploy, ceph-volume and some more) that greatly simplifies the one-time setup of ceph daemons
<srhb> lejonet: Is ceph-deploy useful at all in a NixOS world?
phdoerfler has joined #nixos
<srhb> I mean, what's left to do aside from generating the bootstrap keys?
<lejonet> srhb: that is kindof what I'm going to see about evaluating
* srhb nods
<lejonet> srhb: well, the big part that neither the ceph package nor the service module can do is the one-time things, like osd new <uuid> <id> and osd/mon/mgr/mds --mkfs
<lejonet> As in, the actual prepping part of setting up the cluster
pie_ has quit [Ping timeout: 268 seconds]
<lejonet> ceph-deploy job is to do those things, from the little I've read about it
<lejonet> and ceph-volume is needed to be able to use bluestore instead of filestore
<lejonet> (amongst other things)
<srhb> lejonet: I've never used any of those to bootstrap a cluster.
nixer101 has quit [Quit: Konversation terminated!]
zzamboni has joined #nixos
<lejonet> srhb: me neither, but from glancing at the ceph-deploy docs and ceph-volume docs a quicky, it seems like atleast ceph-deploy can take some load of the complexity of setting up a node off
<srhb> But sure, sounds awesome!
<lejonet> sure, ceph-deploy could be replaced with appropriate nixops things BUT I've not found a way to do one-shot tasks with nixops :/
<srhb> lejonet: oneshot jobs and stateful locks are the only way I know
<clever> lejonet: create systemd units that run on startup, and create files somewhere, and if the file exists, do nothing
<srhb> lejonet: (echo 1 > /var/lib/thing/doneit)
<lejonet> because ceph-deploy is essentially just a provisioning tool that ssh and does the manual work for you :P
<lejonet> clever: but, but... that is so ugly! xD (yeah yeah, I know...)
<srhb> I'd prefer then unit for sure. Then I can also rerun it in an orderly fashion on only the nods I care about, if I must
<lejonet> Mhm, and its a likely possibility that I'll just look deeper at ceph-deploy, state that "well, nixops can do that for you" and leave it be
<srhb> lejonet: Looking back it looks like I used ceph-disk to provision the actual disks...
* srhb nods
<lejonet> srhb: ceph-disk is the predecessor to ceph-volume
<srhb> Ah, that explains then :)
<srhb> Then I withdraw my lack of confidence in it, but I'll keep it for ceph-deploy :-P
zzamboni has quit [Ping timeout: 256 seconds]
<lejonet> from what I've understod with ceph-volume, the main parts they've improved from ceph-disk is to have some more automagic so that the user doesn't have to supply all the details except the bare minimum and for the bluestore format
<srhb> lejonet: That was also possible in at least the latest versions of ceph-disk
<srhb> (As in, I only think I specified --whatever-flag-to-do-the-bluestore-thing)
Thra11 has quit [Quit: IRC for Sailfish 0.9]
<lejonet> srhb: ah, fancy that, then its probably just some more automagic that differs, and the fact that ceph-disk has been marked as deprecated in favour of ceph-volume
<srhb> Right. Doesn't matter much. It's a nice tool :)
<lejonet> Mhm
<lejonet> I'll have to dig a bit more in the cmake files to see what you need to give cmake to make it build ceph-volume atleast (because that is the only one that I can honestly say I miss from ceph-deploy and ceph-volume)
<lejonet> Because bootstraping a mon daemon wasn't time consuming or hard, and that you really only need to do once
<lejonet> whereas ceph-volume greatly simplifies adding more osd daemons, because that is a few more steps that would be nice to not have to do manually
<srhb> Yeah, and it would simplify things whether or not you have a system unit do it for you.
<lejonet> Mhm
jensens has joined #nixos
zzamboni has joined #nixos
mmercier has joined #nixos
<mfiano> clever: Do you have any resources for OpenZFS. Reading the Arch wiki and it seems a little too complex for me to get started
<mfiano> That was a ?
MercurialAlchemi has quit [Remote host closed the connection]
<clever> mfiano: ive only used zfs-on-linux variant, not the openzfs one
x1n4u has quit [Ping timeout: 276 seconds]
<sphalerite> mfiano: there's a series of tutorials for zfs on debian, most of which applies to nixos as well
<mfiano> Ah thanks
<sphalerite> … where was it
<disasm> nixos.wiki has some good documentation on setting up zfs on linux, but it's not openzfs
MercurialAlchemi has joined #nixos
x1n4u has joined #nixos
zzamboni has quit [Ping timeout: 268 seconds]
pkill9 has joined #nixos
<sphalerite> It's a great series. Instead of the first one just do boot.supportedFilesystems = ["zfs"]
<mfiano> Thanks
pie_ has joined #nixos
<srhb> Is there some reason I'm missing that makes this sensible? imports = [ { boot.kernelPackages = pkgs.linuxPackages_testing; } { boot.kernelPackages = pkgs.linuxPackages; } ];
oahong has quit [Ping timeout: 256 seconds]
<clever> srhb: i would expect that to error, what actually happens?
<srhb> clever: The opposite. I'm not sure which kernel you'll actually end up with though
<srhb> It builds at least.
<clever> srhb: it doesnt even have a type!!
<srhb> Glorious!
zzamboni has joined #nixos
<clever> srhb: since it lacks a type, nixos will run mergeAttrs over things
<clever> srhb: options occuring later in the sequence overwrite ones earlier, but options absent in the 2nd will let the 1st bleed thru, mixing kernel versions
<srhb> iow it's not sensible. That was my first feeling as well. :-)
<clever> no, that still merges, hmm
<clever> srhb: aha, uniq, line 308
<clever> srhb: i think it should be type = types.uniq types.attrs;
oahong has joined #nixos
phdoerfler has quit [Quit: Leaving.]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
coot has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
MP2E has quit [Remote host closed the connection]
spear2 has joined #nixos
iyzsong has joined #nixos
cinimod` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rvolosatovs opened pull request #36161: spotify: 1.0.70.399.g5ffabd56-26 -> 1.0.72.117.g6bd7cc73-35 (master...update/spotify) https://git.io/vAMgi
NixOS_GitHub has left #nixos [#nixos]
__Sander__ has joined #nixos
JonReed has joined #nixos
cinimod has quit [Ping timeout: 252 seconds]
mekeor has joined #nixos
katrms has joined #nixos
<JonReed> Why a package installs via "nix-env -iA nixos.python27Packages.pytorch", but it's not present in repl (`nix-repl '<nixpkgs>'`) and doesn't seem to be there when write a custom default.nix with in it `buildInputs` and run `nix-build` on that default.nix. The package was added 3 month ago, it seems.
<JonReed> I suspect it has something to do with channels, but I can't figure out how to debug it
<JonReed> Wouldn't nix-repl, nix-build, and nix-env use the same channel?
ma27 has joined #nixos
<cinimod`> I am trying to use my modified version of gsl
<sphalerite> JonReed: are you referrign to it as nixos.python27Packages.pytorch in nix-repl and your expression?
<cinimod`> patched-gsl = pkgs.gsl.overrideAttrs (oldAttrs: rec {
<cinimod`> src = /Users/dom/gsl;
<cinimod`> version = "2.6";
<cinimod`> doCheck = false;
<cinimod`> CFLAGS = "-DDEBUG -O2";
<cinimod`> });
<sphalerite> JonReed: basically — you don't want the nixos. bit
<cinimod`>
<sphalerite> cinimod`: please use a pastebin for that sort of thing
<cinimod`> Sorry
xcmw has joined #nixos
<sphalerite> cinimod`: http://nixpaste.lbr.uno/
<JonReed> No, I'm trying `nix-repl> python27Packages.pytorch`
asuryawanshi has quit [Ping timeout: 268 seconds]
<sphalerite> Anyway, I think you asked about this yesterday but then had to leave — did you see my response then?
<sphalerite> JonReed: that is odd. Could you run nix-info? (see topic)
<cinimod`> But it doesn't seem to be building my code
<katrms> hello, did any1 here manage to successfully install vboxguestadditions to nixos? I found this link which is few months old https://gist.github.com/cleverca22/85f6d2cd680139f7c6c8b6c2844cb132 but I'm not able to switch to it due to error: syntax error, unexpected IN, at /etc/nixos/virtualbox-guest.nix:87:11 I managed to fix one missing bracket, but not sure what's wrong in this case. any advice appreciated ;)
Neo-- has joined #nixos
<sphalerite> cinimod`: that looks like it's building it to me..?
<cinimod`> sphalerite: why isn't the version number different?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Kaali opened pull request #36162: wireshark: Add Darwin support (master...wireshark) https://git.io/vAMaC
NixOS_GitHub has left #nixos [#nixos]
<cinimod`> Also I deliberately put compilation errors in my code to check and the build succeeds suggesting that it is not picking up my code
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/14d54ce0e99 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<sphalerite> cinimod`: because the rec only applies within your set
sanscoeur has joined #nixos
kelleyNif has joined #nixos
<sphalerite> in fact the gsl expression doesn't contain version at all
<sphalerite> so you'd need to set name = "gsl-2.6" instead
<JonReed> sphalerite: I just installed `nix-info` via `nix-env -iA nixos.nix-info`. It's accessible when I run it from a terminal, but running `nix-shell -p nix-info`, says `undefined variable` :(
abcrawf has quit [Remote host closed the connection]
<JonReed> Is there a way to specify a channel for `nix-shell` specifically?
sanscoeur has quit [Ping timeout: 245 seconds]
freeman42x]NixOS has joined #nixos
<sphalerite> that is strange. nix-info's output should hopefully help though :p
<JonReed> sphalerite: Here is output from a terminal for nix-info http://lpaste.net/4400253213761077248
<cinimod`> sphalerite: if I change my source in src = /Users/dom/gsl;, should I expect to see it getting rebuilt?
nico202 has quit [Quit: Leaving]
<cinimod`> I get the right version now BTW with name = "gsl-${version}";
abcrawf has joined #nixos
<sphalerite> JonReed: you're on nixos 16.09? D:
<JonReed> sphalerite: Strange, I thought I upgraded it. Everything is incredibly weird. I think it reads wrong info for some reason
<JonReed> sphalerite: It says channels(jon): nixos-18.
<sphalerite> JonReed: anyway, it looks like you've got some user channel vs root channel confusion going on there. Try removing your user channel (nix-channel --remove nixos) and updating the root one (sudo nix-channel --add https://nixos.org/channels/nixos-17.09 && sudo nix-channel --update)
phdoerfler has joined #nixos
Rusty1_ has joined #nixos
<sphalerite> thing is, it's a really awkward UI — only root's channels matter most of the time
<sphalerite> the user's are only brought in through ~/.nix-defexpr which only nix-env uses.
<sphalerite> It's terrible UX which will be hopefully be elegantly fixed by the new UI once it's complete :)
<cinimod`> Shouldn't I even get a fail because of mis-matched SHAs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #36163: deepin: add meta package for the Deepin Desktop Environment (DDE) (master...new.deepin) https://git.io/vAMVE
NixOS_GitHub has left #nixos [#nixos]
<cinimod`> Forget that
<cinimod`> I have no SHA
<sphalerite> cinimod`: what behaviour are you expecting and what are you observing?
<JonReed> sphalerite: Thanks! I think I would have stumbled in the dark on my own for a while. It really helped that you explained this.
<cinimod`> I was expecting that if I changed the code then nix would recompile it
<cinimod`> But I don't see that
<sphalerite> JonReed: glad I could help :) you'll also want to run nixos-rebuild boot and reboot your system since it was very out of date
ebzzry_ has quit [Ping timeout: 240 seconds]
<sphalerite> cinimod`: what *is* it doing?
<cinimod`> E.g. I deliberately introduce a compilation error but see no failure
rindvieh has quit [Remote host closed the connection]
<mfiano> sphalerite: You ever figure out why unstable is stalled?
<sphalerite> mfiano: https://hydra.nixos.org/build/69269923 it's strange because it's shown as a failure but the log looks jhust fine
jensens has quit [Ping timeout: 276 seconds]
<mfiano> I see a couple errors in the log
jensens has joined #nixos
<sphalerite> mfiano: yeah, but they don't seem to be critical failures as the build just continues
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cinimod`> sphalerite: here's my shell.nix
pie_ has quit [Ping timeout: 245 seconds]
xcmw has joined #nixos
rosa has quit [Quit: rosa]
<sphalerite> cinimod`: you still haven't answered my question — what *does* it do?
<mfiano> sphalerite: I have a big problem
<mfiano> I can't add any channel now, not even stable
<mfiano> Not sure what to do. error: file ‘nixpkgs/nixos’ was not found in the Nix search path (add it using $NIX_PATH or -I)
ebzzry_ has joined #nixos
<cinimod`> Oh sorry
<mfiano> I can't rebuild my config either anymore :(
<cinimod`> I changed a file in gsl/ode-initval but the build claims there is nothing to do
<sphalerite> cinimod`: that would explain it
<sphalerite> cinimod`: importing it into the store destroys the timestamps
<sphalerite> so make doesn't recognise that the stuff is out of date
<cinimod`> Oh so make says there is nothing to do
<sphalerite> yep
<cinimod`> How do I coax nix to rebuild?
<cinimod`> Create a SHA?
<sphalerite> so you either need to rebuild it yourself in a nix-shell before importing it, or make sure not to include the build products when importing it
<sphalerite> the latter would be done using builtins.filterSource
<sphalerite> the former is probably easier
<cinimod`> I am not experienced enough to do either
<sphalerite> cinimod`: the former is just a matter of running make in ~/gsl before running nix-shell
<cinimod`> So build outside of nix?
rauno has quit [Remote host closed the connection]
<sphalerite> yes, or you could clean up ~/gsl (make clean)
<sphalerite> then it will do the full build in nix
<sphalerite> mfiano: check your NIX_PATH?
<mfiano> My nixos is totally screwed. not even a reboot fixed the bad state the unstable failure left my system in
<cinimod`> Sadly the build is a bit more complicated
blankhar1 has quit [Quit: WeeChat 1.9.1]
<cinimod`> It creates a Makefile using something autoconf
<sphalerite> mfiano: can't you boot into a previous generation?
<sphalerite> cinimod`: probably best to clean it completely then using git clean if it's a git repo
<mfiano> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<sphalerite> anyway, I need to get going
<sphalerite> mfiano: maybe sudo nix-channel --rollback can fix stuff for you?
<cinimod`> Thanks for helping
<mfiano> sphalerite: nope
lord| has quit [Quit: WeeChat 2.0.1]
<mfiano> Oh rolled back 2 more times fixed it i think
<mfiano> i wonder what happened
JonReed has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zzamboni has quit [Quit: Leaving.]
coot has quit [Ping timeout: 248 seconds]
<gchristensen> please register your votes on the Nix Core Team RFC: https://github.com/NixOS/rfcs/pull/25
kai_w has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36145: mkvtoolnix: 20.0.0. -> 21.0.0 (master...mkvtoolnix) https://git.io/vA1rJ
NixOS_GitHub has left #nixos [#nixos]
rindvieh has joined #nixos
chessai has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36159: esptool: 2.1 -> 2.3.1 (master...esptool) https://git.io/vAM4P
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rindvieh has quit [Ping timeout: 256 seconds]
<WilliamHamilton> vaibhavsagar: hi, I have a question about ihaskell: is there a way to start ihaskell in the current cabal project, so that i can import all the dependencies and the modules in the text files? (using nix, ideally modifying the `shell.nix` file)
adisbladis has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 183c360 Dominic Steinitz: No longer needed and causes confusion
<NixOS_GitHub> [nixpkgs] peti pushed 3 new commits to master: https://git.io/vAM6f
<NixOS_GitHub> nixpkgs/master 56f1785 Peter Simons: Merge pull request #36157 from idontgetoutmuch/master...
<NixOS_GitHub> nixpkgs/master d1ac8d1 Dominic Steinitz: Merge branch 'master' of https://github.com/NixOS/nixpkgs
chaker has joined #nixos
<mfiano> Has anyone here tried both systemd and grub efi boot managers?
<chaker> Hey, is there a way to get the derivation from a store path??
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #36164: pgmanage: fix build (release-17.09...fix-pgmanage) https://git.io/vAM62
NixOS_GitHub has left #nixos [#nixos]
<vaibhavsagar> WilliamHamilton: oops, it seems like you have a slightly different question about dependencies
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAM6y
<NixOS_GitHub> nixpkgs/master 504bf92 Vincent Laporte: ocaml: 4.06.0 -> 4.06.1
NixOS_GitHub has left #nixos [#nixos]
<vaibhavsagar> I don't know how to get the list of dependencies out of a cabal project in Nix, but if you know how to do that it should be failry straightforward?
ryantm_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 452f9ca Maximilian Güntner: geckodriver: use devel version with slog fix...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMiv
jensens has quit [Ping timeout: 276 seconds]
<WilliamHamilton> vaibhavsagar: thanks, the file for the advent challenge illustrates how to use a predefined list of libraries, which is also very useful; let me think a minute about extracting dependencies from a cabal file: what immediately comes to mind would be calling a bash script over the output of `cabal2nix`
<Izorkin> How to fix error ? - "nix build -f /home/user/mypack/ mariadb.server --store /temp" - querying info about missing pathserror: cloning builder process: No space left on device
<clever> Izorkin: are you inside a container?
<Izorkin> clever: no
<Izorkin> physical server
<vaibhavsagar> WilliamHamilton: The interesting line is the one at the end where I `import ./lib`, which is its own cabal project
<clever> Izorkin: how much free ram?, any swap?
<WilliamHamilton> vaibhavsagar: right, I missed that! (lib is also the name of the cabal library in that line)!
<WilliamHamilton> vaibhavsagar: by the way, a question: how does the version in nixpkgs differ from the `release.nix` in the ihaskell repo? How would I pass the list of packages in the nixpkgs version?
ebzzry_ has quit [Read error: Connection reset by peer]
rindvieh has joined #nixos
<vaibhavsagar> WilliamHamilton: maybe you could use `callCabal2nix` and then `getHaskellBuildInputs`: https://github.com/NixOS/nixpkgs/blob/452f9ca8eff7ab8d55998b005caf2f22e39d9abc/pkgs/development/haskell-modules/lib.nix#L298-L300
<mfiano> Hmm, the memtest86 boot option just freezes the boot manager forever and i have to force a physical reboot. Any idea how I can test my new ram?
<gchristensen> huh: grahamc@Morbo> nix-shell -p kwalletcli
<gchristensen> mkdir: cannot create directory ‘/home/grahamc/__nix_qt5__/bin’: File exists
<srid> For a week now I've been unable to use nixos-unstable due to libglvnd failing to compile: https://github.com/NixOS/nixpkgs/issues/36165 ... since 18.03 is approaching I thought I'd report it again here in IRC.
<clever> gchristensen: thats a bug in the qt setup hooks, it creates a directory on startup, and assumes it doesnt already exist, because nix starts all builds in a fresh dir
<vaibhavsagar> WilliamHamilton: I'm not sure what you mean about nixpkgs in IHaskell, I've tried to make it so that you can pass in your own copy of nixpkgs like I do in my advent-of-code example
<clever> gchristensen: nix-shell breaks that assumption, you have to rm -rf the dir after closing the shell
<gchristensen> clever: wow :o
x1n4u has quit [Ping timeout: 276 seconds]
<gchristensen> clever: yeah but I don't want to close the shell because I want to have two shells with k* stuff in it
<clever> gchristensen: or launch each shell in a unique directory
coot has joined #nixos
coot has quit [Remote host closed the connection]
<gchristensen> I did, but it still writes to my $HOME
xcmw has joined #nixos
<WilliamHamilton> vaibhavsagar: sorry, what I meant is that in the nixos package collection, there is a `ihaskell-with-packages` that you can install with `nix-env -iA nixos.ihaskell`. I wandered what's the difference with the `release.nix` in your repo
x1n4u has joined #nixos
<Izorkin> clever: this is bug?
<WilliamHamilton> vaibhavsagar: in your advent of code example, how do you install the top-level default.nix? `nix-build`?
<WilliamHamilton> vaibhavsagar: or is there any way to use it with nix-shell?
<vaibhavsagar> WilliamHamilton: the one in IHaskell is more regularly updated
<vaibhavsagar> and yes, `nix-build`
<vaibhavsagar> I'm not aware of a way to use it with `nix-shell`
<WilliamHamilton> callCabal2nix seems useful; I struggle to see what does that function return, though
jensens has joined #nixos
<srid> I think this needs to be re-opened for a possible regression: https://github.com/NixOS/nixpkgs/pull/35420
mekeor has quit [Remote host closed the connection]
silver has joined #nixos
<vaibhavsagar> WilliamHamilton: it builds a haskell project without any .nix files in it
<vaibhavsagar> by calling cabal2nix and then `pkgs.callPackage`ing the result
<JosW> Whoo 800+ inside here :)
<vaibhavsagar> Nix is lit yo
<clever> Izorkin: maybe
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 6b05a22 Robin Gloster: mysql57: fix build with gcc7...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMXo
<WilliamHamilton> vaibhavsagar: so would it build the package even if I only want to use getHaskellBuildInputs on it, or does it build only the derivation?
<vaibhavsagar> WilliamHamilton: that's a good question, I suspect it might work without building the package
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36120: mpc-qt: init at 17.11 (master...new.mpc-qt) https://git.io/vAXgx
NixOS_GitHub has left #nixos [#nixos]
<lejonet> is there any neat way of telling nixops/nixos/something else to enforce a user/group id change? I know I could "ugly hack" it with a find command and some hacking in /etc/passwd and /etc/group
<WilliamHamilton> vaibhavsagar: I'm trying out how to write the corresponding expression with nix-repl :D
<srid> $ sudo nix-channel --update
<srid> ^^ is there a reason why that is not fetching the latest?
<srid> https://nixos.org/channels/nixpkgs-unstable actually redirects to 18.03pre129991
<makefu> yep
alexteves has joined #nixos
<vaibhavsagar> WilliamHamilton: if that doesn't work try haskellSrc2nix
<clever> srid: what does sudo nix-channel --list say?
<symphorien> srid: you are probably on nixos-unstable, not nixpkgs-unstable
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #36166: pgadmin: fix build (release-17.09...fix-pgadmin3) https://git.io/vAM1u
NixOS_GitHub has left #nixos [#nixos]
<srid> clever: oh that's true.
<srid> clever: what's the difference between the two? nixpkgs-unstable contains a fix i'm looking for.
<srid> symphorien: yup
<clever> srid: you must never run nixos from the nixpkgs-unstable channel
<clever> srid: that is how you break things
<Izorkin> clever: need create issue?
<clever> Izorkin: if you can document how to reproduce the issue, sure
<srid> clever: what if I want just one package ('glm' in this case) from nixpkgs-unstable?
<srid> how'd I do that?
<clever> srid: you can do (import <nixpkgs-unstable> {}).glm in your configuration.nix
<clever> srid: and as long as the channel is named nixpkgs-unstable in --list, it will be safe to use on nixos, and the above snippet will find it
<avn_> srid: glm is really bad example, because it header only. And work only with modern compilers
ma27 has quit [Quit: WeeChat 2.0]
michas_ has quit [Ping timeout: 240 seconds]
goibhniu has quit [Ping timeout: 245 seconds]
ma27 has joined #nixos
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36035: stfl: 0.22 -> 0.24 (master...auto-update/stfl-0.22-to-0.24) https://git.io/vAP1h
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36021: skrooge: 2.10.5 -> 2.11.0 (master...auto-update/skrooge-2.10.5-to-2.11.0) https://git.io/vAP1o
NixOS_GitHub has left #nixos [#nixos]
tomsen_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMMO
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 5e5e38f Ryan Mulligan: scanbd: 1.4.4 -> 1.5.1...
<srid> avn_: well i'm trying to fix https://github.com/NixOS/nixpkgs/issues/36165
<mfiano> clever: Any reason to use LVM in a single-disk desktop machine that doesn't need to be encrypted?
<srid> clever: thanks. trying now ... but getting `error: file ‘nixpkgs-unstable’ was not found in the Nix search path`. i did the override in configuration.nix, and have that channel in nix-channel ...
<avn_> srid: already fixed in master
Itkovian has quit [Ping timeout: 245 seconds]
<clever> mfiano: id just skip lvm in that case
szicari has joined #nixos
<avn_> so you can use master, or backport fix if you want it on 17.09
<srid> avn_: but not in nixos-unstable
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36011: sawfish: 1.12.0 -> 1.12.90 (master...auto-update/sawfish-1.12.0-to-1.12.90) https://git.io/vAP1L
NixOS_GitHub has left #nixos [#nixos]
<avn_> srid: you can cherry-pick commit from master (but be ready for libreoffice rebuild)
<symphorien> srid: sudo nix-channel --add <url> nixpkgs-unstable
07IACLCET has joined #nixos
<07IACLCET> [nixpkgs] globin closed pull request #36006: s3cmd: 1.6.1 -> 2.0.1 (master...auto-update/s3cmd-1.6.1-to-2.0.1) https://git.io/vAPXy
07IACLCET has left #nixos [#nixos]
07EAA02W2 has joined #nixos
<07EAA02W2> nixpkgs/master 8a10de3 Ryan Mulligan: s3cmd: 1.6.1 -> 2.0.1...
07EAA02W2 has left #nixos [#nixos]
<07EAA02W2> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMME
<srid> symphorien: that's exactly what I did: `sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erikarvstedt opened pull request #36167: untrunc: init at 2018.01.13 (master...untrunc) https://git.io/vAMMz
NixOS_GitHub has left #nixos [#nixos]
<symphorien> did you nix-channel --update ?
<srid> Oh I needed to run update
<srid> symphorien: ya!
<symphorien> that's somewhat misleading
<symphorien> nix-channel --add might print the hint
<symphorien> "don't forget to update..."
<srid> it is still using the old glm
<srid> I did specify `unstable.glm` in environment packages, but it looks like the nvidia driver is using the old glm
<symphorien> in your screenshot there is a syntax error
<symphorien> there is no = between allowUnfree and true
<avn_> symphorien: is incompatibility of glm with old compilers
<avn_> 6.4/7.3 required (and I highly recommend 7.3)
<clever> srid: adding it to systemPackages wont recompile anything to use it
<symphorien> to override libs as used by other derivations, do
<srid> adding `glm = (import <nixpkgs-unstable> {}).glm;` in override ...
<symphorien> packagesOverride = pkgs: { glm = what you want ;}
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36110: ccache: 3.3.5 -> 3.4.1 (master...fix-ccache) https://git.io/vAPFu
NixOS_GitHub has left #nixos [#nixos]
<avn_> srid: what release of nixos you actually use?
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36168: a single version attribute for expressions previously using "majorVersion" (master...majorminor) https://git.io/vAMMN
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sternenseemann opened pull request #36169: spotify: 1.0.70.399.g5ffabd56-26 -> 1.0.72.117.g6bd7cc73-35 (master...spotify) https://git.io/vAMMj
NixOS_GitHub has left #nixos [#nixos]
<srid> symphorien: it seems to be working :)
<srid> avn_: `"NixOS 18.03pre127921.9b25b9347d9 (Impala)"`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36002: rosegarden: 17.04 -> 17.12.1 (master...auto-update/rosegarden-17.04-to-17.12.1) https://git.io/vAPXa
NixOS_GitHub has left #nixos [#nixos]
<srid> w00t, successfully upgraded
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36001: root: 6.10.08 -> 6.12.06 (master...auto-update/root-6.10.08-to-6.12.06) https://git.io/vAPX0
NixOS_GitHub has left #nixos [#nixos]
Andros has joined #nixos
<avn_> srid: and looking to issue you posted, it not related to libglvnd, is a glm issue
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMDc
<NixOS_GitHub> nixpkgs/master 52f0402 Ryan Mulligan: rocksndiamonds: 4.0.0.2 -> 4.0.1.1...
NixOS_GitHub has left #nixos [#nixos]
<srid> true
reinzelmann has quit [Quit: Leaving]
ryanartecona has joined #nixos
mizu_no__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35996: remotebox: 2.2 -> 2.4 (master...auto-update/remotebox-2.2-to-2.4) https://git.io/vAPXn
NixOS_GitHub has left #nixos [#nixos]
chessai has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35995: reiser4progs: 1.1.0 -> 1.2.1 (master...auto-update/reiser4progs-1.1.0-to-1.2.1) https://git.io/vAPXZ
NixOS_GitHub has left #nixos [#nixos]
pie_ has joined #nixos
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35988: radarr: 0.2.0.910 -> 0.2.0.980 (master...auto-update/radarr-0.2.0.910-to-0.2.0.980) https://git.io/vAPPL
NixOS_GitHub has left #nixos [#nixos]
mizu_no__ has quit [Client Quit]
ebzzry_ has joined #nixos
jensens has quit [Ping timeout: 256 seconds]
afics has quit [Quit: afics]
<Izorkin> clever: not work with hardened profile
afics has joined #nixos
afics has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMSZ
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 09c5762 Ryan Mulligan: rabbitvcs: 0.16 -> 0.17.1...
raynold has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35984: qmidiroute: 0.3.0 -> 0.4.0 (master...auto-update/qmidiroute-0.3.0-to-0.4.0) https://git.io/vAPih
NixOS_GitHub has left #nixos [#nixos]
afics has joined #nixos
<clever> Izorkin: ah, that can break a number of things
chessai has quit [Remote host closed the connection]
coot has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35975: praat: 5.4.17 -> 6.0.37 (master...auto-update/praat-5.4.17-to-6.0.37) https://git.io/vAPia
NixOS_GitHub has left #nixos [#nixos]
sanscoeur has joined #nixos
orivej has joined #nixos
jensens has joined #nixos
<tnks> because I'm doing something out of the box sharing /nix among Docker containers, I've been very careful about having only one nix-daemon up per /nix volume.
<tnks> but is nix-daemon written in such a way that it should be safe to have multiple instances running?
sanscoeur has quit [Ping timeout: 252 seconds]
<tnks> sorry, that's not what I mean.
<tnks> would it be safe to have one process use the daemon, but another process not.
<clever> tnks: it uses .lock files in the store to manage most exclusive access
xcmw has quit [Ping timeout: 245 seconds]
<clever> tnks: and root can already safely do things without talking to the daemon
MercurialAlchemi has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] roelvandijk opened pull request #36170: opencv: flag to enable tbb (master...feat-opencv-tbb) https://git.io/vAMHo
NixOS_GitHub has left #nixos [#nixos]
<ryantm> gchristensen: Does OfBorg not handle attr paths with underscores? https://github.com/NixOS/nixpkgs/pull/35993#issuecomment-369613420
<Baughn> I recall one of the big improvements with Nix 2.0 was supposed to be progress bars, and I do see some of them, but...
<Baughn> I'm not getting any from `nix build`. Is that expected?
<gchristensen> ryantm: it does, see how the request with underscores properly built
<gchristensen> ryantm: it also handles them just fine with dashes, but that isn't a valid package name, see the changed list of attributes here: https://gist.github.com/GrahamcOfBorg/1c26721450d3b5cc61b1be63970e882e
* Baughn meanwhile rebuilds his entire system in order to revert the iptables 1.6.2 upgrade. ... ..why?
endformationage has joined #nixos
<Baughn> `nix why-depends -f ~/dev/nix-system/nixos system iptables -I nixos-config=`pwd`/configuration.nix` -- Oh, that's why.
<Mic92> Baughn: you can just add your patched version into systemPackages.
<Mic92> depending on what you want to fix.
<Baughn> Mic92: Kubernetes doesn't work with 1.6.2.
cement has joined #nixos
<Baughn> And while possibly I could patch it just there, I'd rather not have a version skew.
<Baughn> My machine is built for this sort of job anyway. 32 threads should make short work of `make world.`
<Mic92> Baughn: the kernel should handle this
erasmas has joined #nixos
<Mic92> but if you have enough power, you can also make your NixOS a Gentoo.
Drakonis has joined #nixos
<Baughn> Heh. Yes.
leat has quit [Ping timeout: 252 seconds]
<Baughn> It's an argument I regularly use with gentoo users. "It's like Gentoo, but better!"
<Baughn> Usually after they've broken their system badly enough to make them reinstall, for the Nth time.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36171: gecode_3: use bash to run "configure", fix error (master...fix/gecode_3) https://git.io/vAMQo
NixOS_GitHub has left #nixos [#nixos]
<Baughn> That said...
<Baughn> error: imported archive of ‘/nix/store/sh4115d65hwnan8hlx5wi18lkm2bvaky-nixexprs.tar.xz’ lacks a signature
<Baughn> why-depends lacks an 'ignore the lack of signature' option. :/
cnu- has quit [Ping timeout: 265 seconds]
<Mic92> Baughn: it should have one
<tnks> clever: awesome, that's what I was hoping.
cnu- has joined #nixos
<Mic92> Baughn: --no-check-sigs might work
<Mic92> you have to be a trusted user in nix though
<Baughn> Unrecognised flag. And nothing's listed in --help.
<Baughn> I was able to work around it by using a local checkout of nixpkgs.
<Baughn> It's a bit early to use it, I suppose. Looks good though.
nutzer17 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35993: readosm: 1.0.0b -> 1.1.0 (master...auto-update/readosm-1.0.0b-to-1.1.0) https://git.io/vAPXt
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35992: re2c: 0.16 -> 1.0.3 (staging...auto-update/re2c-0.16-to-1.0.3) https://git.io/vAPXT
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Remote host closed the connection]
Willi_Butz has quit [Ping timeout: 256 seconds]
<ryantm> gchristensen: Oh, sorry. I misread it.
<Mic92> Baughn: does the iptables upgrades result in compile time error or is it triggered at runtime?
<globin_> ryantm: a number of the hashes of updated packages from sourceforge seem to be wrong on my machine
<Mic92> globin_: hopefully it is not just html.
<globin_> ryantm: could you check https://github.com/NixOS/nixpkgs/pull/35969 for instance
<Baughn> Mic92: Runtime. The kubernetes test doesn't catch it, but it breaks kube-proxy so basically nothing works.
<ryantm> globin_: sure, like re-fetch the hash and rebuild it?
<Mic92> Baughn: maybe you can open an issue and ping offline
<Baughn> ryantm: It's Sourceforge. I'd be suspicious, and look at the diff.
alunduil_ has quit [Ping timeout: 256 seconds]
<Baughn> They've served malware in the past.
<Baughn> (Binary, not source. As if that makes it any better.)
rindvieh has quit [Remote host closed the connection]
<Mic92> Baughn: we mostly build from source though.
<Baughn> Mic92: My point is, it's not unthinkable that they've graduated to interfering with the source.
* Baughn avoids SF if possible.
<Mic92> Baughn: the owner of sourceforge was changed lately.
<Baughn> Sure.
<clever> Baughn: your `lacks a signature` error is because the nix-daemon is too old for the client
<gchristensen> how the heck is ofborg building it then :/
asuryawanshi has joined #nixos
<clever> gchristensen: the store caches a lot of things
<Baughn> clever: Ah. Is that also the cause of the lack of progress bar?
<Baughn> Hmm...
<clever> Baughn: possibly
<clever> Baughn: nix.package = pkgs.nixUnstable;
<Baughn> I will try.
tomsen_ has quit [Quit: Lost terminal]
<Baughn> *nod*
rindvieh has joined #nixos
jensens has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMde
<NixOS_GitHub> nixpkgs/master 798fb57 Ryan Mulligan: phraseapp-client: 1.4.5 -> 1.6.0...
NixOS_GitHub has left #nixos [#nixos]
ottidmes has joined #nixos
<ryantm> globin_: If I try to build wiht the 1grh hash, I get some error about the zip file being malformed https://gist.github.com/ryantm/d76af295bade0692556ae136fd4d792f
asuryawanshi has quit [Remote host closed the connection]
<Baughn> Wat.
<clever> ryantm: run "file" on that zip file
<Baughn> `sudo nixos-rebuild` changed the ownership of one files in the .git tree I was building from.
asuryawanshi has joined #nixos
<gchristensen> gchristensen: sorry that was to globin_ and ryantm
<gchristensen> ... c
<gchristensen> clever: sorry that was to globin_ and ryantm
<Baughn> Let's see if that happens again... no. Hmm.
<globin_> ah lol sourceforge is down
<gchristensen> classic
<globin_> we're only getting html back %)
<clever> globin_: a tip, nix leaves the .zip file in the store after the hash check fails
<ryantm> Yes, HTML.
<clever> globin_: read its contents, before assuming the hash it gave is valid
<clever> also, ive seen a similar problem months ago, there was a timestamp in the 404 page
<globin_> clever: yeah I should have expected that with sourceforge
<clever> so every time the user fixed the hash, it changed
xcmw has joined #nixos
<fearlessKim[m]> sourceforge moved their datacenter, and apparently they have been ddosed since then (according to its technical president on vim mailing list)
<Baughn> clever: That was why. Now the progress bar works. :)
<Baughn> As well as signatures.
<clever> Baughn: nice
<ottidmes> clever: That reminds me, how can I then make sure Nix uses that already downloaded file. I have one package that downloads for like 400MB and needs to be updaten fairly often, kinda annoying to redownload. I remember I asked about this in the past, but never got a "user friendly" solution
<clever> ottidmes: either nix-prefetch-url first, or use one of the new-ish nix flags, let me find it
<Baughn> ottidmes: If you're willing to use alpha software, `nix add-to-store` does it.
<robstr> after installing nix on a different machine i get permission denied of nix.sh . While installation script was running, it told me to do a chmod -m 0755 /nix and a chown is there something wrong ?
<joepie91> ottidmes: I fixed this with a fetchfile thingem
<joepie91> which is a massive hack
<joepie91> but it works well
<joepie91> one sec
<ottidmes> clever: Yeah, the nix-prefetch-url or nix-store --add (or something) would be those that I do not consider "user friendly" because the URL is often generated by the package, so I would have to reverse engineer the URL, or let it start download, abort immediately, etc.
<joepie91> ottidmes: https://gist.github.com/joepie91/b43bbb6161f8e97e2c03718c44779b68 -- note that it expects a *store* hash, as in, the hash in the store path; you get this by adding it to the store an initial time
<gchristensen> Mic92, asking for executive summaries, way to go :D
<clever> ottidmes: nix-prefetch-url also accepts an attr path i believe
<clever> ottidmes: nix-prefetch-url '<nixpkgs>' -A hello.src
<joepie91> ottidmes: (prison architect expression is an example use)
<joepie91> ottidmes: I use this locally for packaging proprietary stuff, which lives elsewhere on my filesystem
<ottidmes> joepie91: Thanks, I will check that out :)
<joepie91> essentially it uses the copy in the store if it exists, and if not, it automatically re-adds it to the store before using it
<joepie91> but there's absolutely zero guarantee that this will continue to work in future versions of Nix, it exploits very specific runtime behaviour :)
<ottidmes> clever: Oeh, never knew that, that solves the coming up with the URL problem
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMbJ
<NixOS_GitHub> nixpkgs/master 5286e30 Ryan Mulligan: pioneer: 20171001 -> 20180203...
ryanartecona has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mic92> gchristensen: time to add more hierarchies in nixpkgs to decide things faster.
<gchristensen> Mic92 for president
<Baughn> robstr: We'll need a little more info. Can you paste the output of nix.sh as well as `ls -ld /nix`?
<ottidmes> joepie91: Your code is the way I expected Nix to behave in the first place, recheck what you already have first, and only then redownload
zzamboni has joined #nixos
<Mic92> gchristensen: no please :)
niksnut_ is now known as niksnut
<joepie91> ottidmes: I mean, it basically does that for fetchurl, sort of - it's just that the downloaded sources get rm'ed on every garbage collect
<ottidmes> Baughn: Technically it is 18-03 today, so I will try your suggestion first I think. I guess that is the one clever meant with "new-ish nix flags"
<Baughn> ottidmes: Most likely.
<dtz> hey so uh is it just me or do qt5(.10) apps no longer work? :(
<joepie91> ottidmes: it's the same here; it re-adds the local sources to the store after every garbage-collect, it just doesn't require redownload because they're on your local FS already
<Aleksejs> Hello, this question was asked here 4 months ago according to logs but there was no answer: does nixos support widi (wireless display connection)?
rauno has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35960: pgroonga: 1.1.9 -> 2.0.2 (master...auto-update/pgroonga-1.1.9-to-2.0.2) https://git.io/vAPKO
NixOS_GitHub has left #nixos [#nixos]
<Baughn> Aleksejs: Doesn't seem to be packaged.
<Mic92> gchristensen: I think the nix needs this core team, so we can cut down bikeshedding.
<ottidmes> joepie91: I do not mind that, I have to manually intervene anyway to fix the sha at that point. If I am going to use your solution, I would probably use combine clever's suggestion with yours, then it is no longer dependent on the current behavior.
<gchristensen> Mic92: I look forward to your approval on https://github.com/NixOS/rfcs/pull/25 :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vAMNB
<NixOS_GitHub> nixpkgs/master 87d8026 Ryan Mulligan: freecell-solver: 4.8.0 -> 4.16.0...
NixOS_GitHub has left #nixos [#nixos]
muzzy_ has quit [Ping timeout: 252 seconds]
hyper_ch2 has quit [Quit: Page closed]
leat has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
coot has quit [Quit: coot]
<joko> I have a shell script in a Nix string which uses ${var}, is it possible that Nix does not try to parse var as a Nix variable?
ebzzry_ has quit [Read error: Connection reset by peer]
<Baughn> clever: I notice the parallelism could be better. Most of the time I'm only building 15-20 packages at once, despite configuring for 32.
<gchristensen> ''${var} joko
<Baughn> The job scheduler probably isn't optimized for maximizing parallelism.
<joko> gchristensen: merci
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36144: hg-git: 0.8.10 -> 0.8.11 (staging...hg-git-0.8.11) https://git.io/vA1aR
NixOS_GitHub has left #nixos [#nixos]
<Baughn> Think I'll take a poke at that this weekend. Should be fun.
<clever> Baughn: also, it refuses to begin a download until all the dependencies of that item are done downloading
<Baughn> clever: That's a different problem. I'm not blocked on any downloads atm.
Willi_Butz has joined #nixos
<gchristensen> joko: de rien
<viric> clever: I can't make ssh-auth-sock with "--store".
<viric> work with
<clever> viric: if you run strace on the ssh agent, do you see a connection coming in?
goibhniu has quit [Ping timeout: 240 seconds]
goibhniu has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b568a7c673f (from 16 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<viric> clever: I have a "ls $SSH_AUTH_SOCK" that fails in my script
<viric> clever: I don't know how to put it in the user namespace
<viric> ls: cannot access 'blablabla': No such file or directory
<clever> viric: the env vars are cleared
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36164: pgmanage: fix build (release-17.09...fix-pgmanage) https://git.io/vAM62
NixOS_GitHub has left #nixos [#nixos]
<clever> and i think my trick relies on /tmp being shared
<viric> clever: I pass it through NIX_PATH
<viric> clever: /tmp is not shared in the user namespaces. /tmp is clear in the build process
<clever> youll need to share something then, and put the ssh agent socket there
<viric> I don't know how to share with the user namespaces
sanscoeur has joined #nixos
rogue_koder has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] WilliButz opened pull request #36175: grafana: 4.6.3 -> 5.0.0 (master...grafana-update) https://git.io/vAMxj
NixOS_GitHub has left #nixos [#nixos]
<viric> --extra-sandbox-path does not help...
<viric> --option extra-sandbox-path
<avn_> viric: or you need deploy key (bad side -- it will be in store)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35665: rssguard: 3.5.5 -> 3.5.6 (master...rssguard-3.5.6) https://git.io/vAoIW
NixOS_GitHub has left #nixos [#nixos]
<viric> I'm in "--store ~" already
peacememories has joined #nixos
sanscoeur has quit [Ping timeout: 240 seconds]
<viric> "--store" is not in the manual...
iyzsong has quit [Ping timeout: 256 seconds]
<avn_> I have intention to add it into nixpkgs, but it permanently underdebugged
muzzy_ has joined #nixos
<viric> avn_: well I can do something more hardcoded. That your thing is for a passwordless key
<viric> I need to add an impurity to a --store user namespace. niksnut, shlevy?
<avn_> viric: yep, is for passwordless deploy-only keys. Or feel free extend it with reading some more keys from /etc/....
<niksnut> viric: --sandbox-paths?
<viric> niksnut: I can't get them to work
<viric> niksnut: ah well, --option sandbox-paths I used.
<avn_> actually my code allow to pass arbitrary options to underlying ssh
<avn_> so you can for example hardcode ssh socket here, and use --sandbox-paths then
<niksnut> viric: that's the same
<shlevy> viric: all options with the new command line allow changing to a flag. so --store is in the manual as --option store
<viric> niksnut: oh I used sandbox-path. singular. all the time.
<viric> niksnut: thank you!
<viric> shlevy: ahh great. thank you. That explains why I was not finding --store.
<viric> (in the manual)
nutzer17 has quit [Quit: WeeChat 1.6]
zzamboni has quit [Read error: Connection reset by peer]
<viric> I can't find how to make nix build not trim to the last X log lines
pie_ has quit [Remote host closed the connection]
<aminechikhaoui> nix log should show the full log after the failure
<viric> just "nix log"?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36174: php70: 7.0.27 -> 7.0.28 (master...php-7028) https://git.io/vAMx6
NixOS_GitHub has left #nixos [#nixos]
<viric> I see that in release notes.
ryantm_ has quit [Ping timeout: 248 seconds]
<niksnut> no, you have to specify the derivation
<viric> Is there a way to get the oldstyle output?
<niksnut> no
<niksnut> there is an issue about that
<viric> do you mean a github issue, or that there is a problem to bring that back?
<niksnut> github issue :-)
<viric> aah :) good. I can't really tell whether it will be more helpful, by now
<niksnut> probably we should have an option to disable to progress indicator
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #35675: nasm: 2.13.02 -> 2.13.03 (staging...nasm-minor-update) https://git.io/vAodF
NixOS_GitHub has left #nixos [#nixos]
rindvieh has quit [Remote host closed the connection]
shabius has joined #nixos
rindvieh has joined #nixos
<viric> mpf. /nix/store/qqv45akr154xxgmra5lnp873njcxkp98-stdenv/setup: ./configure: /bin/sh: bad interpreter: No such file or directory
<viric> niksnut: nix-shell in nix 2.0 has the old output
<viric> (with --store I lack /bin)
rosa has joined #nixos
<niksnut> viric: yes, only "nix" has the new interface
<niksnut> viric: btw, Nix now has a builtin default /bin/sh (from busybox)
<viric> but not nix-shell I see
<niksnut> so the default for sandbox-paths should be something like /bin/sh=/nix/store/abqplkiy4mm70kg92wn97dgayj99a8m8-busybox-1.27.2/bin/busybox
<niksnut> also nix-shell
<viric> I have a recipe with "ls -l /", and there is no /bin
<niksnut> however, your nix.conf may override the default sandbox-paths
pie_ has joined #nixos
<viric> nix-shell with --store $HOME, and ls -l / does not show /bin
rosa has quit [Client Quit]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<niksnut> it has nothing to do with nix-shell
<viric> hm then?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vADvC
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8d3aa2f Robin Gloster: ocamlModules.biniou: fix build
ryanartecona has quit [Quit: ryanartecona]
<viric> if I use --option sandbox-paths "$HOME/tmp /bin", I get /bin/sh with a symlink to /nix/store/... but No such file or directory either
shabius has quit [Quit: Leaving]
<viric> niksnut:
<viric> lrwxrwxrwx 1 nobody nobody 63 Mar 1 13:54 sh -> /nix/store/d35bzzf17lnmx52bgys6m4h4xai3i869-bash-4.4-p12/bin/sh
<viric> ls: cannot access '/nix/store/d35bzzf17lnmx52bgys6m4h4xai3i869-bash-4.4-p12/bin/sh': No such file or directory
<viric> (1st is ls /bin, 2nd is ls of the readlink of sh)
<niksnut> try --sandbox-paths /bin/sh=/nix/store/abqplkiy4mm70kg92wn97dgayj99a8m8-busybox-1.27.2/bin/busybox
muzzy_ has quit [Ping timeout: 276 seconds]
orivej has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
digitus has joined #nixos
michael1 has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
mmercier has quit [Ping timeout: 252 seconds]
ThatDocsLady has joined #nixos
<michael1> hi, hope it's not a too silly question. I'm trying to start 5 instances of a templated systemd unit. can't figure out where this would go in the config :I.
<michael1> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.16, channels(root): "nixos-17.09.3094.211309626af", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<dtz> using either --sandbox-paths X or --option sandbox-paths X, seeing same?
<dtz> $ nix run -f channel:nixos-17.09 coreutils --store $HOME/test-store --option sandbox-paths /bin/sh=/nix/store/9h8hqpns8ingdisqgybzdfv9dg8f80kv-busybox-1.28.1/bin/busybox -c ls -l /bin/sh
<dtz> lrwxrwxrwx 1 nobody nogroup 63 Mar 1 16:48 /bin/sh -> /nix/store/9xg3d7r173zzybgh8v4lhf3zcf0wx51g-bash-4.4-p12/bin/sh
chaker` has joined #nixos
<dtz> presumably that'd work with nix-build though
<dtz> doesn't look like nix-run uses sandbox paths. Not sure if it's supposed to or not :)
chaker has quit [Ping timeout: 256 seconds]
<maurer> Is just issuing a PR the correct response to requesting a downgrade of a package which has had a regression? (jbuilder got upgraded 1.0-beta14 to 1.0-beta18, and my group is still verifying, but it looks like beta17 or beta18 broke final link for a number of projects)
<dtz> lol: `nix-store --store $HOME/test-store -r /bin/sh`
<dtz> 😁
<maurer> er, s/response to requesting/way to request/g
<Baughn> maurer: Yes.
<Baughn> I mean, you could file a bug, but PRs are faster.
coot has joined #nixos
martt has joined #nixos
<martt> Does anyone know how I can specify the initial private IP address of an AWS machine deployed via NixOps?
JosW has quit [Quit: Konversation terminated!]
chaker`` has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
chaker` has quit [Ping timeout: 256 seconds]
TweyII has quit [Ping timeout: 276 seconds]
chaker``` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Synthetica9 opened pull request #36176: Spotify: 1.0.70.399 -> 1.0.72.117 (master...spotify-1.0.72.117) https://git.io/vADTI
NixOS_GitHub has left #nixos [#nixos]
FRidh has quit [Remote host closed the connection]
chaker`` has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] veprbl opened pull request #36177: fix Xpdf on darwin (master...xpdf_fixes) https://git.io/vADTd
NixOS_GitHub has left #nixos [#nixos]
cinimod` has quit [Ping timeout: 256 seconds]
<ottidmes> martt: https://nixos.org/nixops/manual/#opt-networking.privateIPv4 maybe?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] babariviere opened pull request #36178: bear: fix LD_PRELOAD error (master...master) https://git.io/vADTj
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> martt: Combined with https://nixos.org/nixops/manual/#opt-deployment.ec2.usePrivateIpAddress maybe?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Sander__ has quit [Quit: Konversation terminated!]
ebzzry_ has joined #nixos
<mfiano> When I do `nix-env -qa`, what would cause every line to be listed twice?
ambro718 has joined #nixos
<martt> ottidmes: no, that just gets me that it was already defined in some file that was deleted after the error message (not a good idea).
<ottidmes> martt: Hmm, that is unfortunate, then someone more knowledgeable about nixops would have to help you, I just starting using for my local machines
<martt> FRidh: do you know anything about nixops and specifically setting a private ip at boot?
<martt> (in AWS)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #36179: exa: fix build on darwin (master...exa-darwin) https://git.io/vADkb
NixOS_GitHub has left #nixos [#nixos]
lsix has quit [Quit: WeeChat 1.9.1]
sonarpulse has joined #nixos
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 1aae247 Vincent Laporte: exa: fix build on darwin
<NixOS_GitHub> nixpkgs/master d482caf Jörg Thalheim: Merge pull request #36179 from vbgl/exa-darwin...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vADI3
NixOS_GitHub has left #nixos [#nixos]
cinimod` has joined #nixos
cinimod` has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 6967498 babariviere: fix LD_PRELOAD error for bear
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dtzWill pushed 2 new commits to master: https://git.io/vADIX
<NixOS_GitHub> nixpkgs/master 6a5cc4f Will Dietz: Merge pull request #36178 from babariviere/master...
pxc1 has joined #nixos
scribbler has quit [Ping timeout: 240 seconds]
judson has joined #nixos
<judson> I'm trying out nixos.nixStable2 - first blush is very positive. I'm over the moon for `nix search`.
<judson> But `man nix` fails, even though it fetched a man package during install.
<judson> My MANPATH includes ~/.nix-profile/share/man
rindvieh has quit []
rardiol1 has quit [Remote host closed the connection]
<ottidmes> Judson: This is just hearsay, but I heard someone say that the manpage of the new nix is not yet published
<judson> ottidmes, Thanks. If it's a known issue, okay.
hotfuzz_ has joined #nixos
chaker``` has quit [Ping timeout: 260 seconds]
<WilliamHamilton> a question on the structure of nixpkgs: I'm trying to use this function https://github.com/NixOS/nixpkgs/blob/452f9ca8eff7ab8d55998b005caf2f22e39d9abc/pkgs/development/haskell-modules/make-package-set.nix#L171-L175 in the repl
<WilliamHamilton> but builtins.typeOf pkgs.haskell.lib.makePackageSet = "lambda"
cinimod` has joined #nixos
<judson> zimbatm, is there an update to the direnv stdlib for nix 2 yet?
hotfuzz has quit [Ping timeout: 240 seconds]
jensbin has joined #nixos
jensbin has quit [Client Quit]
<judson> (because the new nix-env output is unintelligible as is)
sanscoeur has joined #nixos
<WilliamHamilton> so I have no way of getting to `pkgs.haskell.lib.makePackageSet.developPackage` without giving the right arguments to makePackageSet first. But _what_ are the right arguments?
<WilliamHamilton> and how should I know that?
coot has quit [Quit: coot]
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/159a021bd83 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
cinimod` has quit [Ping timeout: 260 seconds]
<judson> WilliamHamilton if you *just* want developPackage, you only need to feed in the arguments that will get into its closure.
martt has quit [Ping timeout: 260 seconds]
<judson> My hamfisted approach would be to build a little expression that builtin.trace'd the output of developPackage, and let the errors guide me :/
<WilliamHamilton> Judson: thanks, but I cannot call developPackage, I'm trying to pass some arguments to makePackageSet to even _get_ to developPackage
<judson> So, I'd `let pkg = makePackageSet {}; pkg.developPackage { whatever }`
ambro718 has quit [Quit: Konversation terminated!]
<judson> It's complain that you need "buildPackages", so you find a buildPackages to give it.
<judson> Iterate from there.
<judson> Since makePackageSet receives a set, you can look for other calls and crib from there.
<WilliamHamilton> I mean, from the beginning of the file nixpkgs/pkgs/development/haskell-modules/make-package-set.nix I gather that I should pass a set with { buildPackages ...} and a `self` argument
<judson> My guess is that most of those fields will have pretty standard values.
statusbot has joined #nixos
<judson> Yeah. I think for your purposes, I'd start with an identity function for self
<judson> ps: ps
kitemikaze has joined #nixos
<WilliamHamilton> Judson: thanks, the process is starting to make more sense; related question, how do I discover the "standard values" you're referring to? For example, I'm quite sure that there should be a buildPackages function somewhere in nixpkgs, but how do I tell where?
<judson> So, you could probably use haskellPackages instead of rolling your own
reinzelmann has joined #nixos
xcmw has quit [Ping timeout: 252 seconds]
<judson> Also: https://search.nix.gsc.io/?q=makePackageSet&i=nope&files=&repos= is Graham's Nixpkgs Hound instance
<WilliamHamilton> indeed, pkgs.haskellPackages.developPackage is properly defined
<WilliamHamilton> so I guess the general pattern here is: if I need something fully applied, I should check if it's fully applied somewhere already
<judson> One instinct I'm still trying to hone: usually it's much easier than it at first appears in nixpkgs
<judson> That's my advice, yes
<WilliamHamilton> Judson: what's a nixpkgs hound instance? Does it do more than grepping nixpkgs?
<gchristensen> it uses trigrams for a search index, and is tuned for code, and keeps it all in memory I think
<gchristensen> so it is fast and searches (almost) every repo under the nixos organization on github
<judson> It's super fast and covers multiple repos.
drakonis_ has joined #nixos
humanoyd has quit [Quit: WeeChat 2.0.1]
<WilliamHamilton> perfect, thanks!
<judson> It does what you'd do to find things, but it's primed to do it in <1sec instead of the few minutes it takes to look here and there
<judson> Also helps reduce the lamppost effect
<joepie91> (it's also not useless like github's own search :P)
pxc has quit [Ping timeout: 240 seconds]
<joepie91> it's actually quite irritating how github says it has found the 'first N matches' with no indication whether there are any more
<joepie91> makes it totally pointless for exhaustive searches...
Drakonis has quit [Ping timeout: 256 seconds]
Tobba has quit [Read error: Connection reset by peer]
tmaekawa has joined #nixos
<gchristensen> yeah, and how github doesn't even bother searching slightly large files :)
asymmetric has joined #nixos
michael1 has quit [Quit: WeeChat 2.0.1]
tmaekawa has quit [Quit: tmaekawa]
<WilliamHamilton> let's say I get an output of a derivation in nix-repl. What tools are there to examine the structure of this derivation? I can `less $derivationPath` but it seems there could be a better way
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson> WilliamHamilton: You want to know Nix's dependency tree, or you want to see the contents of the package on the filesystem?
ThatDocsLady has quit [Read error: Connection reset by peer]
<WilliamHamilton> simpson: I'm interested in both, I'm trying to solve an unrelated problem and I don't quite know what I may need
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<simpson> $(nix-store -q) can tell you many things about any path in the store.
zzamboni has joined #nixos
<simpson> To examine the filesystem, check out tools like `tree` or `find`.
Mateon3 has joined #nixos
asymmetric has quit [Quit: Leaving]
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<WilliamHamilton> simpson: is there a way to pretty-print a derivation?
<tnks> the new `nix search` command will do OR with the "|" operator, but what about AND?
<simpson> WilliamHamilton: Probably, but I've never needed to do it, so I don't know how.
xcmw has joined #nixos
<judson> tnks it's a regex - so 'x.*y' - possibly 'x.*y|y.*x'
<judson> ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #36180: [WIP] pythonPackages.astropy: fix build (staging...astropy) https://git.io/vADOS
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has quit [Quit: Leaving.]
coot has joined #nixos
<niksnut> WilliamHamilton: 'nix show-derivation' in 2.0
ryanartecona has joined #nixos
hask_bee_3 has joined #nixos
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
kelleyNif has joined #nixos
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
scribbler has joined #nixos
<sphalerite> tnks: yeah, I'm planning to make a PR for that eventually... just to have it so if you specify multiple search terms if gives you the intersection of the results
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markus1189 opened pull request #36181: spotify: 1.0.70 -> 1.0.72 (master...spotify) https://git.io/vADse
NixOS_GitHub has left #nixos [#nixos]
scribbler has quit [Ping timeout: 245 seconds]
FRidh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erikarvstedt opened pull request #36182: rsbep-backup: init at 2010.06.14 (master...rsbep-backup) https://git.io/vADst
NixOS_GitHub has left #nixos [#nixos]
<zimbatm> Judson: I haven't planned to update it quite yet. I think it should be a direnvrc override for now to test it out
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] pSub deleted nasm-minor-update at 0e064cf: https://git.io/vADsS
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub closed pull request #36166: pgadmin: fix build (release-17.09...fix-pgadmin3) https://git.io/vAM1u
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] thanegill opened pull request #36183: airtame 3.0.1 -> 3.1.1 (master...airtame-3.1.1) https://git.io/vADGL
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has quit [Client Quit]
[0x4A6F] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] danielfullmer opened pull request #36184: avrbinutils: 2.26 -> 2.30 (master...avrbinutils-2.30) https://git.io/vADGR
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vADGw
<NixOS_GitHub> nixpkgs/master 9f4b1ee Eelco Dolstra: blender: 2.79 -> 2.79a
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 810dd0f Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vADGP
<hask_bee_3> Is anyone here running NixOS on Linode.com ?
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/14d54ce0e99 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
scribbler has joined #nixos
shabius has joined #nixos
fragamus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] etu opened pull request #36185: Upgrades of some userspace utils for PHP (master...php-utils-upgrades) https://git.io/vADZH
NixOS_GitHub has left #nixos [#nixos]
katrms has left #nixos [#nixos]
muzzy_ has joined #nixos
<nocoolnametom> @hask_bee_3 I am running it on a Linode as a test of the process, but it's a few months old and I put it together before Linode included docs on how to get it running.
<hask_bee_3> ok
<hask_bee_3> unfortunately no official support yet
<nocoolnametom> So it's not a professional installation by any means, more proof of concept. It's just running a few websites and znc.
<hask_bee_3> but it just should work using the docs
<nocoolnametom> Right, there's no image provided, but there's a page in the docs on installing it.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 4z3 closed pull request #31445: bash-completion: allow lazy loading where possible (master...bash-completion) https://git.io/vFgT5
NixOS_GitHub has left #nixos [#nixos]
reinzelmann has quit [Quit: Leaving]
kelleyNif has joined #nixos
cfricke has joined #nixos
<elvishjerricco> is it possible to ask Nix to delete stale links in gcroots without performing a GC?
<sphalerite> elvishjerricco: nix-store --gc --max-freed 0 I think
<sphalerite> or nix-store --delete
scribbler has quit [Read error: Connection reset by peer]
<elvishjerricco> sphalerite: `nix-store --delete` worked perfectly. Thanks
scribbler1 has joined #nixos
kelleyNif has quit [Client Quit]
kelleyNif has joined #nixos
knupfer has joined #nixos
zzamboni has quit [Quit: Leaving.]
scribbler1 is now known as scribbler
muzzy_ has quit [Ping timeout: 240 seconds]
chpatrick has joined #nixos
<chpatrick> FRidh: wrapPythonProgramsIn doesn't seem to set PYTHONPATH despite what the comment says https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/python/wrap.sh#L69
kelleyNif has quit [Quit: Leaving.]
<sphalerite> Mic92: thanks for the rust aarch64 fix!
<Mic92> sphalerite: I also broke it initially :)
<Mic92> cargo atleast
<Mic92> at least
<sphalerite> who cares, you fixed it :D
kelleyNif has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erikarvstedt closed pull request #36182: rsbep-backup: init at 2010.06.14 (master...rsbep-backup) https://git.io/vADst
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has quit [Client Quit]
kelleyNif has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Neo-- has quit [Ping timeout: 260 seconds]
jensens has joined #nixos
muzzy_ has joined #nixos
sigmundv__ has quit [Ping timeout: 240 seconds]
ifoo has joined #nixos
ifoo is now known as Guest22635
<Guest22635> is there a tool for changing settings in configuration.nix from the command line?
<sphalerite> Guest22635: vim? :D
<roconnor> I constantly dream of writing such a tool.
<Guest22635> sphalerite: i was thinking of a more scriptable option :)
<simpson> emacs~
<Guest22635> alternatively, is it possible to provide templates/presets to nixos-generate-config?
<simpson> Obviously, the right thing to do is JSON config with jq~
<simpson> How many machines are you setting up?
<roconnor> Guest22635: are you aware of configuration.nix's require attribute? It might be handy for whatever you are trying to do.
<ma27> gchristensen: whoa, your RFC has so many approvals, the sidebar behaves weird on my 24" screen. It seems as we really start breaking GitHub :-D
<gchristensen> #BreakTheInternet
<sphalerite> ma27: s/start/continue/
rardiol1 has joined #nixos
<sphalerite> roconnor: requires? I only know about imports, what's the difference?
<gchristensen> ma27: can you get a screenshot of the broken sidebar? :)
<roconnor> requires is a little like import, but it is configuration.nix specific and lets you override attributes and make recursive definitions between modules and whatnot.
<gchristensen> ma27: if yes, I'll put in my "wall of fame" folder
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36167: untrunc: init at 2018.01.13 (master...untrunc) https://git.io/vAMMz
NixOS_GitHub has left #nixos [#nixos]
<roconnor> s/requires/require/
<Guest22635> roconnor: sounds interesting. thx
<roconnor> I use it extensively. I have require = [ ./hardware-configuration.nix ./ledger.nix ./ssh.nix ./security_updates.nix ./radeon.nix ];
<sphalerite> roconnor: what's the difference from imports?
<sphalerite> oh whoops
<sphalerite> derp
<sphalerite> but imports lets you do the same thing
johnw_ has quit [Changing host]
johnw_ has joined #nixos
johnw_ is now known as johnw
<sphalerite> overriding attributes and recursive definitions
<roconnor> not really import's behavour is essentially cutting and pasting abstract syntax in place.
muzzy_ has quit [Ping timeout: 256 seconds]
Soni has joined #nixos
<Soni> can we get p2p package managers?
<Soni> not like torrents, more like append-only package repos
[0x4A6F] has quit [Ping timeout: 276 seconds]
Tobba has joined #nixos
<Soni> packages are individually signed and the repo itself is also signed, preferably with different keys
<Soni> there's a whole chain-of-trust model around it much better than standard mirrors
<roconnor> Soni: I think robust determinstic builds are a prerequisite, though this is debatable.
<Soni> ppl can run full mirrors or partial mirrors, where full mirrors download whole repos and partial mirrors are end-user oriented
<sphalerite> roconnor: I think you're thinking of (import ./foo) as opposed to imports = [./foo];
<roconnor> yes
<roconnor> sorry
<sphalerite> Soni: feel free to implement it :p
<Soni> (also https://gist.github.com/SoniEx2/10bea99cf403c953071fb9d8db715e67 is my WIP project for something like it)
<gchristensen> Soni: you can already mirror individual NARs from cache.nixos.org just fine without violating the chain of trust of Nix
<roconnor> um IIRC imports is deprecated and require is the replacement
<Soni> gchristensen: nobody keeps their mirrorlist up-to-date
<roconnor> or I'm backwards and I'm seriously out of date.
<Soni> I know I don't
<gchristensen> what is mirrorlist?
<simpson> Soni: What, exactly, would you like to see changed about Nix?
<gchristensen> !m simpson
<[0__0]> You're doing good work, simpson!
<sphalerite> roconnor: as far as I can see, everything in nixpkgs uses imports
<roconnor> ;_;
<Soni> I want it to be p2p
07IACLEMP has joined #nixos
07IACLEMP has left #nixos [#nixos]
<07IACLEMP> nixpkgs/master 1e4763f Elis Hirwing: phpPackages.phpcbf: 2.6.0 -> 3.2.3...
<07IACLEMP> [nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/vADl6
<07IACLEMP> nixpkgs/master 8061a9a Elis Hirwing: phpPackages.phpcs: 2.6.0 -> 3.2.3...
<07IACLEMP> nixpkgs/master 82c884f Elis Hirwing: phpPackages.php-parallel-lint: 0.9.2 -> 1.0.0
07EAA05DF has joined #nixos
<07EAA05DF> [nixpkgs] Mic92 closed pull request #36185: Upgrades of some userspace utils for PHP (master...php-utils-upgrades) https://git.io/vADZH
07EAA05DF has left #nixos [#nixos]
<sphalerite> Soni: there's the nix-ipfs project
<Soni> mirrors should just be p2p nodes which pull in and reseed the whole repo
<Soni> and I want it to be able to saturate gigabit links
<sphalerite> we don't have mirrors at all atm really
<gchristensen> Soni: I don't see the value proposition at all, and "I want it to be p2p" isn't really selling it very well to me :P
<roconnor> Guest22635: Sorry, it seems I mean "imports" and not "requires". I'm using "requires" because I'm 10 years out of date.
<simpson> Soni: After an initial bootstrap, Nix is as P2P as its source repositories, and there are active efforts to improve availability of those sources by internalizing mirrors in Nix fetchers.
<Soni> mainly I wanna be able to saturate gigabit links so updates happen at gigabit speeds
<Soni> it's most useful with binary repos
<gchristensen> Soni: Where in the World is Soni PackageUser?
hask_bee_3 has quit [Quit: Textual IRC Client: www.textualapp.com]
<sphalerite> roconnor: close enough :D
<simpson> roconnor: Gotta bill yourself an 'early adopter'~
<gchristensen> Soni: (where are your servers?)
<Soni> I have no servers :D
<Soni> or easily accessible gigabit links, either...
<gchristensen> you're not selling me on this very well :P
<simpson> Soni: Right now, how fast are your Nix downloads from cache, and how fast do you want them to be?
<Yaniel> and no peers either I guess
<Soni> I just like seeding things
<gchristensen> oh cool
<Soni> I use torrents for sharing screenshots, I seed all distro ISOs I can, etc
<Soni> I would like to help seed a whole repo
<Soni> but I can't do that with standard mirroring technology aka rsync
<sphalerite> the nix-ipfs effort sounds like the best thing to address your wants. Not sure how that's goign though
<Soni> I need p2p
<gchristensen> fair enough
<Soni> and I prefer dat over ipfs but any p2p would do
<simpson> Soni: $ git clone https://github.com/NixOS/nixpkgs
<Soni> github isn't p2p
<simpson> git is decentralized. Make your clone and then share it widely.
<gchristensen> I think a route that could work would be (1) each time the channel updated, a fetcher downoladed all the NARINFO and NAR files and started seeding torrents for them all. then an http-to-whatever proxy converted requests for <narinfo> to the actual NAR
<Soni> PLEASE DON'T USE TORRENTS FOR THIS
cinimod` has joined #nixos
<gchristensen> OK I WON'T
<Soni> it's extremely inefficient
<Soni> you want full repos, not individually packaged torrents
<gchristensen> well I assure you, almost everybody who has mentioned any sort of p2p nix cache project has been even more inefficient than torrents
<Soni> basically you wanna put 100 packages in the same "torrent"
<Yaniel> because *that* is efficient
<Soni> see: dat, the protocol, not the client
<gchristensen> I'm not sure there is a good reason to put 65TB in to a single torrent, that seems inefficient
<sphalerite> fpletz: (asking you because you're the first member listed for the nixipfs org on github) is anyone actively working on it? or is it more of a side project for those involved?
<Soni> gchristensen: the idea is that you can download torrents in parts
<gchristensen> Soni: I know how torrents work
<gchristensen> sphalerite: my understanding is ipfs can't handle the write traffic
<simpson> Soni: We already know what we want. What do *you* want from Nix here? (I'm pretty sure that you don't actually use Nix, but I'm willing to go with it.)
<sphalerite> aww :(
<FRidh2> chpatrick: it actually injects directly to sys.path in the script that is "wrapped"
<Soni> it's much faster to download parts from known peers than find peers for a different torrent
muzzy_ has joined #nixos
<Mic92> Soni: how scaleable is dat these days. When I talked with the dat people. They told me I should wait until it would become usuable for datasets like nixpkgs.
<Soni> Mic92: don't use the JS client.
<gchristensen> yes, these distributed system things seem to have a tough time handling the number of nars we would be uploading
<Mic92> Soni: we failed to use ipfs also.
<Soni> it works ok if you have repos well-separated, e.g. system-critical things in one repo, something else in another repo, etc
<gchristensen> but please can you answer simpson's question?
<Soni> where repos are like, dat URIs?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Soni> aka keys
<Soni> each key can be a repo, basically
cinimod` has quit [Ping timeout: 256 seconds]
<Mic92> Soni: fpletz was also working on rsync mirrors instead
<sphalerite> Soni: nix has support for creating binary caches, with small metadata (narinfo, which includes the signature), and the actual data living in separate files (nars). If you can magic together a solution for sharing the nars p2p please do. If you're just here to complain that we don't have it I would personally appreciate if you could go somewhere else
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #36187: Cross-compiled NixOS (staging...cross-nixos) https://git.io/vAD4J
NixOS_GitHub has left #nixos [#nixos]
<Soni> simpson: I want a completely p2p OS where users can opt-in to contributing and full mirrors can also be set-up
<Soni> but without having a mirrorlist that the user needs to configure and maintain. it should configure itself
<Soni> and p2p is all about configuring itself
<simpson> Soni: Okay, what parts of Nix are not "completely P2P" and how would you see it fixed?
<Soni> all you should have is a repo list, and it should find the closest peers
<gchristensen> we have that already
<gchristensen> cloudfront is a master pointer to the mirror list, and it automatically routes you to the nearest peer
<Soni> can it saturate gigabit links?
<Soni> if not, it's not p2p
<Yaniel> no, http is designed to never use more than 56kbps
<Yaniel> regardless of the number of concurrent connections
<gchristensen> oh I see, p2p _MUST_ be able to saturate gigabit links or it isn't p2p
<Soni> p2p must be able to trust untrusted peers
<gchristensen> the nix cache design can use untrusted peers
<Soni> so like I should be able to just run a peer and it'll just work and automatically join the peer network
<gchristensen> well you can run a client, it is 50% as good
<simpson> I've had Nix saturate a gigabit link in Google Cloud before. During the update, my SSH latency spiked to multiple seconds at a time.
<Mic92> Soni: show me that it can scale for binary cache and we can speak about it.
<BlessJah> I need some help understanting piece of nix: https://github.com/NixOS/nixpkgs/blob/master/nixos/default.nix#L1
<BlessJah> `import ./lib/from-env.nix "NIXOS_CONFIG" <nixos-config>` returns a path, how can `configuration` be called in line 15?
<muzzy_> I did hear some talk about Nixos using IPFS (p2p file system) to distribute its packages, although I haven't seen much development on this
<gchristensen> Soni: yes, the binary cache can already saturate gigabit links
<Soni> Mic92: I can saturate work connection (it's not *quite* gigabit because nobody in the area actually sells gigabit, but 100Mbps (100Mbps on TCP, not 100Mbps on the wire) is a lot) with torrents so I assume p2p routing algorithms are good enough nowadays
<ottidmes> BlessJah: It is not being called, it is just a list of 2 paths
<Mic92> Soni: no, I meant it should not be kept be busy with distributing metadata of all the package without delivering any content.
<BlessJah> ottidmes: oh, then I need to pass path there?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erikarvstedt reopened pull request #36182: rsbep-backup: init at 2010.06.14 (master...rsbep-backup) https://git.io/vADst
NixOS_GitHub has left #nixos [#nixos]
fragamus has joined #nixos
<ottidmes> BlessJah: Juxtaposition in the contexts of lists represents elements (i.e. whitespace is used to separate lists), while elsewhere it is interpreted as function application, hence the confusion
coot has quit [Quit: coot]
<Soni> Mic92: the metadata should be stored immediately adjacent to the content, and the file list should preferably be rebuilt every so many updates so you can grab it all (or most of it) in one go
<ottidmes> BlessJah: I am not quite sure what you intent to do, but if you just want to pass the configuration, you can just assign the configuration attribute as an argument: import <nixpkgs/nixos> { configuration = /path/to/config; };
<Mic92> Soni: the scripts for ipfs are there. Show me some benchmarks, what the noice ratio is, if you add the binary cache without delivering any files.
sigmundv_ has joined #nixos
<gchristensen> Soni: in a small test I was able to reach 1,400mbps. We have tried multiple file distribution mechanism and they all fail under the weight of how big our distribution is. please drop it until you have proof that they can sustain 100,000 files added twice weekly
muzzy_ has quit [Ping timeout: 268 seconds]
<Soni> gchristensen: let me guess do you actually put ALL YOUR PACKAGES in the same repo?
<BlessJah> ottidmes: thanks!
Soni has left #nixos [requested by gchristensen (Soni)]
Soni has joined #nixos
<Soni> or do you put the binary data unpacked in the repo, rather than packaging it in a package?
<Soni> because that's not how p2p is meant to work
<gchristensen> let's take this to #nixos-p2p
<Soni> you're supposed to go decentralized, not centralized
<Soni> ok
sigmundv__ has joined #nixos
<Soni> there's nobody there
<gchristensen> oh well
<simpson> I'm there, but mostly just so that I can have popcorn moments.
<simpson> Soni: Maybe you should *try* Nix before requesting that it be made better. We have a way of doing things that, while imperfect, is oriented around our unique approach to package management.
<sphalerite> Soni: maybe because nobody cares :)
<Soni> anyway, you're supposed to have separate repos, maintained by separate ppl, all completely distributed. users should trust whoever they want to. there should be no central repository that needs to handle the data from over 9000 concurrent packagers.
<gchristensen> Soni: please don't tell us what we're supposed to do
xcmw has joined #nixos
<Soni> you're supposed to do that if you want any chance of having p2p work
<Soni> it's called sharding
<simpson> Soni: Please feel free to show us your patchset for decentralizing nixpkgs. Or try Nix overlays.
<ottidmes> BlessJah: So that line you linked is just the default, giving priority to the NIXOS_CONFIG env var or else taking nixos-config from the NIX_PATH, you can also pass it a Nix expression representing the config instead of a file, since it is just passed to imports, and in imports you can give both paths and expressions representing modules
<gchristensen> Soni: I'm going to ban you soon if you continue on this approach
<simpson> ...Wait, am *I* the good cop today? That's kind of backwards.
<sphalerite> hahaha
<Mic92> Soni: you should work on your marketing pitch. I am not sold
<BlessJah> ottidmes: that'd complicate what I want to do, gimme few moments to think about it
<Soni> I've been trying far too long to get a p2p package manager, so ofc I'm skeptical
<simpson> Then try before you buy. Nix with nixpkgs can be used in single-user mode next to most other distros, and uninstalling is easy.
<ottidmes> BlessJah: If you could explain what you are trying to do, maybe I could think along?
<Soni> basically I want mastodon for package managers, but without any of the (centralized) DNS bits
<gchristensen> maybe you should start #sonios
<BlessJah> ottidmes: I want to put #!/usr/bin/env nix-build on top of iso.nix (https://nixos.wiki/wiki/Creating_a_NixOS_live_CD#SSH)
<ottidmes> BlessJah: Or were you the one asking about using #! to allow calling ./iso.nix
<ottidmes> BlessJah: Ah so you were!
<BlessJah> How did you guess that?
<Soni> ok so let me try something hmm...
<Soni> in this system, you're supposed to have separate repos, maintained by separate ppl, all completely distributed.
<Soni> emphasis on "in this system"
<ottidmes> BlessJah: You asked about it a few days ago. I actually tried to make it work today, since I am curious as well, to see what the limits are of the nix tools, but unfortunately I have not yet been able to figure out a solution. I got close though, I think
<BlessJah> 1 # nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix
<BlessJah> 4 (import <nixpkgs/nixos> { configuration=./iso.nix; } ).config.system.build.isoImage
<sphalerite> Soni: start by looking at how nix works. All it really takes in terms of changes to nix is adding an additional store scheme. You clearly have all the parts about implementing the distributed system sussed out, so go ahead and implement it
<BlessJah> ottidmes: those two are equivalent
<Soni> I mean dat is a bit uncooperative about telling me what crypto they're using...
<BlessJah> ottidmes: I've reached after I've realised it expects configuration=PATH, that doesn't help though
<ottidmes> BlessJah: This is what I had: #! nix-build --no-out-link --expr '{ configuration }: import <nixpkgs/nixos> { inherit configuration; }' --attr config.system.build.initialRamdisk --arg configuration
<BlessJah> I don't think that's how shebang works
<ottidmes> BlessJah: Problem is, --arg tries to auto-evaluate the argument, so I get: error: cannot auto-call a function that has an argument without a default value (‘config’)
rihards has joined #nixos
<sphalerite> Soni: packages are uniquely identified by the hash of their build instructions so all it really takes is an implementation of the transport. see https://github.com/NixOS/nix/blob/master/src/libstore/store-api.cc for the API to implement
<ottidmes> BlessJah: I am quite sure it should work, but to be honest I have not actually confirmed that it is supposed to work, so I will try my nix-instantiate test that worked on the command line
muzzy_ has joined #nixos
<BlessJah> try actually calling that file, shebang is limited to single arg (e.g. /usr/bin/env bash
<Soni> so all I need to do is run dat with a repo, and have nix point to that directory?
<ottidmes> BlessJah: But it is just using one argument in my case, it is supplying it to --arg configuration <the file>
civodul has joined #nixos
<sphalerite> Soni: sure, that should work. You can copy stuff in and out using nix copy --{from,to} file:///path/to/repo
<pie_> clever, does the nixos default configuration have any periodic file system syncing? im relatively sure i just lost a bunch of session files because my machine crashed and they didnt get written for a week and a alf
<pie_> clacke[m], i feel like they much have just been write cached in ram or something...
<Soni> sphalerite: do I need to copy in and out?
scribbler has quit [Ping timeout: 240 seconds]
<Soni> is there any way I could use it directly?
<sphalerite> Soni: not really, no
<BlessJah> #! nix-build --no-out-link --expr '{ configuration }: import <nixpkgs/nixos> { inherit configuration; }' --attr config.system.build.initialRamdisk --arg
<BlessJah> configuration
<BlessJah> which one is the one?
<Soni> :/
MichaelRaskin has joined #nixos
<simpson> Soni: Nix is a POLA system, so direct access to the Nix store is usually not the right way to do things. Folks have had more success working to decentralize the fetchers for various source packages from across the Internet.
<ottidmes> BlessJah: Well I was thinking it would simply be appended to the command, but I am probably wrong, do you have any good docs about it? about she-bangs
<sphalerite> Soni: have you used nix yet?
<Soni> simpson: can I just make it automatically look at the dir whenever? even automatically import if needed?
<simpson> Soni: That's precisely the kind of thing that Nix does *not* do.
<Soni> why should anyone use something that's not designed to be user-friendly?
<sphalerite> Yes, it can automatically import.
<gchristensen> some people find pleasure in pain I guess
<Soni> I mean how am I gonna get ppl to use p2p, if p2p isn't user-friendly?
Itkovian has joined #nixos
<sphalerite> Soni: clearly everyone other than you is both sadistic and masochistic.
<sphalerite> Soni: by making it user-friendly!
<gchristensen> Soni: well you've not gotten us to use it yet, so I'm not sure
<Soni> I mean you say you don't have a way to make it be user-friendly
<sphalerite> we did not say that.
<Soni> <simpson> Soni: That's precisely the kind of thing that Nix does *not* do.
<gchristensen> I guess it is a lost cause
<simpson> Soni: Don't worry about it. Thanks for stopping by, and in the future, feel free to try Nix out.
<sphalerite> Soni: nix has a command-not-found thing that will automatically fetch a package supplying that command if you use one that's not found. And if you implement a p2p store protocol for nix it can do that p2p as well :)
<johnw> nix-index
<Soni> I want things to be p2p so we can have cheaper internet. if everyone's using the same repos, local connections can be cheaper than international connections. you also get lower latency and higher speeds. it's win-win for everyone.
<sphalerite> Soni: although I don't think anyone uses it because it's kind of insane
<simpson> sphalerite: Hm, how pluggable *is* the store protocol?
<joepie91> Soni: P2P systems are almost by definition more expensive than centralized systems
<joepie91> for reasons ranging from increased redundancy to economies of scale
<Soni> we already use mirrors all the time
<ottidmes> BlessJah: What confuses me is this. I want to achieve this: nix-instantiate --eval --expr '{ test = { foo }: foo 5; }' --xml --attr test --arg foo 'num: num + 1'
<joepie91> (performance in general also tends to be much worse)
<sphalerite> simpson: depends. If you can just get something to speak filesystem you're done of course, but that's not necessarily the most efficient way
<Soni> this just uses end users as peers
<joepie91> (with a few exceptions)
<simpson> joepie91: Indeed, we should only want decentralization for the corresponding things it does to the power structures of society, and not because we're nobly trying to save bandwidth.
<simpson> Although saving bandwidth is pretty cool too.
<Soni> and then you have end-user <-> ISP <-> end-user rather than going through (multiple) international links
<joepie91> I mean, 'bandwidth' in and of itself isn't really a depletable resource, so 'saving bandwidth' isn't really a useful goal, usually what people want to do is 'save costs' instead
<Soni> and then the ISP can have gigabit links between it and customers, and only a handful of gigabit links between it and other ISPs
<ottidmes> BlessJah: But if I setup a file that has: #! nix-instantiate --eval --expr '{ test = { foo }: foo 5; }' --xml --attr test --arg foo, and as contents: num: num + 1, I will get the error: num: num + 1
<Soni> so the ISP would be able to go much cheaper on the undersea cables
<ottidmes> BlessJah: I will get the error: expression does not evaluate to a derivation (or a set or list of those)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vADuv
<NixOS_GitHub> nixpkgs/master 8d43b86 Franz Pletz: Merge pull request #36175 from WilliButz/grafana-update...
<NixOS_GitHub> nixpkgs/master 5ea2c87 WilliButz: grafana: 4.6.3 -> 5.0.0
NixOS_GitHub has left #nixos [#nixos]
<joepie91> Soni: ISP economics are quite a bit more complex than that though
<sphalerite> simpson: the actual store interface is quite complex though https://github.com/NixOS/nix/blob/master/src/libstore/store-api.hh#L239-L617
<simpson> sphalerite: Well, I'm wondering whether I have the temerity to try putting a Nix store into a Tahoe-LAFS Magic Folder. I don't think that it would be very fast. There's kind of the problem that the Nix store's filesystem layout shape isn't the same shape as we'd want for many network-based filesystems.
<simpson> sphalerite: Oh huh, I could make a *much* better Tahoe adapter on this API! Interesting food for thought, thanks.
<sphalerite> simpson: what would make the filesystem layout shape better?
<BlessJah> ottidmes: ~> echo $'#include <iostream>\nint main(int c,char** v){for(int i=0;i<c;)std::cout<<i<<v[i++]<<std::endl;}' | g++ -xc++ - ; install -m500 <(echo $'#!./a.out a b c d\nfoo') foo.echo ; ./foo.echo
<sphalerite> :)
<ottidmes> BlessJah: While I assumed it to be run like: nix-instantiate --eval --expr '{ test = { foo }: foo 5; }' --xml -A test --arg foo ./test.nix, yet then I get the error: attempt to call something which is not a function but a path, at (string):1:19, which is completely true, but I expected that at my ./test.nix run as well, so I am clearly not understanding the workings of shebang
<BlessJah> ottidmes: oneliner that'll let you experiment with shebang
<Soni> joepie91: the main expenses with ISPs are routers and being connected to the internet, because they need good internet connection
<simpson> sphalerite: Yeah, that's fair. The filesystem mostly just gets in the way here, when Nix and Tahoe really just want to do object storage.
<shapr> shlevy: nice job on risc-v!
<Soni> routers can use very little power with hardware routing tables tho
<joepie91> Soni: not really; the main expense tends to be last mile
<joepie91> Soni: the reasons for that are pretty simple; you need a lot of expensive wiring and each bit of wiring serves relatively few customers
<Soni> joepie91: in cities?
Itkovian has quit [Ping timeout: 245 seconds]
<joepie91> whereas for underseas cables, backbone infrastructure, etc., the cost is heavily amortized across all of its users
<joepie91> yes, even in cities, compared to backbone infra
<joepie91> generally ISPs don't pay the last-mile cost directly, but either the customer has to pay quite a bit in network fees or more commonly, the ISPs pays a lot to the last-mile operator
<joepie91> pay*
muzzy_ has quit [Read error: Connection reset by peer]
<Soni> I find it hard to believe running a few extra feet of cable can cost more than installing/maintaining undersea cables
<joepie91> like, especially for fiber optics, cost doesn't really increase much if you increase the bandwidth, the cost is largely fixed for maintenance, hardware on either end, etc.
<sphalerite> Soni: it doesn't, far from it.
<gchristensen> Soni: please move this to #nixos-p2p and anyone who wants to discuss can go there too, but as it stands this is getting in the way of people who need help with Nix.
<Soni> ok so you mean there's no reason the ISP should limit bandwidth? I agree
<joepie91> Soni: it's not "running a few extra feet of cable", it's "running many millions of extra feet of cable"
<gchristensen> joepie91, sphalerite, simpson ^
<BlessJah> ottidmes: Can you see the problem now?
<simpson> gchristensen: Hey, sphalerite and I came back on-topic, and I even learned stuff.
<sphalerite> :D
<gchristensen> just making sure you saw it :)
scribbler has joined #nixos
scribbler has quit [Client Quit]
<ottidmes> BlessJah: I think I know the problem, but I did not run your example, don't have the environment setup for it
<shlevy> shapr: Thanks!
<BlessJah> ottidmes: then nix-env -iA nixos.gcc it :D
cfricke has quit [Quit: WeeChat 2.0]
<ottidmes> BlessJah: But what about my principles! :P (I have not love for C++)
<BlessJah> C?
<ottidmes> BlessJah: But am I correct to understand that they are passed directly to the argument list, instead of a "macro rewrite" that just inlines it
coconnor has quit [Remote host closed the connection]
<MichaelRaskin> gchristensen: care to come to, hm, maybe #nixos-blah to discuss channel policy juggling? (I do want to _ask_ in #nixos, joining or not joining is enough of an answer, though)
<BlessJah> ~> echo $'#include <stdio.h>\nint main(int c,char** v){for(int i=0;i<c;)printf("%i %s\\n",i,v[i++]);}' | gcc -xc - ; install -m500 <(echo $'#!./a.out a b c d\nfoo') foo.echo ; ./foo.echo
pie_ has quit [Read error: Connection reset by peer]
<BlessJah> ottidmes: just run it :>
pie_ has joined #nixos
kreisys has quit [Read error: Connection reset by peer]
<ottidmes> BlessJah: OK done, so I got three numbered lines
<BlessJah> ottidmes: and ~> ./a.out a b c d
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 5d4db65 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub> [nixpkgs] peti pushed 3 new commits to master: https://git.io/vADga
<NixOS_GitHub> nixpkgs/master 8b53748 Peter Simons: git-annex: update sha256 hash for the new version
<NixOS_GitHub> nixpkgs/master e05c99c Peter Simons: hackage: update database snapshot to latest version
<ottidmes> BlessJah: Right, so instead of the normal behavior shown in the last example, we get the optional arguments as a single argument and the file that contains the #!
<BlessJah> yep
<ottidmes> BlessJah: So nix-* without special support for it, will complain
<ottidmes> BlessJah: I was thinking maybe running xargs or some similiar tool to try and fix that
<BlessJah> yep, nix-shell for example examines first lines of script for additional arguments
asuryawanshi has quit [Ping timeout: 256 seconds]
<BlessJah> It has to be one argument, and I used /usr/bin/env so the argument has to be nix-build
<ottidmes> BlessJah: This certainly explains why I could not make it to work
robstr has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 3 new commits to master: https://git.io/vAD2s
<NixOS_GitHub> nixpkgs/master 6d685a5 Daiderd Jordan: Merge pull request #36177 from veprbl/xpdf_fixes...
<NixOS_GitHub> nixpkgs/master f5892d0 Dmitry Kalinkin: xpdf: fix build on darwin (still broken in runtime)
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master ea66292 Dmitry Kalinkin: xpdf: fix a runtime error...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 6 new commits to master: https://git.io/vAD26
<NixOS_GitHub> nixpkgs/master 74d6d40 Väinö Järvelä: mopidy: Remove dbus-python on Darwin...
<NixOS_GitHub> nixpkgs/master e9ef15c Väinö Järvelä: glib-networking: Fix Darwin support
<NixOS_GitHub> nixpkgs/master 6166507 Väinö Järvelä: gst-plugins-bad: Add Darwin support...
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> BlessJah: One requirement was that you did not want to use a special binary? Otherwise you could just write something that calls nix-build in turn with the correct arguments
alexteves has quit [Ping timeout: 252 seconds]
<BlessJah> no, I want single file that would be able to pass own path as a configuration (or do something)
Itkovian has joined #nixos
<ottidmes> BlessJah: But I mean, if you just have #!/usr/bin/env our-nix-build, and have our-nix-build be an executable that calls nix-build args... <file> would not be so bad, right? That would allow you to create files like your iso.nix that you can just execute to build something
<WilliamHamilton> why can I write <nixpkgs> with these angular bracket? How does this work?
<ottidmes> WilliamHamilton: That will lookup nixpkgs in the NIX_PATH
<sphalerite> simpson: also, about implementing additional stores again — you can probably reuse a bunch of the stuff from other implementations as well. And not all of it needs to be properly implemented
<WilliamHamilton> and, if I wanted to refer to a .nix file in the nixpkgs tree (so I know the file path) but inside my checkout, how could I do?
<sphalerite> WilliamHamilton: https://nixos.org/nix/manual/#env-NIX_PATH
<BlessJah> ottidmes: I don't want it to be separate binary
<sphalerite> WilliamHamilton: <nixpkgs/nixos/foo/bar.nix>
<WilliamHamilton> oh, so it's the same,right?
<WilliamHamilton> <nixpkgs>/path will do?
<WilliamHamilton> I see, thanks!
<sphalerite> putting the path inside the <>s behaves a *little* differently
<ottidmes> It will affect the search
<sphalerite> although I'd consider cases where that makes a difference slightly pathological :D
<infinisil> WilliamHamilton: You could do "${toString <nixpkgs>}/nixos" which is the same as <nixpkgs/nixos>
Itkovian has quit [Remote host closed the connection]
<WilliamHamilton> infinisil: thanks, will keep that in mind
Itkovian has joined #nixos
<BlessJah> is there a way to know a path of file being executed by nix-build?
<MichaelRaskin> I guess Nix2 has nix edit
<infinisil> BlessJah: executed? Nix doesn't execute anything, you mean evaluated? But it evaluates a whole lot of files. You mean the 'main package' it evaluates?
<Dezgeg> I have this hack in my shell to edit by attr path: vip() { vim $(nix-instantiate --eval -A $1.meta.position | tr '":' ' ' | awk '{print $1}') }
<BlessJah> infinisil: nix-build foo.nix, I want foo.nix that it is named foo.nix
rihards has quit [Quit: rihards]
<infinisil> BlessJah: Huh, you want this in nix itself?
<BlessJah> yeah, kinda
mjhoy has joined #nixos
<infinisil> I can't think of a way
<ottidmes> BlessJah: You should just create an executable that builds your iso, and have that as the shebang, that works fine, I tried passing along the whole line of arguments I had, and it just gets cut of, so it is not going to work anyway (calling #! nix-build ... that is)
orivej has joined #nixos
<sphalerite> infinisil: no it's not, it behaves differently depending on whether the first "nixpkgs" on NIX_PATH contains a "nixos" or not
<mjhoy> can I use nix 2 on nixos-unstable right now?
<infinisil> sphalerite: Oh true..
<MichaelRaskin> Yes, nixUnstable
<mjhoy> thanks
<ottidmes> mjhoy: nix.package = pkgs.nixUnstable;
<BlessJah> ottidmes: #!/usr/bin/env nix-build
<BlessJah> (import <nixpkgs/nixos> { configuration=./iso.nix; } ).config.system.build.isoImage
<BlessJah> ottidmes: it will build iso.nix
<BlessJah> but that solution requires having second file...
<mjhoy> ottidmes: that's for configuration.nix ?
MP2E has joined #nixos
<ottidmes> mjhoy: yes
<infinisil> BlessJah: you can just put iso.nix inline
<infinisil> I'm pretty sure
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/48a76ca6f57 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<BlessJah> iso nix is nixos-configuration, that will later get imported and evaluated
<BlessJah> it has to be a path
<ottidmes> BlessJah: If you do not mind if iso.nix contains all kinds of stuff unrelated to your config, but just to make it work, what infinisil says would do
<infinisil> Ah and you want only to have iso.nix
<BlessJah> yes, I want to put (import <nixpkgs/nixos> { configuration=./iso.nix; } ).config.system.build.isoImage into iso.nix
<infinisil> I'm not sure what's the point of trying to cram everything into a single file
<infinisil> And I don't think it's possible
<infinisil> Well actually you could just do `let configuration = <the contents of iso.nix>; in import <nixpkgs/nixos> { inherit configuration; }).config.system.build.isoImage
<infinisil> I take it being impossible back :)
fouric has joined #nixos
<ottidmes> infinisil: huh? "infinisil | BlessJah: you can just put iso.nix inline" that was the first thing you suggested right? :P
<BlessJah> I think it has to be a path
peacememories has joined #nixos
<infinisil> Oh right haha, it somehow didn't occur to me that putting iso.nix inline and adding the build.isoImage thing to iso.nix is the same xD
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aswan89 opened pull request #36189: Hangups at 0.4.4 (master...hangups) https://git.io/vADwY
NixOS_GitHub has left #nixos [#nixos]
<infinisil> BlessJah: have you tried it not being a path? Because I'm pretty sure it's gonna work
<BlessJah> what then, function? set?
<ottidmes> BlessJah: If you want to be able to run your ./iso.nix and it builds your iso and contains the config, that is easy enough, something like infinisil suggested, but if you do not want that wrapper code (to make it build) available in iso.nix as code, then you are simply out of luck
<infinisil> BlessJah: Just the contents of iso.nix, so a function with arguments { pkgs, ... }: or an attrset
<infinisil> BlessJah: The module system allows you to either use nix expressions directly or a file that contains it
<BlessJah> whoah, it builds!
<MichaelRaskin> AARRRGGH
<infinisil> Nice!
<BlessJah> I've tried that before and it didn't work, I have no idea what changed.
<MichaelRaskin> Just when I decided to give up and merge LibreOffice 6.0.1.1 as is…
<MichaelRaskin> 6.0.2. comes out
<infinisil> Hehe
<BlessJah> LO is PITA when it recompiles during upgrade
<MichaelRaskin> Imagine how annoying it is to recompile it only to have a test fail.
<ottidmes> BlessJah: And here I was thinking you wanted to have it just be the NixOS config file, so you could still include it elsewhere or something, ah well, learned something about shebangs in the process :P
<BlessJah> infinisi, ottidmes: http://dpaste.com/086B2WH
<infinisil> MichaelRaskin: Nix can be a bit annoying with that..
drakonis_ has quit [Read error: Connection reset by peer]
<MichaelRaskin> I should try splitting the build directory-by-directory into separate expressions…
<BlessJah> now only thing I need is to move last line on top of file, so it'd be three lines prefix and config
<ottidmes> BlessJah: You can do: inherit configuration; instead of configuration=configuration
<BlessJah> yep, I had that, changed to see if the other way would work
<BlessJah> what does inherit mean in function argument attrset?
<infinisil> BlessJah: you mean you want the import <nixpkgs/nixos> line to be at the top?
<BlessJah> yep
sigmundv_ has quit [Ping timeout: 268 seconds]
<infinisil> Well you can, but it's not gonna be as nice, variable declarations are forwards in nix, not backwards
rauno has quit [Ping timeout: 265 seconds]
<BlessJah> it doesn't have to be variable, rec is first thing that comes to my mind
<ottidmes> BlessJah: You can do things with let and rec but that will introduce a little footer as well
<infinisil> Yeah that would work, but I wouldn't do that personally, it's very common to declare things like this in nix
<BlessJah> I want it to be prefix for config, not wrapper
<infinisil> I mean a long let in in the beginning, then a tiny expression at the end
<BlessJah> but I'm happy with current solution anyway
<infinisil> BlessJah: prefix? wrapper? there are no such things in nix, it's just all variables and expressions, everything else is just syntax
<BlessJah> I mean three lines prefix to configuration rather than 3 lines head and 1 line tail
dschoepe has quit [Ping timeout: 268 seconds]
<infinisil> It doesn't make much sense imo to want to force nix to look a certain way, just makes your code harder to read
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] veprbl opened pull request #36191: xpdf: fix icons on Darwin (master...xpdf_fixes) https://git.io/vADoO
NixOS_GitHub has left #nixos [#nixos]
<infinisil> Well I need to go sleep, see y'all!
<BlessJah> thatd make easier to tell part that you're supposed to edit based on tutorial online and part that I wrote so I could ./iso.nix instead of typing that long command to build
<BlessJah> CYA and thanks for help
<ottidmes> infinisil: I generally agree, although I have a certain way to structure my config when I need multiple blocks of config, so I can easily move them around
pie__ has joined #nixos
pie_ has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda closed pull request #36132: searx: 0.13.1 -> 0.14.0 (master...leaps) https://git.io/vAXpz
NixOS_GitHub has left #nixos [#nixos]
<infinisil> ottidmes: yeah, rec does have its use cases
<ottidmes> infinisil: Well, I meant something else, I use config = mkMerge [ ({\n}) ({\n ... block ... \n}) ({\n ... block ... \n}) ]; so I can move those blocks around, so I am guilty of creating unnecessary complex syntax style as well :P
<ottidmes> The reason for parentheses around the accolades is to allow let bindings in blocks
<infinisil> ottidmes: well mkMerge also has its uses :)
<ottidmes> infinisil: lol
gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-offtopic
gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<infinisil> That's a long notice there
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36192: rangev3: 2017-01-30 -> 0.3.5, build and run tests (master...update/range-v3-0.3.5) https://git.io/vADoj
NixOS_GitHub has left #nixos [#nixos]
hiratara has quit [Ping timeout: 245 seconds]
rauno has joined #nixos
<WilliamHamilton> I'm trying to modify a shell.nix file generated by cabal2nix, injecting in there the expression from https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L2903-L2909
<WilliamHamilton> here's what I got: http://lpaste.net/363028
<WilliamHamilton> now, obviously, this is wrong, and when I try to execute it I get an error about an env parameter which is not found
<WilliamHamilton> I'd appreciate pointers on how to go forward. My objective is calling the ihaskell wrapper with a list of dependencies extracted from a .cabal file
hiratara has joined #nixos
FRidh2 has quit [Quit: Konversation terminated!]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] etu opened pull request #36193: php: 7.2.2 -> 7.2.3 (master...php-723) https://git.io/vADKV
NixOS_GitHub has left #nixos [#nixos]
<WilliamHamilton> first, I'd like to understand how to build the simple ihaskell from this shell.nix file
tertle||eltret has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
ertes-w has quit [Read error: Connection reset by peer]
ertes-w has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheMente has joined #nixos
Andros has left #nixos ["Leaving"]
peacememories has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master f6de73b Michael Raskin: libreoffice-fresh: 5.4.1.2 -> 6.0.1.1...
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vADPU
mjhoy has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #36149: [WIP] Libreoffice 6 (works, but I don't like one test I disabled) (master...libreoffice-6) https://git.io/vA1Dv
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> Oops. I had sandboxing turned off on one of my machines because I changed nix.conf to use the new option name (sandbox = true) but then downgraded to 1.11.x again
<sphalerite> >.>
<sphalerite> vaguely related, is there a convenient way to --check-build the entire closure of some derivation?
<sphalerite> I want to check how deterministic my system closure is and whether it matches up with the stuff from the binary cache :)
<MichaelRaskin> xargs?
muzzy has joined #nixos
<sphalerite> MichaelRaskin: yeah but that won't present the results very nicely
ryanartecona has quit [Ping timeout: 260 seconds]
<MichaelRaskin> xargs -l1?
muzzy has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36169: spotify: 1.0.70.399.g5ffabd56-26 -> 1.0.72.117.g6bd7cc73-35 (master...spotify) https://git.io/vAMMj
NixOS_GitHub has left #nixos [#nixos]
szicari has quit [Quit: szicari]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36176: Spotify: 1.0.70.399 -> 1.0.72.117 (master...spotify-1.0.72.117) https://git.io/vADTI
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36181: spotify: 1.0.70 -> 1.0.72 (master...spotify) https://git.io/vADse
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vADXX
<NixOS_GitHub> nixpkgs/master 02fee42 Daniel Fullmer: avrbinutils: 2.26 -> 2.30
<NixOS_GitHub> nixpkgs/master 786f402 Jörg Thalheim: Merge pull request #36184 from danielfullmer/avrbinutils-2.30...
NixOS_GitHub has left #nixos [#nixos]
goibhniu has quit [Ping timeout: 256 seconds]
goibhniu has joined #nixos
<sphalerite> hm so I'm doing `nix-store -qR /nix/store/adgqys6ydka14b2i1fmv074yc0xdkqw3-nixos-system-sudoku-17.09.3008.c831224528c.drv | xargs -P8 -n1 nix-store -r --check -Q` now but it's not really pretty
<infinisil> You can always write a small shell script to make stuff prettier
<sphalerite> it'll also fail for anything that's not in the store (e.g. source tarballs for stuff that I jsut got from the binary cache)
<infinisil> That reminds me of my url verification script for nixpkgs I meant to finish, damn
<sphalerite> so I need to 1. realise the path without --check 2. realise it with --check and check the exit code , and handle the output for the whole thing nicely
kelleyNif has quit [Quit: Leaving.]
stammon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #36192: rangev3: 2017-01-30 -> 0.3.5, build and run tests (master...update/range-v3-0.3.5) https://git.io/vADoj
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has joined #nixos
lord| has joined #nixos
goibhniu1 has joined #nixos
goibhniu has quit [Ping timeout: 252 seconds]
kelleyNif has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] maurer opened pull request #36194: BAP update to 1.4 (master...bap-1.4) https://git.io/vADMU
NixOS_GitHub has left #nixos [#nixos]
earldouglas has joined #nixos
kelleyNif has joined #nixos
deba5e12_ has quit [Quit: WeeChat 1.9.1]
kelleyNif has quit [Client Quit]
<BlessJah> gchristensen: the nixos channel did the same thing again
<Mic92> MichaelRaskin: do you know where the packages in this listing https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.3106.14d54ce0e99 are defined? This is the redirect of https://nixos.org/channels/nixos-17.09
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #36155: German Dictionary for Hunspell (master...hunspell) https://git.io/vAMtu
NixOS_GitHub has left #nixos [#nixos]
<BlessJah> nixos-17.09 went from 17.09.3101.fd1d76bb1a8 to 17.09.2905.c1d9aff56e0
kelleyNif has joined #nixos
<Mic92> MichaelRaskin: I think I figured it out `lib/make-channel.nix`
<BlessJah> heh, it seems that it did it few seconds ago, I'm getting better at detecting it
* Mic92 following the steps of the white rabbit.
kelleyNif has quit [Client Quit]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
Myrl-saki has quit [Ping timeout: 268 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheMente has quit [Quit: Leaving]
jensens has quit [Ping timeout: 260 seconds]
lightandlight has quit []
kelleyNif has joined #nixos
rardiol1 has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
arcetera has joined #nixos
<arcetera> hello
<arcetera> trying to set up cwm as my primary window manager, but nixos-rebuild is nagging me about not finding it
<arcetera> simple default = "cwm"; && cwm.enable = true;
<arcetera> "Default window manager (cwm) not found"
<arcetera> it's installed, and i can execute it manually
cement has quit [Ping timeout: 248 seconds]
<BlessJah> you may need to write custom session for it
<arcetera> hell
<arcetera> how do i do that?
muzzy has joined #nixos
<BlessJah> like this https://nixos.org/nixos/options.html#services.xserver.displaymanager.session
<arcetera> kk thanks
<dywedir[m]> Is cache.nixos.org down?
<arcetera> so all i have to do is displayManager.session = [] correct?
<arcetera> where [] is my custom session
<BlessJah> yep, exactly as in example
<arcetera> don't have to set default wm or anything?
<samueldr> dywedir[m]: probably not the whole of it, and accessing cache.nixos.org in a browser will fail
<samueldr> cache.nixos.org is using cloudfront, so it's improbable that it is down, but possible that it has a temporary trouble locally for you
<BlessJah> there was mishap with channel upgrade recently, channel was downgraded instead of being upgraded
<BlessJah> that might affect cache content as well
<samueldr> BlessJah: shouldn't
<samueldr> all the built artifacts are still there
<samueldr> nothing has been removed since... forever IIRC
<BlessJah> really? nice...
<samueldr> as long as hydra built it (afaik) it's on cache.nixos.org, even before the channel updates
kelleyNif has quit [Quit: Leaving.]
<samueldr> which is fine since to be used, you either have checked out the commit producing them manually or it will be pointed at by the updated channel once it's all finished to build
<dywedir[m]> cache woks now, ty
xcmw has joined #nixos
alex`` has quit [Ping timeout: 276 seconds]
<samueldr> Mic92: MichaelRaskin I have this opened since the other day where the channel reverted https://github.com/NixOS/nixos-org-configurations/blob/master/nixos-org/hydra-mirror.nix#L9
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9436e042b92 (from 15 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
arcetera has quit [Ping timeout: 265 seconds]
jackdk has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
<Mic92> samueldr: do you have have a clue, if those jobs here are declarative declared as well? https://github.com/NixOS/nixos-org-configurations/blob/master/nixos-org/hydra-mirror.nix#L26
<samueldr> (that's where I stopped the other day)
<Mic92> samueldr: I mean in hydra?
<samueldr> I have no idea :/
<clever> Mic92: open the hydra itself, and look for a jobset called .jobsets
<Mic92> samueldr: nevermind there is documentation in nixpkgs for that
<clever> if its declarative, it will always have .jobsets
<clever> and .jobsets also leaks some of the info on where to find that declarative config
chpatrick has quit [Quit: Connection closed for inactivity]
cinimod` has joined #nixos
<clever> Mic92: up one level, in the project itself
<clever> Mic92: in this hydra, you can see a jobset called .jobsets
<clever> that means its declarative
<TonyTheLion> Jobset contains a job with an empty name. Make sure the jobset evaluates to an attrset of jobs.
<clever> and thats where it leaks the declarative config: https://hydra.angeldsis.com/jobset/not-os/.jobsets#tabs-configuration
<TonyTheLion> what does that mean?
<Mic92> clever: ok, and nixos is not
spear2 has quit [Remote host closed the connection]
lstanley has quit [Ping timeout: 240 seconds]
<clever> Mic92: yeah, i see no signs of declarative jobs on the hydran.nixos machine
<srk> got my hydra proxied as well https://hydra.vpsadminos.org/
<Mic92> clever: too bad, I actually planned to add a systemTarball package, but it looks like I have to open an issue instead.
pie_ has joined #nixos
pie__ has quit [Ping timeout: 256 seconds]
<clever> Mic92: package, or jobset?
<clever> Mic92: packages are just a PR against release.nix
sigmundv__ has quit [Ping timeout: 260 seconds]
ryanartecona has joined #nixos
ebzzry_ has quit [Ping timeout: 240 seconds]
ebzzry_ has joined #nixos
lstanley has joined #nixos
kitemikaze has quit [Remote host closed the connection]
ryanartecona has quit [Client Quit]
abathur has joined #nixos
vandenoever has quit [Ping timeout: 240 seconds]
<Mic92> clever: end goal is a link here https://nixos.org/nixos/download.html
<clever> Mic92: ah, release.nix should be fine then
<clever> Mic92: just add an attribute to release.nix, for either nixos or nixpkgs
kitemikaze has joined #nixos
erasmas has quit [Quit: leaving]
<Mic92> clever: thanks
<Mic92> clever: containerTarball already exists
<clever> Mic92: and there is a system_tarball_pc on line 190
sanscoeu_ has joined #nixos
<Mic92> clever: so step two is to add it to the nixos.org mirror script
<Mic92> I want to have a better answer for people, who want to try nixos in a chroot then explain them how to build it with nix instead.
cinimod` has quit [Ping timeout: 240 seconds]