<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
<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.
<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.
<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
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`
<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]
<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
<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>
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
<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: 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
<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 ?
<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>
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
<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
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?
<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>
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?
<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
<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>
[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>
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 ?
<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
<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
<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
<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
<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
<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
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
<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
<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
<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
<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"
<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™
<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
<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
<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. :-)
<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?
<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
<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
<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?
<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
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...
<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]
<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?
<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
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
<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
<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: 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
<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
<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.
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.
<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)?
<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.
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.
<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)
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
<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?
<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
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
<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
<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.
<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>
[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
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
<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?
<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…]
<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
<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?
<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
<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
<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’)
<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...
<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...
<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 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>
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?
<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
<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
<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
<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 :)
<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…]
<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]
<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
<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