MP2E has quit [(Quit: leaving)]
ibrahims has quit [(Read error: Connection reset by peer)]
<clever> Nobabs27: everything looks fine, what OS is the host that virtualbox is running on?
<Nobabs27> clever: Arch
<clever> Nobabs27: in the virtualbox settings, you can configure COM1 to tcp mode, and set it up to connect to an existing socket, let me find some exact values
slabity has joined #nixos
<Nobabs27> clever: is that where it out puts to the terminal or something?
<clever> Nobabs27: the guest can be configured to print more debug info to the serial ports
<clever> and then you gain the ability to scroll
<Nobabs27> ah
<clever> socat tcp-listen:4321,fork stdin
<clever> if you run this on arch, it will listen on port 4321
<Nobabs27> ok
<clever> you can then configure virtualbox to connect to 127.0.0.1:4321
Rotaerk has joined #nixos
<clever> Nobabs27: then add boot.kernelParams = [ "console=ttyS0,115200" ]; to the configuration.nix and rebuild
mudri has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
<clever> that tells linux to output everything to the serial port, instead of the virtual gpu
<Nobabs27> clever: ah
<clever> so you should now get the entire error, and have the ability to copy/paste
<Nobabs27> clever: ok lemme configure the port
<clever> and if your lucky enough to have a hardware serial port, you can also use the above on real machines for debugging things remotely
<Nobabs27> clever: do I leave path/address blank?
<clever> path/address has to be set to 127.0.0.1:4321
<clever> and the socat has to be running when you launch the guest
<Nobabs27> ye
<Nobabs27> alright now I just gotta go to the config
mellowmaroon has quit [(Quit: Leaving)]
ibrahims has joined #nixos
<Nobabs27> clever: rebuild switch ?
<clever> i would use "nixos-rebuild boot"
<Nobabs27> kk
<clever> the change requires a reboot to apply, so switch doesnt really help any
<Nobabs27> maybe that was my whole problem
<clever> probably isnt
<Nobabs27> even though the kernel was upgraded?
arianvp2_ has quit [(Quit: arianvp2_)]
<clever> rebuild switch will restart services and update config files, but the kernel change will wait until you reboot
<Nobabs27> ik but how will grub know to use the new kernel ?
<Nobabs27> esp if I didnt rebuild boot?
<clever> every time you do switch or boot, nixos updates the grub.cfg
<Nobabs27> k then
<clever> nixos-rebuild test will activate the changes without making them the default
<clever> nixos-rebuild boot will make it the default in grub
<clever> switch is just test+boot
<Nobabs27> alright restarting with that new stuff in the config
<Nobabs27> k got the error ill gist it
<clever> Nobabs27: what does "sudo nix-channel --list" say?
<clever> Nobabs27: and can you gist the /boot/grub/grub.cfg file?
<Nobabs27> clever: nix-channel --list shows nixos-17.03
<Nobabs27> clever: gist stalls trying to get the grub.cfg
Neo-- has quit [(Ping timeout: 255 seconds)]
<clever> can you read the file with "less"?
<Nobabs27> yes
<Nobabs27> wait
<Nobabs27> nvm
Neo-- has joined #nixos
ison111 has joined #nixos
<clever> Nobabs27: inside the guest, can you run "nix-build '<nixpkgs/nixos>' -A config.system.build.bootStage1" and then gist the file that result is pointing to
fnljk has quit [(Quit: ?)]
aneeshusa has quit [(Quit: WeeChat 1.8)]
<Nobabs27> clever: it just spams the screen ?
lukec has quit [(Quit: WeeChat 1.4)]
<clever> it should build a copy of stage1, and then give a storepath at the end
<Nobabs27> clever: oh the init.sh?
<clever> yeah
thc202 has quit [(Ping timeout: 240 seconds)]
<clever> something went wrong when running switch_root, and it just spit out its help text
<clever> and at that point, switch_root was pid 1, so its exit killed the system
<Nobabs27> ok
<Nobabs27> so how would it be fixed?
mellowmaroon has joined #nixos
<clever> we need to find out what arguments where given to switch_root
<mellowmaroon> Hi, sorry, one more quick question about the OpenGL things
<mellowmaroon> In IDEA, I got another error about NEWT not working. But if I run `gradle run` outside of the IDE, it works
<mellowmaroon> I was just wondering why that is
<clever> Nobabs27: all of the files ive read so far say everything should be working normally, we can try getting a shell
<Nobabs27> clever: ok
<clever> Nobabs27: oh, line 121, that should help, do you know how to edit the kernel params in grub directly?
<Nobabs27> clever: Ctrl+E or something? not sure
<clever> just hit e on any menu entry
<clever> and f10 to run the modified version
<clever> Nobabs27: use that, to add boot.trace to the kernel arguments, and then watch the serial output again
pareidolia has quit [(Ping timeout: 240 seconds)]
<clever> nice
<clever> i didnt even think ash had that option
<Nobabs27> ?
<clever> "set -x" is what made all of that output
<clever> i thought it was a bash-only thing
mellowmaroon has quit [(Quit: Leaving)]
<Nobabs27> I don't see a set -x ?
<clever> all of that information says that it should have worked perfectly
darlan has joined #nixos
pareidolia has joined #nixos
<Nobabs27> ah
<Nobabs27> clever: ok, so what now then?
<clever> the switch_root is being called with the right arguments, so i would expect this to just work
<Nobabs27> hmm
<clever> i'm leaning towards it being a bug in switch_root, but that seems pretty unlikely
<Nobabs27> weird
<slabity> Just found out that NixOS has oh-my-zsh as built-in options. That's incredible.
<clever> Nobabs27: maybe you should open an issue on nixpkgs, and list all of the above gist's
<Nobabs27> alrighty ill have to figure out how to do that
<Nobabs27> oh ok cool I was expecting some yuge JIRA-esq thing lol
<clever> heh
<Nobabs27> ok and just say switch_root seems is not behaving essentially?
<clever> yeah, and link the gists with all of the logs
ibrahims_ has joined #nixos
<Nobabs27> clever: 10/10 steps to reproduce
ibrahims has quit [(Ping timeout: 255 seconds)]
slabity has quit [(Quit: leaving)]
<pop> What's the best way to define a system group (in this case `docker`) in the nixos config?
ebzzry has quit [(Quit: WeeChat 1.7)]
<simpson> nixops question: Is there a recipe for forwarding ports from production to my working machine, or do I need to hack it up with $(nixops ssh)?
filterfish has quit [(Ping timeout: 240 seconds)]
<clever> pop: that creates a docker group, and configures docker to run on bootup
<pop> Oh cool. Thanks clever. How would I define some arbitrary group?
jtojnar has quit [(Read error: Connection reset by peer)]
lambdamu_ has joined #nixos
jtojnar has joined #nixos
<pop> clever: Oh I mean, just any arbitrary group, not related to docker. `my-custom-group`.
<pop> I actually didn't know about nixos.org/nixos/options.html I'll dig around with this for a bit.
<clever> pop: just change the word docker, the line i linked is how docker creates its own group
<clever> and you can just copy that, and use it to define any group
lambdamu has quit [(Ping timeout: 260 seconds)]
vaibhavsagar has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
<pop> clever++ mmk, thank you.
filterfish has joined #nixos
vaibhavsagar has quit [(Remote host closed the connection)]
jgertm has quit [(Ping timeout: 255 seconds)]
vaibhavsagar has joined #nixos
indi_ has joined #nixos
proteus-guy has joined #nixos
proteusguy has quit [(Ping timeout: 240 seconds)]
ibrahims has joined #nixos
ibrahims_ has quit [(Ping timeout: 240 seconds)]
slabity has joined #nixos
ibrahims has quit [(Quit: Lost terminal)]
Supersonic112 has quit [(Ping timeout: 240 seconds)]
s33se_ has joined #nixos
Supersonic112 has joined #nixos
acarrico has quit [(Ping timeout: 255 seconds)]
s33se has quit [(Ping timeout: 255 seconds)]
k0001 has quit [(Ping timeout: 255 seconds)]
indi_ has quit [(Remote host closed the connection)]
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
indi_ has joined #nixos
jgertm has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
justelex_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
endformationage has quit [(Quit: WeeChat 1.7)]
justelex has quit [(Ping timeout: 260 seconds)]
Neo-- has quit [(Ping timeout: 255 seconds)]
acarrico has joined #nixos
filterfish has quit [(Ping timeout: 240 seconds)]
Neo-- has joined #nixos
filterfish has joined #nixos
indi_ has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
spinus has quit [(Ping timeout: 255 seconds)]
acarrico has quit [(Ping timeout: 260 seconds)]
zeus_ has quit [(Ping timeout: 246 seconds)]
roconnor has quit [(Ping timeout: 240 seconds)]
acarrico has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
cpennington has joined #nixos
roconnor has joined #nixos
indi_ has quit [(Ping timeout: 260 seconds)]
stallion has quit [(Quit: stallion)]
indi_ has joined #nixos
pxc has joined #nixos
slabity has quit [(Ping timeout: 240 seconds)]
stallion has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
stallion has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
indi_ has quit [(Remote host closed the connection)]
stallion has joined #nixos
stallion_ has joined #nixos
stallion has quit [(Read error: Connection reset by peer)]
iqubic has joined #nixos
<iqubic> How hard is it to switch to NixOS? I'd be coming from Gentoo.
<catern> easy, I guess
<simpson> iqubic: You must unlearn many things.
indi_ has joined #nixos
slabity has joined #nixos
<iqubic> What must I unlearn?
fiddlerwoaroof has joined #nixos
<iqubic> See my current system currently has a single root partition, a boot partition, and a few partitions for Win10.
stallion_ has quit [(Ping timeout: 260 seconds)]
<iqubic> I need Windows 10 for my school, so I can't remove that.
<simpson> iqubic: The idea that packages are "installed" and "uninstalled", largely.
<simpson> Oh. I wouldn't recommend experimenting on a production machine.
stallion has joined #nixos
<iqubic> But I think it's the single root partition that will be a pain to move.
<iqubic> simpson: All I have is my production machine.
<iqubic> I have no spare machines to tinker with.
<simpson> iqubic: Then I *really* wouldn't recommend experimenting.
Mateon3 has joined #nixos
<slabity> iqubic: A virtual machine would be a good alternative
<iqubic> But why shouldn't I make the switch on a production machine???
<simpson> iqubic: My professionalism demands that I not recommend that you do things which are really risky.
<iqubic> What is your professionalism?
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
<iqubic> Is that just your common sense?
<iqubic> What advantages does NixOS have over other distros?
<iqubic> What differences does it have compared to Gentoo, or other rolling release distros
<catern> wow
<catern> I can't believe I used to once install distros without first testing them in a VM
<iqubic> What is it catern?
<iqubic> catern: I still do that.
<catern> just remembering when I too was young and carefree :)
stallion has quit [(Ping timeout: 268 seconds)]
<iqubic> In fact, I switched from arch straight to Gentoo without the VM testing phase
<slabity> iqubic: But you probably wouldn't have been set back too much if you messed it up, right?
<iqubic> slabity: No, I wouldn't have.
<iqubic> I had already saved off all my data to a spare 2TB drive
<slabity> iqubic: Then in that case it really doesn't matter what you do. The worst case scenario is that you'd need to try again.
<iqubic> I haven't saved my data recently.
<iqubic> I had saved my data for the switch from Arch to Gentoo
orivej has joined #nixos
<iqubic> So what is unique about NixOS? Why do you all use NixOS?
<slabity> iqubic: I switched from gentoo about 3 days ago because I liked the idea of not needing to manage my system's state
<iqubic> slabity: What was your partitioning scheme like?
<iqubic> How hard was the transition?
<slabity> iqubic: One 16gb pci ssd and one sata 512gb ssd. The smaller one is my esp and swap space, and the other is LUKS with btrfs on it.
<slabity> Transition is still not done. But once I finish it on my laptop I can throw the config on my desktop and be happy
<iqubic> Was your data all on the same partition?
<slabity> iqubic: Sort of. I use subvolumes rather than partitions when it comes to btrfs
<iqubic> That's my partion
<iqubic> sda4 is a partition that can be read and written to from both Windows10 and Gentoo
<iqubic> sda3 is Gentoo root
<iqubic> Which is all my data on my Gentoo machine
<iqubic> sda1 is my boot partitions, with GRUB2 and the windows bootloader
<iqubic> sda5 and sda6 are Windows partitions.
schoppenhauer has quit [(Ping timeout: 260 seconds)]
<iqubic> I'm not sure how hard it would be if I wanted to switch to NixOS, while still keeping Windows intact.
<iqubic> I have a weird set-up
schoppenhauer has joined #nixos
<iqubic> How hard would it be to migrate this set-up to NixOS???
<simpson> I know nothing about dual-booting Windows. Have you considered trying out single-user Nix on Gentoo first, to see whether it's for you?
<iqubic> simpson: I have not.
<iqubic> I have never used Nix at all.
<iqubic> I think it will be easiest to use Nix if I am forced to use only Nix
<slabity> iqubic: Then run it in a VM and configure it before you install it on your actual system
<iqubic> What VM do you recomend for me on Gentoo?
<slabity> So I'm trying to make a package for a zsh theme that I use. Can anyone help me with this? https://gist.github.com/anonymous/d6a81f807b7dc211f1a58bcf8a8cb81c
<catern> iqubic: better than a VM, use single-user Nix
<catern> or just ignore this advice
<catern> iqubic: do it http://nixos.org/nix/
<slabity> It's trying to build the package, but there's nothing to build. The package is just the contents of the git repo.
boj has joined #nixos
<iqubic> What's a single use Nix?
<iqubic> s/use/user
<nixy> iqubic: Single user Nix is when you install Nix as a secondary package manager on any other Linux distribution
<iqubic> How can I do that?
<nixy> It is where one user, usually a non-root user, owns the nix store
<iqubic> Is that easy to set-up on gentoo?
<iqubic> And what the heck is the Nix store?
<simpson> iqubic: The Nix store is where Nix keeps packages and stuff that it's built.
<nixy> iqubic: If you haven't read the Nix manual I would strongly recommend it before going all in on Nix. Nix brings a lot of benefits, but you kind of have to understand how it works to take advantage of it
<iqubic> Do you have a link to the NixOS Manual
indi_ has quit [(Remote host closed the connection)]
<simpson> Read up a few lines.
acarrico has quit [(Ping timeout: 255 seconds)]
indi_ has joined #nixos
<dave___> I was thinking of making a gcp functions backend implementation for nixops as a learning aid. There's a PR for vultr I was intending to use as a guide: https://github.com/NixOS/nixops/pull/634/files but is there any other documentation for how to implement MachineDefinitions/MachineStates, etc?
<dave___> (Note: I'm coming at this from the angle of nixops vs terraform. If my comparing nixops to terraform is wrong feel free to let me know now before I hurt myself)
<simpson> dave___: No, documentation is sparse. :C
<dave___> Is the terraform comparison apt? The documentation for terraform plugins is quite nice and they structure their plugins as provider/resource pairs, with Create/Read/Update/Destroy functions. It looks like nixops MachineStates only have create/destroy methods
<simpson> You're not wrong, but nixops tries to get per-machine configuration completely into Nix, so there's not really any update mechanism outside of that.
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<dave___> oh, you mean the read/update is done via nix, nixops only creates/destroys machines?
<simpson> Pretty much.
<dave___> is that why there's a create step followed by a deploy step, whereas terraform has just an apply step?
<simpson> That sounds about right.
<dave___> hmm, that makes sense
indi_ has quit [(Ping timeout: 260 seconds)]
<iqubic> So if learn nix and really like it, should I switch to NixOS?
<dave___> Pardon my poor use of nix terminology, total nix noob, but the sqlite state db and the nix specification passed to nixops would contain enough information in theory to wrap everything up into a single "apply" command? Would there be reasons besides code effort to not do that?
<dave___> iqubic: I get the feeling that if you learn nix and really like it you wont bother asking that question :)
indi_ has joined #nixos
<simpson> dave___: Well, yes, but we call it $(nixops deploy).
<simpson> iqubic: If you like. I'm still not comfortable recommending that you do fancy things with your only machine.
jgertm has quit [(Ping timeout: 246 seconds)]
<dave___> o.O? Is that mentioned in the documentation somewhere? I don't recall reading about that
<dave___> specifically the $( ) notation
<dave___> I'm under the impression that "nixops deploy" doesn't automatically run create/destroy.
<simpson> $() is just how I quote shell stuff.
<simpson> Deploying definitely creates machines.
<dave___> okay then, my mistake
<iqubic> simpson: I'm fine messing with my machine.
<iqubic> I think that switching Distros should be easy.
orivej has quit [(Ping timeout: 255 seconds)]
pxc has joined #nixos
jgertm has joined #nixos
pxc has quit [(Quit: WeeChat 1.8)]
fnljk has joined #nixos
<slabity> Given a package name, how can I get its path in the nix store in bash?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
ericsagnes has quit [(Ping timeout: 246 seconds)]
<simpson> slabity: nix-build echos the store path on success, so you could use that.
indi_ has quit [(Ping timeout: 240 seconds)]
vaibhavsagar_ has joined #nixos
<iqubic> So, If I am going to use Nix as a single user, what should I know?
<simpson> iqubic: You should know that there is a nixpkgs manual just like the Nix manual (http://nixos.org/nixpkgs/manual/).
vaibhavsagar has quit [(Ping timeout: 268 seconds)]
<simpson> And hopefully you have a tutorial or blog post that will give you ideas for what to try and play with Nix.
<iqubic> I have the official nix manual
<iqubic> So how do I get started with Nix?
<iqubic> What is the first step, just install Nix? With the Curl script from their websit?
vaibhavsagar_ has quit [(Ping timeout: 240 seconds)]
<simpson> Yeah.
<iqubic> Is it normal to have to give Nix sudo privlages to install?
<simpson> You're giving Nix permission to create /nix.
<iqubic> Yeah, I was
<simpson> In return, you won't have to use sudo to install things with Nix.
<iqubic> That's cool
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vHbOo
<NixOS_GitHub> nixpkgs/master 3dcecf0 Edward Tjörnhammar: Remove aiccu package and service due to sunsetting....
NixOS_GitHub has left #nixos []
<iqubic> Well, I now have Nix installed. What now?
<iqubic> At least I think I have Nix. How can I check if I have nix installed?
<slabity> Okay... I created a package /etc/nixos/powerlevel9k.nix with these contents: https://gist.github.com/anonymous/cf86df2cdba8ebd80f1a282ddc2f4139
<slabity> How do I refer to a file in the package in my configuration.nix file?
<slabity> So I need to set `programs.zsh.ohMyZsh.theme' to "<The package location>/powerlevel9k.zsh-theme"
<slabity> How do I do that?
ericsagnes has joined #nixos
<iqubic> So what do I do now that I have Nix installed?
alx741 has quit [(Quit: alx741)]
<nixy> iqubic: Install software, live life, enjoy a neat package manager
<iqubic> How is Nix any better than something like Aptitude?
<iqubic> And how would I use Nix for Haskell development?
<simpson> You will have to discover the answer to the first on your own.
<noffle> hello. I installed nix on arch linux, and in running 'nix-env -qa' I notice that packages for platforms = [ "i686-linux" ] don't seem to be listed
vandenoever has quit [(Ping timeout: 255 seconds)]
<noffle> is this intentional, or do I need to flip a bit somewhere in a config?
<noffle> I haven't done any configuration yet other than installing nix itself
<nixy> i686 would be 32bit Linux wouldn't it? Are you running a 64bit system?
<noffle> nixy: "x86_64-linux" doesn't show either
<noffle> sorry, bad example
<nixy> It is possible that the package is under an attribute set and wouldn't show up under `nix-env -qa` I know most of the haskell infrastructure won't show up
<Ralith> slabity: you can write a string like "${pkgs.powerlevel9k}/share/whatever"
<noffle> I'm trying to install skype or skypeforlinux in particular
<clever> noffle: nix-env -iA nixos.skype
<clever> or nixpkgs if your not on nixos
<Ralith> there's the unfree bitflip
vaibhavsagar has joined #nixos
<noffle> clever: error: attribute ‘nixos’ in selection path ‘nixos.skype’ not found
<noffle> oof, bad quotes
iqubic has quit [(Remote host closed the connection)]
<clever> noffle: nix-env -iA nixpkgs.skype
<noffle> clever: that did it; now I'm getting the unfree license wall that Ralith mentioned
<clever> yep, it will tell you what to put into config.nix, and where config.nix should be
<noffle> ah, so it does. time to do some reading comprehension
<noffle> thank you
<noffle> clever: is the "nixpkgs" scope necessary for me to add for any nixos package?
<noffle> I used to run nixos and don't remember needing that (I think!)
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<clever> noffle: that tells nix-env which channel to look in, you can see the available names in nix-channel --list
* clever heads off to bed
<noffle> clever: thank you for the help!
<clever> yep
ChongLi has quit [(Ping timeout: 255 seconds)]
ChongLi has joined #nixos
zeus_ has joined #nixos
<ison111> slabity: I'm not sure about referring to your own packages, but it's usually something like ${pkgs.PACKAGE_NAME}
marsel has joined #nixos
<slabity> ison111: Yea, I'm trying to figure out how to refer to a package I made myself
<slabity> Ralith: It tells me that attribute does not exist. Are custom packages part of 'pkgs'?
<Ralith> they are if you put them there
<Ralith> they aren't if you don't
<Ralith> you can handle your custom packages however you like
<Ralith> simply sticking a .nix file somewhere does nothing at all
<Ralith> (excepting magic files like /etc/nixos/configuration.nix)
<slabity> Ralith: Then what do I do after I make the file?
<Ralith> https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix contains many examples of how to turn certain types of nix expressions into derivations
stallion has joined #nixos
<Ralith> if the expression in your file looks like a typical package, then you'll probably want to do the standard `pkgs.callPackage /path/too/foo.nix {}` dance
jbgi has joined #nixos
indi_ has joined #nixos
<Ralith> which you can stick in your overrides, or in a let binding, or wherever else
stallion has quit [(Ping timeout: 255 seconds)]
indi_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vHbZE
<NixOS_GitHub> nixpkgs/master 4ef8313 Vladimír Čunát: aiccu: remove leftover from 3dcecf09fc1c
NixOS_GitHub has left #nixos []
<slabity> Ralith: I am at a loss. I have "let powerlevel9k = pkgs.callPackage ./powerlevel9k.nix {}; in {...}", but when I try to use "${pkgs.powerlevel9k}" it says the attribute is missing.
stallion has joined #nixos
<Ralith> slabity: you introduced a variable named `powerlevel9k`, you haven't touched `pkgs`
<Ralith> if it's a local variable, just reference it directly
<Ralith> "${powerlevel9k}/foo"
Mercuria1Alchemi has joined #nixos
<dave___> how is data programmatically retrieved about created resources? "nixops info" will display IP addresses, but what about arbitrary data such as the name/id of an s3 bucket, which isn't an IP address? Terraform has a tfstate json file that can be queried but I'm getting the feeling that nixops is overly specialized to deal mostly with just servers, not arbitrary resources
<slabity> Ralith: That gives me "attempt to call something which is not a function but a set"
<Ralith> can't help you with that unless you share full code
stallion has quit [(Ping timeout: 260 seconds)]
<Ralith> slabity: your powerlevel9k.nix file is not a nix package
<Ralith> it returns a derivation, but you need to return a function that, when called with suitable arguments, produces a derivation.
<slabity> Ralith: That's what I was told to do... What is it then? Just an expression?
marusich has quit [(Ping timeout: 240 seconds)]
<Ralith> for example, replace line 1 with `{ fetchFromGitHub }:`
<Ralith> er
<Ralith> `{ stdenv, fetchFromGitHub }:`
marsel has quit [(Ping timeout: 240 seconds)]
<Ralith> also, I don't know what "packages.nix" is; that looks like a configuration.nix to me
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edwtjo pushed 9 new commits to release-17.03: https://git.io/vHbnO
<NixOS_GitHub> nixpkgs/release-17.03 d4b6398 Jonathan Rudenberg: libhdhomerun: init at revision 1efbcb2...
<NixOS_GitHub> nixpkgs/release-17.03 c864dff Jonathan Rudenberg: kodi: init pvr-hdhomerun plugin at 2.4.7...
<NixOS_GitHub> nixpkgs/release-17.03 3c66850 Edward Tjörnhammar: kodiPlugins.exodus: 3.0.5 -> 3.1.13...
NixOS_GitHub has left #nixos []
<Ralith> you should delete line 42 in it
<slabity> Ralith: Yea, it's imported from configuration.nix. But your change seems to have fixed it
<Ralith> it is at best doing nothing
ericsagnes has quit [(Ping timeout: 255 seconds)]
moet has joined #nixos
<Ralith> (unless you genuinely need this package in your system environment for reasons other than setting the theme, in which case you should refer to the let-bound variable containing the package, rather than mucking about with import)
<Ralith> (but I doubt that's the case)
<Ralith> I'd also encourage you not to put user applications like firefox, steam, etc. in your global system environment
jbgi has quit [(Ping timeout: 240 seconds)]
<slabity> Ralith: Why's that?
<Ralith> if you install them in your user environment instead, you won't need to rebuild your system (or indeed acquire root privs at all) to update them
<Ralith> and it will be considerably easier to update them piecemeal independent of the rest of your system should you want to
<slabity> Well I just realized that the 'theme' option is looking for a relative path instead of absolute.
<Ralith> the author probably intended you to copy your theme file into /etc/nixos manually
<slabity> I mean it's looking for it relative to the ohMyZsh path
* Ralith shrug
<Ralith> maybe it's broken, I don't have any experience with that module in particular
<slabity> Ehh, I think it'll work if I just do something disgusting like "../../../../${powerlevel9k}/powerlevel9k"
<Ralith> that is pretty disgusting
<Ralith> I would try to find the author and ping them, if nothing sane works
<Ralith> and/or fix it and make a PR
<Ralith> hm, maybe ohMyZsh comes with a variety of themes and they didn't think of people trying to use their own
<slabity> Ralith: They come with a bunch of basic built-in ones, but there's a lot that aren't built-in
<Ralith> that's probably the deal then
<Ralith> I imagine an extension to the module to support third-party themes would be well received
<slabity> oh-my-zsh expects themes to be installed in $OH_MY_ZSH/themes or something like that then
<Ralith> I was talking about the module, not the upstream package, to be clear
<slabity> It would be nice to just say, "theme = 'git://github.com/whatever/themething'"
<slabity> I'll look into cleaning that
<Ralith> the more idiomatic thing would be to take a derivation
<Ralith> since that exposes full control over how it's obtained and packaged
<Ralith> and you wouldn't want to break things for people who are already using the built-in themes
marusich has joined #nixos
moet has quit [(Ping timeout: 240 seconds)]
georges-duperon has joined #nixos
ericsagnes has joined #nixos
<sphalerite> Or you could not use omz
ericsagnes has quit [(Ping timeout: 268 seconds)]
<slabity> sphalerite: That doesn't sound like a good solution.
<sphalerite> slabity: why not?
<sphalerite> You can download a theme and source it directly
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vHbcX
<NixOS_GitHub> nixpkgs/master 0f9a228 Edward Tjörnhammar: ezquake: init at 3.0.1
NixOS_GitHub has left #nixos []
<sphalerite> The only other features it has is wrapping some zsh built-in configuration functionality which you can use directly, and hacky update functionality
<sphalerite> AFAIU
<slabity> sphalerite: It's more of a collection of plugins that you can enable and disable. I don't really want to go through each plugin I want and install them separately
<sphalerite> slabity: they're all just little snippets that would be better off managed by a proper package manager
<sphalerite> like nix ;)
<slabity> I don't disagree
zeus_ has quit [(Remote host closed the connection)]
ericsagnes has joined #nixos
bennofs has joined #nixos
slabity has quit [(Quit: leaving)]
mbrock has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 6 new commits to master: https://git.io/vHbCK
<NixOS_GitHub> nixpkgs/master 6cf6048 taku0: firefox-bin: 53.0.3 -> 54.0
<NixOS_GitHub> nixpkgs/master ceb34c6 taku0: nspr: 4.13.1 -> 4.15
<NixOS_GitHub> nixpkgs/master 0ed1aea taku0: nss: 3.30 -> 3.31
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #26571: firefox, firefox-bin: 53.0.3 -> 54.0, firefox-esr: 52.1.2esr -> 52.2.0esr [Critical security fix] (master...firefox-bin-54.0) https://git.io/vHdBx
NixOS_GitHub has left #nixos []
marsel has joined #nixos
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26526: rigsofrods: 20160412 -> 0.4.7.0 (master...ror-update) https://git.io/vHSzb
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm reopened pull request #26526: rigsofrods: 20160412 -> 0.4.7.0 (master...ror-update) https://git.io/vHSzb
NixOS_GitHub has left #nixos []
Wizek has joined #nixos
S0rin has quit [(Ping timeout: 240 seconds)]
S0rin has joined #nixos
Filystyn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #26587: glpk: 4.61 -> 4.62 (master...update_glpk) https://git.io/vHbWQ
NixOS_GitHub has left #nixos []
blahdodo has quit [(Quit: Bye bye)]
mbrock has joined #nixos
blahdodo has joined #nixos
arianvp2_ has joined #nixos
Itkovian has quit [(Ping timeout: 255 seconds)]
mudri has joined #nixos
Wizek__ has joined #nixos
nschoe has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
civodul has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
<mbrock> I wonder if it's possible to produce a Haskell executable package that doesn't incur a Nix dependency for all its Hackage dependencies...
thc202 has joined #nixos
<mbrock> like, it would have all its Hackage dependencies statically linked, and then installing it via Nix would require much fewer binary cache downloads
indi_ has joined #nixos
<sphalerite> joachifm: any particular reason you reopened my PR for updating rigs of rods?
<sphalerite> oh right I misread
<sphalerite> nvm
mudri has quit [(Ping timeout: 255 seconds)]
indi_ has quit [(Ping timeout: 255 seconds)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vHbBx
<NixOS_GitHub> nixpkgs/master fe04169 Pascal Wittmann: git-standup: init at 2.1.8
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
zeus_ has joined #nixos
therp has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
oida has joined #nixos
oida_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vHb0T
<NixOS_GitHub> nixpkgs/master 7c455b5 Domen Kožar: Revert "Fix #26441: avoid infinite recursion"...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vHb0E
<NixOS_GitHub> nixpkgs/master 72f530b Domen Kožar: Fix #26441 second try: avoid infinite recursion
NixOS_GitHub has left #nixos []
kkourt has joined #nixos
<boj> i'm trying to build a stack project with "nix-shell -p stack -p ncurses -p haskell.compiler.ghc802" and then "stack build". apparently it has a haskell dependency on terminfo, but fails to find ncurses headers. have looked at several related nix/terminfo/stack issues without any luck. anyone have any suggestions they could offer?
filterfish has quit [(Ping timeout: 240 seconds)]
<mbrock> aha, I got rid of most of the runtime derivation dependencies for my Haskell package with postInstall = "rm -rf $out/{lib,share}";
jacob_ has joined #nixos
jacob_ is now known as Guest10403
mudri has joined #nixos
<MagneticDuck> nix-store --register-validity --reregister seems to be stalling
<MagneticDuck> I enter the store path (including /nix/store) into stdin, followed by \n0\n, and then terminate input with ctrl-D
<MagneticDuck> if I don't have sufficient rights, I get an error when it tries to change the mode of the file to 1000
<MagneticDuck> ... oh wait, disregard this, it just takes a while
mbrock has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26526: rigsofrods: 20160412 -> 0.4.7.0 (master...ror-update) https://git.io/vHSzb
NixOS_GitHub has left #nixos []
arianvp2_ has quit [(Quit: arianvp2_)]
ericsagnes has quit [(Ping timeout: 258 seconds)]
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
filterfish has joined #nixos
arianvp2_ has joined #nixos
<MagneticDuck> given a file, how do I find the hash that `requireFile` would attribute to it?
JagaJaga has joined #nixos
magnetophon1 has joined #nixos
<MagneticDuck> nix-hash --type sha256 <file> gives a hash that's too long, apparently
<MagneticDuck> .. oh, base32 maybe?
<magnetophon1> Many thanks to whoever made emacs do nix syntax checking! :)
adamt has joined #nixos
freusque has quit [(Quit: WeeChat 1.7)]
<MagneticDuck> arrgh, it doesn't work
<MagneticDuck> I'm trying to run a derivation that uses a large (4 Gb) file, referenced through `requireFile`
<MagneticDuck> I manually copied it to the store with its correct path and reregistered it
<MagneticDuck> however, requireFile still doesn't pick up on it. Currently I'm calling it with the hash generated by nix-hash --type sha256 --base32
freusque has joined #nixos
roconnor has quit [(Ping timeout: 260 seconds)]
arianvp2_ has quit [(Quit: arianvp2_)]
katyucha has quit [(Quit: Lost terminal)]
erictapen has joined #nixos
arianvp2_ has joined #nixos
ThatDocsLady has joined #nixos
indi_ has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8198cc10f0 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<tilpner> Is there a way to get the hash of something that's been fetched into the store, without passing that hash around?
bennofs has quit [(Ping timeout: 258 seconds)]
<tilpner> And why is x = null ? (pkgs.fetchFromGitHub {}) a syntax error?
<tilpner> error: syntax error, unexpected '(', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):1:
[0x4A6F] has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
<sphalerite> tilpner: you can pass the derivation around
<sphalerite> tilpner: what context are you writing that in and what is it meant to mean? I can't think of a case where it would be valid
erictapen has quit [(Ping timeout: 246 seconds)]
<sphalerite> MagneticDuck: you can also use nix-store --add to add the file to the store which may be easier IIUC
<tilpner> sphalerite - I'm trying to construct a name for runCommand, but the input for this function could come from fetchGit or local ./...
<tilpner> sphalerite - So e.g. I have access to (pkgs.fetchgit { url = "https://g.tx0.co/git/tilpner/st"; }).drvPath
<tilpner> Which will output "/nix/store/8ll9div7y2azpm3hsfs59lz57pyqx9y6-st.drv"
<tilpner> But I want 8ll9div7y2azpm3hsfs59lz57pyqx9y6 without string manipulation
<tilpner> And I can't use .drvAttrs.outputHash, because that's apparently not set in this case
m0rphism has quit [(Quit: WeeChat 1.8)]
<sphalerite> But even string manipulation wouldn't get you the hash of what gets fetched into the store
<sphalerite> Why do you even want it?
<tilpner> Yes, I see that now. I was mistaken about the meaning of that hash, assuming it wasn't constructed from the rev but the hash of the repo to automatically maintain unique paths in the store
<tilpner> Wait, what is it constructed from?
<sphalerite> The derivation's hash? The derivation's contents
<tilpner> Is 8ll9div7y2azpm3hsfs59lz57pyqx9y6 the derivation's hash?
pie_ has joined #nixos
ixxie has joined #nixos
<tilpner> This may be an XY problem. I just want a suffciently unique name to pass to runCommand, from any derivation src that gets passed in
<sphalerite> yes, 8ll9... is the derivation's hash. Why do you want a unique name for the runCommand?
<tilpner> This runCommand would generate something based on that input derivation, and I want to make sure it doesn't collide with anything, so a name like rustRegistry-8ll9div7y2azpm3hsfs59lz57pyqx9y6 would be unique (the input is a rustRegistry src)
orivej has joined #nixos
<sphalerite> Why do you not want the name to collide with anything? The fact that it gets its own output path with a hash in it is sufficient for that
<gchristensen> tilpner: are you afraid of it colliding in the store?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight closed pull request #26574: mendeley: 1.17.9 -> 1.17.10 (master...update/mendeley-1.17.10) https://git.io/vHdiH
NixOS_GitHub has left #nixos []
<tilpner> Huh, another misunderstanding then. What's the meaning of the name passed to runCommand then? And where do I find a list of all this, so that I don't bother you?
<gchristensen> tilpner: /nix/store/bxr5lwdhhgfh1p28mh3w7kyc0spk7niz-bash-4.4-p5/bin/bash <- the name is bash-4.4-p5
filterfish has quit [(Ping timeout: 255 seconds)]
<gchristensen> the bxr5lwdhhgfh1p28mh3w7kyc0spk7niz is the crypto sum of all of the inputs to bash
<tilpner> I see. My worry was completely unfounded then, thank you
<gchristensen> :) you're welcome
<gchristensen> nixpkgs would be madness otherwise hehe
arianvp2_ has quit [(Quit: arianvp2_)]
<sphalerite> tilpner: did you sort out the syntax error issue yourself?
<tilpner> sphalerite - No, for now I just reverted to setting it in the arguments, but I would like to know why it doesn't work in a "let ... in": https://github.com/tilpner/nixpkgs/blob/2fbe4b0ba7885a5b57d67aba102ac3093bd9da8b/pkgs/top-level/rust-packages.nix#L9-L15
<tilpner> (Or nix-repl)
<sphalerite> Well, what's it even meant to mean?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight closed pull request #26578: cntlm service: cleanup non working config options (master...cntlm-service) https://git.io/vHFBU
NixOS_GitHub has left #nixos []
<tilpner> I wanted if x == null then fetchGit { ... } else x yesterday, providing a default similarly to how it's done in the arguments
ixxie has quit [(Read error: Connection reset by peer)]
<gchristensen> oh hehe you probably need (fetchgit {})
<sphalerite> Right
<sphalerite> but x being defined as null and x being absent from a set are very different :p
ixxie has joined #nixos
<gchristensen> hmmm interesting sphalerite :)
stallion has joined #nixos
filterfish has joined #nixos
<tilpner> So "?" is only valid in set syntax?
filterfish has quit [(Remote host closed the connection)]
<tilpner> I was confused by y = 42; x = null ? y being valid in nix-repl
<tilpner> (So not in a set)
filterfish has joined #nixos
<pie_> basically the compatibility section says why im sad about nixos using systemd and why we dont have it on other kernels yet :I http://blog.lusis.org/blog/2014/09/23/end-of-linux/
<sphalerite> tilpner: ? is only valid in a set-matching pattern, which is in a function definition
<sphalerite> AFAIU
<gchristensen> sphalerite: there is also:
<gchristensen> nix-repl> f = { bar = "hi"; }
<gchristensen> nix-repl> f ? foo
<gchristensen> false
<gchristensen> nix-repl> f ? bar
<tilpner> sphalerite - null ? y returns false in nix-repl. What does it do then?
<gchristensen> true
stallion has quit [(Ping timeout: 240 seconds)]
<sphalerite> oooh yes, forgot about that
<tilpner> Oh...
<sphalerite> So just an infix version of builtins.hasAttr
<gchristensen> ? seems to always return false on non-sets
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
<tilpner> Well, that's not confusing at all :P
<gchristensen> well it is asking if f has an attr named bar, and strings do not have an attr named bar
<gchristensen> nor do nulls or bools
magnetophon has joined #nixos
<tilpner> True, I'm just used to a type error instead
<magnetophon> I updated the jackaudio pkg to 1.9.11-RC1. Does it make sense to do a PR, or should I wait for 1.9.11 proper? I've been using and updating the 'unstable' version for months now, and it has always been rock solid.
filterfish_ has joined #nixos
tmaekawa has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
arianvp2_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] georgewhewell opened pull request #26589: pythonPackages.defusedxml: 0.4.1 -> 0.5.0 (master...bump-defusedxml) https://git.io/vHb64
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] selaux opened pull request #26590: rustRegistry: 2017-05-31 -> 2017-06-15 (master...update-rust-registry) https://git.io/vHb6g
NixOS_GitHub has left #nixos []
arianvp2_ has quit [(Quit: arianvp2_)]
tmaekawa has quit [(Quit: tmaekawa)]
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] frontsideair opened pull request #26591: flow: 0.46.0 -> 0.48.0 (master...flow-46-48) https://git.io/vHb65
NixOS_GitHub has left #nixos []
ixxie_ has joined #nixos
Tucky has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
snikkers has joined #nixos
cpennington has joined #nixos
<jophish> So, who's going to register nix.store
<ikwildrpepper> too expensive ;)
<jophish> I got an advert for $2.99 a year
<gchristensen> you sure?
<gchristensen> $5,600/yr here ...
<jophish> holy shit
<gchristensen> oh, 3 letter second level domain is premium
<ikwildrpepper> 2155 euro/year here
<pikajude> i've gotten adverts for free
<gchristensen> lol pikajude
<jophish> hahahah
<jophish> hmm, that addvert was a lie
<jophish> 7000$ from that site
<ikwildrpepper> lame
<jophish> perhaps there's a premium on three letter subdomains
<gchristensen> that is what gandi says
<gchristensen> nix.tools is cheap
<jophish> not too bad
<jophish> The suggestion after rejecting nix.store was nix.sucks
<gchristensen> also expensive I think
<jophish> can't imagine anyone buying that too soon
<gchristensen> someone already got nix.sh
erictapen has joined #nixos
<nixy> Ahhh vanity domains
<nixy> What fun
ericsagnes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fare opened pull request #26592: gerbil: 0.10 -> 0.11 (master...nixos-unstable) https://git.io/vHbP0
NixOS_GitHub has left #nixos []
<nixy> Somebody already has nix.wang :(
<gchristensen> hah! ".berlin" TLDs have a requirement that you have a contact _in_ berlin and they call out that if you don't have one, they will very gladly provide one for you
<gchristensen> (they == Gandi)
reinzelmann has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight pushed 1 new commit to master: https://git.io/vHbXq
<NixOS_GitHub> nixpkgs/master c0df448 Ekaterina Vaartis: apache-httpd: fix mod_perl by refering to apacheHttpdPackages (#26579)
NixOS_GitHub has left #nixos []
ixxie_ has quit [(Quit: Lost terminal)]
iyzsong has joined #nixos
arianvp2_ has joined #nixos
katyucha has joined #nixos
tmaekawa has quit [(Ping timeout: 255 seconds)]
ericsagnes has quit [(Ping timeout: 268 seconds)]
magnetophon1 has quit [(Ping timeout: 255 seconds)]
filterfish_ has quit [(Ping timeout: 240 seconds)]
adamt has quit [(Ping timeout: 255 seconds)]
mudri has quit [(Ping timeout: 246 seconds)]
<Unode> hi guys, few questions about nix and how it organizes the store.
<Unode> For a while I've had a nix setup in a non nixos machine and a non standard /share/nix location that works via NFS.
<Unode> This works 99% of the time but every now and then (with specific packages) things fail.
indi_ has quit [(Remote host closed the connection)]
<Unode> one of the issues I've encountered is that the a library is being used when nix tried to remove/replace it.
indi_ has joined #nixos
<Unode> Since this sits on NFS, the NFS system often leaves behind .nfs*** files to prevent resources from losing references to deleted 'shared' objects.
<gchristensen> I imagine it might be b/c live gc root paths on nfs-mounted stores aren't possible to validate
<Unode> this would all be great but for NFS but for nix this often results in "cannot remove directory" which then fails the compilation.
<Unode> (or perhaps the install).
<Unode> ... since compilation happens on a local folder.
<Unode> my question is, is there any way to workaround this issue?
<LnL> you can use NIX_OTHER_STORES for that
<Unode> LnL: I'm not familiar with NIX_OTHER_STORES
<Unode> can you elaborate a little (or point to documentation)
<Unode> gchristensen: that might also be true. Last time I tried a gc run pretty much bricked the whole store.
arianvp2_ has quit [(Quit: arianvp2_)]
<Unode> LnL: the current setup is, 1 machine has nix-daemon running and accepts requests via socket. Only this machine can 'write' to the store.
filterfish has joined #nixos
<LnL> not sure if it's documented in the manual
indi_ has quit [(Ping timeout: 260 seconds)]
<Unode> Other machines can read from it via NFS as mentioned above.
<Unode> LnL: google doesn't give me much on it.
<Unode> scattered bits here and there.
<LnL> you can also do something with NIX_REMOTE I think but that's only for 1.12
<Unode> the other missing bit of setup is that if users try to install things on other machines there's a socat tunnel that still talks to the first machine. This way even nix-shell works as expected on other machines.
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<Unode> this socat part is something I see as benefiting from some work as it's quite non-standard and brittle but I also understand that most people simply copy /nix to different machines instead of sharing it (e.g via NFS).
tmaekawa has joined #nixos
<Unode> LnL: so just to understand a bit better, what problem exactly would NIX_OTHER_STORES or NIX_REMOTE would solve?
<Unode> NIX_REMOTE I already use. It's set to 'daemon'.
<Unode> I'm not familiar with additional options other than set to void (NIX_REMOTE=)
<Dezgeg> I think NIX_OTHER_STORES could be used to copy things from the NFS to the local disk
<Unode> hum.. I don't think that's a target here.
<LnL> yes if you have eg. NIX_OTHER_STORES=/run/nix/remote-stores/*/nix
<Unode> I mean, the point of having the store on NFS is that one machine can install things and other machines with similar hardware can simply read and run from it.
<LnL> and you put your nfs mount there nix will import the paths from there if they are available
<Unode> perhaps one missing bit of information, I don't have root on the machine and /nix is not an option.
<Dezgeg> so this .nfs* problem occurs during compilation or gc or what?
<Unode> compilation currently happens on /dev/shm . The machine has enough RAM to do this. So far nothing failed due to this.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vHbD0
<NixOS_GitHub> nixpkgs/master 525c10e Domen Kožar: hackage2nix: purescript{,-bridge} compiles now
NixOS_GitHub has left #nixos []
<Unode> The .nfs happens (I believe) when copying things gfrom /dev/shm to the target destination which lives on NFS.
<Unode> I don't know enough of what nix does to understand what exactly is failing. During nix-store --repair-path this was definitely happening but there a store path is being gc'ed.
<sphalerite> gchristensen: Just got my laptop's keyboard and motherboard replaced, that may have fixed the key repeat issue
<sphalerite> Haven't seen it crop up yet in any case
<gchristensen> whoa, really? how did you get it done? free?
<sphalerite> yep, just asked @DellCares on twitter about it, answered a few questions, and they eventually sent an engineer to come do it
magnetophon1 has joined #nixos
<Dezgeg> hm, I would definitely imagine those .nfs problems happen during gc but that happening when compiling things sounds odd
<gchristensen> "sent an engineer" what does that mean? hmm
<sphalerite> gchristensen: a guy came to my flat with a new keyboard and motherboard and installed them
<gchristensen> no way
<sphalerite> yes way
<gchristensen> how big of a city do you live in? :P
<Unode> Dezgeg: I'm currently installing/compiling a relatively big update. One package that showed an error was icu but the log was unusable since it's running multiple jobs in parallel and only one output stream.
<sphalerite> Glasgow
<gchristensen> nice
<gchristensen> can you send me your convo? :)
<Dezgeg> you could nix-store -l it if you can figure out the .drv path
<LnL> Unode: and with 1.12 you can do something like this NIX_REMOTE="local?state=/home/alice/nix/var&real=/home/alice/nix/store"
<gchristensen> sphalerite: I live in a much smaller city than glasgow (~40k people or fewer)
<gchristensen> but I go to NYC all the time and would happily meet someone for a cup of coffee & a motherboard replacement...
<sphalerite> gchristensen: I doubt the service is limited to bigger towns, but you can always ask
<Unode> I'm waiting for this first compilation run to abort (running with -k) and then I can tackle the failing packages.
adamt has joined #nixos
<sphalerite> I'll send you the conversation as soon as I find a convenient way to export it
<Unode> LnL: what you that do exactly?
<gchristensen> screenshots or whatever would be just fine
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vHbye
<NixOS_GitHub> nixpkgs/master 4ac6821 Franz Pletz: unbound: 1.6.2 -> 1.6.3...
<NixOS_GitHub> nixpkgs/master cb59381 Franz Pletz: gnutls: remove dependency on unbound...
<NixOS_GitHub> nixpkgs/master 72c36db Franz Pletz: bind: 9.10.5 -> 9.10.5-P1 for CVE-2017-3140
NixOS_GitHub has left #nixos []
<Unode> Dezgeg: of the failing package?
<Dezgeg> yes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to release-17.03: https://git.io/vHbyo
<NixOS_GitHub> nixpkgs/release-17.03 64323a9 Robin Gloster: bind: 9.10.4-P6 -> 9.10.5...
<NixOS_GitHub> nixpkgs/release-17.03 9a45923 Franz Pletz: bind: 9.10.5 -> 9.10.5-P1 for CVE-2017-3140...
NixOS_GitHub has left #nixos []
<Unode> not sure how to get the .drv though. Let me see if I can get one to fail and then I have something to show.
<Unode> LnL: sorry I realized my english came out weird back there. I meant, "What does that specific setting do?" It uses sate and store from a different location while writing to the local one?
<Unode> From what I understand I kind of have to use nix-daemon at all times. I've ran into DB corruption in the past before nix-daemon.
<Unode> before *I started using nix-daemon
<raignarok> could someone help me with a setuid wrapper problem? What does this mean: „wrapper.c:204: main: Assertion `!(st.st_mode & S_ISGID) || (st.st_gid == getegid())' failed.“ Context: I'm trying to send mail from a php application executed by php-fpm via postfix' sendmail and it fails with that error.
fpletz[m] has joined #nixos
seppellll has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jchildren opened pull request #26594: antlr4_7: init at 4.7 (master...master) https://git.io/vHbSC
NixOS_GitHub has left #nixos []
magnetophon1 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] seppeljordan opened pull request #26595: guetzli: init at 1.0.1 (master...guetzli) https://git.io/vHbSP
NixOS_GitHub has left #nixos []
tmaekawa has quit [(Quit: tmaekawa)]
filterfish has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
Filystyn has quit [(Ping timeout: 268 seconds)]
arianvp2_ has joined #nixos
magnetophon1 has joined #nixos
<tilpner> Mic92 - Hey, I reduced the changes. Could you check again? [ https://github.com/NixOS/nixpkgs/pull/26582 ]
m0rphism has joined #nixos
mudri has joined #nixos
magnetophon1 has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
<riclima> Hi
<riclima> Is there a way to get a package description from the CLI interface?
<nixy> riclima: You can use the `--description` flag with nix-env to get a short description from the meta attributes
<riclima> Perfect, thanks!
orivej has quit [(Ping timeout: 240 seconds)]
adamt has quit [(Quit: WeeChat 1.4)]
roconnor has joined #nixos
k0001 has joined #nixos
bbarker has quit [(Read error: Connection reset by peer)]
<jophish> file pkgs/spec/data/street.jpg
sitwon has quit [(Ping timeout: 240 seconds)]
georges-duperon has quit [(Ping timeout: 240 seconds)]
magnetophon1 has joined #nixos
georges-duperon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHbdV
<NixOS_GitHub> nixpkgs/master b6534c6 Patrick Mahoney: ocamlPackages.core_bench: init at 113.33.03
<NixOS_GitHub> nixpkgs/master a3539d0 Jörg Thalheim: Merge pull request #26126 from pmahoney/ocaml-core_bench...
NixOS_GitHub has left #nixos []
bbarker has joined #nixos
Isorkin has quit [(Ping timeout: 260 seconds)]
indi_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vHbFL
<NixOS_GitHub> nixpkgs/master 07edb44 Tim Steinbach: linux: 4.4.71 -> 4.4.72
<NixOS_GitHub> nixpkgs/master a7efc9f Tim Steinbach: linux: 4.9.31 -> 4.9.32
<NixOS_GitHub> nixpkgs/master b4576c5 Tim Steinbach: linux: 4.11.4 -> 4.11.5
NixOS_GitHub has left #nixos []
MoreTea has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to release-17.03: https://git.io/vHbFq
<NixOS_GitHub> nixpkgs/release-17.03 e79a485 Tim Steinbach: linux: 4.4.71 -> 4.4.72...
<NixOS_GitHub> nixpkgs/release-17.03 c9c3dcc Tim Steinbach: linux: 4.9.31 -> 4.9.32...
<NixOS_GitHub> nixpkgs/release-17.03 23aa768 Tim Steinbach: linux: 4.11.4 -> 4.11.5...
NixOS_GitHub has left #nixos []
hotfuzz_ is now known as hotfuzz
magnetophon1 has quit [(Ping timeout: 260 seconds)]
indi_ has quit [(Ping timeout: 240 seconds)]
Isorkin has joined #nixos
acarrico has joined #nixos
lsix has joined #nixos
arianvp2_ has quit [(Quit: arianvp2_)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] danbst opened pull request #26596: `zoom-us` fixes (master...zoom-us-fix) https://git.io/vHbbA
NixOS_GitHub has left #nixos []
Wizek has quit [(Ping timeout: 240 seconds)]
Wizek__ has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #25954: manual: add "Emacs" section to manual (master...nixpkgs-emacs-manual) https://git.io/vHUgm
NixOS_GitHub has left #nixos []
mudri has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Zimmi48 opened pull request #26597: ocamlPackages.ppx_tools_versioned: 5.0alpha -> 5.0.1 (master...update_ppx_tools_versioned) https://git.io/vHbpv
NixOS_GitHub has left #nixos []
cpennington has joined #nixos
mkoenig has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] moretea opened pull request #26598: mysql module: add option to bind to an address (master...mysql-add-bind-option) https://git.io/vHbhl
NixOS_GitHub has left #nixos []
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<gchristensen> MoreTea: might want to double-check your diff :)
<MoreTea> oh lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vHbh9
<NixOS_GitHub> nixpkgs/master 19f8213 Robert Helgesson: perl-Perl-Critic: 1.126 -> 1.128
NixOS_GitHub has left #nixos []
<MoreTea> I'm interested in declarative mysql permissions
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
indi_ has joined #nixos
bennofs has joined #nixos
Rotaerk has quit [(Quit: Leaving)]
<MoreTea> I'm afraid that it would be a minefield of edge cases..
<gchristensen> it would
<gchristensen> heh
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
indi_ has quit [(Ping timeout: 260 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<MoreTea> use mysql; alter table db add column nix_hash char(32);
<MoreTea> moehaha
magnetophon1 has joined #nixos
<MoreTea> if this is allowed, it should be fairly trivially actually!
<MoreTea> Just some mundane work to convert nixos options into an sql statement
Mercuria1Alchemi has quit [(Ping timeout: 240 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
marsam has joined #nixos
ilyaigpetrov has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
ericsagnes has joined #nixos
<dtzWill_> aw man, new permissions security on Nix is rough re:evaluating old nixpkgs
<dtzWill_> although hopefully the fixes are straightforward and/or can be cherry-picked from master O:)
goibhniu has joined #nixos
<dtzWill_> "why did so many packages suddenly start failing" xD
<dtzWill_> eep I have a tail
dtzWill_ is now known as dtzWill
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #26599: ocamlPackages.utop: allow utop to locate topfile (master...utop) https://git.io/vHNfb
NixOS_GitHub has left #nixos []
* dtzWill wonders: Can the nixStable in release-17.03 necessarily build the channel? (AFAIK no explicit dependency on 'nix' from the packages...)
pie_ has quit [(Ping timeout: 240 seconds)]
erasmas has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
FRidh has quit [(Ping timeout: 240 seconds)]
* dtzWill answers his own question: "no"
<dtzWill> hmm
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Baughn closed pull request #21992: ipfs: Set IPFS_PATH globally when daemon is enabled (master...ipfs-env) https://git.io/vMys3
NixOS_GitHub has left #nixos []
freusque has quit [(Quit: WeeChat 1.7.1)]
amosbird has quit [(Quit: ZNC 1.6.4 - http://znc.in)]
amosbird has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
freusque has joined #nixos
* dtzWill files issue and tries to gather list of failing packages
Wizek has joined #nixos
Wizek__ has joined #nixos
spinus has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
<MoreTea> a style question about the module system. Is every level of nested attribute sets supposed to be a new module?
<MoreTea> or are proper attrsets accepted as well?
arjen-jonathan has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 3 new commits to master: https://git.io/vHNI2
<NixOS_GitHub> nixpkgs/master 8bc737d danbst: zoom-us: fix facebook and SSO login...
<NixOS_GitHub> nixpkgs/master 6d6d2fd danbst: zoom-us: fix webcam video...
<NixOS_GitHub> nixpkgs/master 9101fe8 Shea Levy: Merge branch 'zoom-us-fix' of git://github.com/danbst/nixpkgs
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #26596: `zoom-us` fixes (master...zoom-us-fix) https://git.io/vHbbA
NixOS_GitHub has left #nixos []
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
indi_ has joined #nixos
seppellll has quit [(Quit: Leaving)]
darlan has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
indi_ has quit [(Ping timeout: 260 seconds)]
<gchristensen> if anyone is interested in how Tumblr uses NixOS: https://engineering.tumblr.com/post/161854099032/jetpants-integration-testing
athan_ has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<ikwildrpepper> gchristensen: cool
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #26601: thunderbird, thunderbird-bin: 52.1.1 -> 52.2.0 [Critical security fixes] (master...thunderbird-bin-52.2.0) https://git.io/vHNq1
NixOS_GitHub has left #nixos []
<MoreTea> nice gchristensen!
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<sphalerite> gchristensen: nice! Except the syntax highlighting :p
<grahamc> Yeah... :)
<grahamc> Thanks! Super excited to open source it :)
simukis has joined #nixos
goibhniu has quit [(Ping timeout: 246 seconds)]
lsix has quit [(Remote host closed the connection)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHNmA
<NixOS_GitHub> nixpkgs/master 901069c Théo Zimmermann: ocamlPackages.ppx_tools_versioned: 5.0alpha -> 5.0.1
<NixOS_GitHub> nixpkgs/master 9698439 Jörg Thalheim: Merge pull request #26597 from Zimmi48/update_ppx_tools_versioned...
NixOS_GitHub has left #nixos []
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
Itkovian has quit [(Ping timeout: 268 seconds)]
johnsonav has quit [(Ping timeout: 240 seconds)]
riclima has joined #nixos
ison111 has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #26602: shells-environment: do not let sudo make perl disfunctional (master...issue-25613) https://git.io/vHNOA
NixOS_GitHub has left #nixos []
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
jensens has joined #nixos
snikkers has quit [(Ping timeout: 255 seconds)]
trikl has joined #nixos
arianvp2_ has joined #nixos
goibhniu has joined #nixos
FRidh has joined #nixos
<trikl> I'm trying to compile a KDE package that depends on Qt5's QtCore. Its CMakeLists.txt uses kdelibs' FindQt4 to try to find dependencies, but although I added qtbase as a buildInput (qtbase contains include/QtCore) QtCore is not found. Any suggestion?
<bennofs> trikl: it uses FindQt4 to find Qt5?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<trikl> bennofs: Eh, good point, yes
<clever> [6]- Segmentation fault chromium
<bennofs> clever: o.o
<clever> again??
magnetophon1 has quit [(Ping timeout: 240 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
k0001 has quit [(Remote host closed the connection)]
<sphalerite> The constant dilemma... "This build has been running for a while now, should I restart it with more cores so it goes faster or will that end up taking more time overall?"
k0001 has joined #nixos
Itkovian has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
fnljk has quit [(Disconnected by services)]
fnljk_ has joined #nixos
arianvp2_ has quit [(Quit: arianvp2_)]
arianvp2_ has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
mudri has joined #nixos
<trikl> bennofs: So I was checking a version of the package different of the version I was trying to build. Qt4 has QtCore in pkgs.qt4.out, which I added as a buildInput, but FindQt4 still doesn't find it
<clever> trikl: did you also add pkgconfig to buildInputs?
<trikl> I did not
<clever> try doing that and see if anything changes
erictapen has quit [(Ping timeout: 240 seconds)]
<trikl> Same
<bennofs> trikl: you probably need to add pkgs.qt4.dev
<trikl> bennofs: I checked that. include/QtCore is in pkgs.qt4.out
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
Itkovian has quit [(Ping timeout: 258 seconds)]
<bennofs> trikl: yes but the pkg-config files are in .dev
<clever> bennofs: its also usually better to just add pkgs.qt4, and then let the stdenv figure out which outputs to use
<bennofs> probably
<trikl> I added both qt4.out and qt4.dev to buildInputs, but it still doesn't find it
indi_ has joined #nixos
<clever> cmake often uses pkgconfig to find things, and it needs pkgconfig in the buildInputs to do so
<trikl> clever: I added pkgconfig to buildInputs too
ryanartecona has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
indi_ has quit [(Ping timeout: 268 seconds)]
Guest10403 has quit [(Ping timeout: 246 seconds)]
trikl has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
jacob_ has joined #nixos
jacob_ is now known as Guest33244
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
freusque has quit [(Quit: WeeChat 1.7.1)]
myguidingstar has joined #nixos
magnetophon1 has joined #nixos
<myguidingstar> why there is no "programs.ssh.enable" option in configuration.nix?
jensens has quit [(Ping timeout: 240 seconds)]
<myguidingstar> how do I use ssh with configured values in "programs.ssh.*" ?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
freusque has joined #nixos
arianvp2_ has quit [(Quit: arianvp2_)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
teodorlu has joined #nixos
<teodorlu> Hello! I have a naïve question. Why don't distributions like Ubuntu just adopt
<teodorlu> Nix?
<teodorlu>
<teodorlu> To me, the choice between basing your product on something that may fail and
<teodorlu> something that may not is easy. Is there something I'm missing?
<ToxicFrog> That's not the choice, though; it's a choice between two things that can both fail but in mostly different ways
marsel has quit [(Ping timeout: 255 seconds)]
<disasm> myguidingstar: what are you trying to do? enable/disable ssh is in services.openssh, not program. Programs is more things like starting the agent for users, etc...
<ToxicFrog> And nix has some sharp failure modes, e.g. if any one installed package is broken in the channel(s) you use you can no longer install/update anything until it's fixed.
<teodorlu> Has that been a problem for Nix?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<teodorlu> I've never experienced the channels not working.
<disasm> teodorlu: someone could if they wanted. I think they have so much invested in their existing systems, they don't want to make a switch.
<ToxicFrog> Getting software that expects FHS to work right is full of land mines; Steam works by just providing it with an FHS chroot, AIUI, and KDE5/Plasma5 have recurring issues with following symlinks into /nix/store and then baking references to them into the config files which then break when updates are installed.
<myguidingstar> disasm: I want to use ssh client. I find intersting default values of programs.ssh.*
<ToxicFrog> teodorlu: lucky you! Chrome was broken for a few days in 17.03 earlier this month, for example.
<disasm> myguidingstar: define what you mean by ssh client. You want to ssh from one host to another?
<teodorlu> FHS?
<sphalerite> Filesystem Hierarchy Standard
<ToxicFrog> Filesystem Heirarchy Standard, i.e. the filesystem layout used by "normal" linux distros
<teodorlu> Thanks
<myguidingstar> from my local machine to some remote host
<disasm> err myguidingstar ^^
arianvp2_ has joined #nixos
<ToxicFrog> myguidingstar: you probably just want openssh, then?
athan_ has quit [(Ping timeout: 240 seconds)]
<ToxicFrog> Like, add it to systemPackages or install it with nix-env
<ToxicFrog> programs.ssh.* is for setting system-wide defaults for ssh configuration.
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<myguidingstar> I installed openssh
arianvp2_ has quit [(Client Quit)]
<ToxicFrog> Ok, you should now be able to run `ssh` and do the thing.
<myguidingstar> programs.ssh.startAgent is true by default
<myguidingstar> and programs.ssh.askPassword is some x11 program
<ToxicFrog> Yes?
<ToxicFrog> This is all normal
<ToxicFrog> What is your question/problem?
<myguidingstar> so I guess that program should ask me for the first time I tried to use ssh
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<MagneticDuck> how do I find the hash that requireFile expects, given a file in the store that I want it to refer to?
<teodorlu> Disgarding invenstment and switching costs, do you think the current issues with Nix are fixable to the extent that Nix can become a strictly better (in every regard) package manager than apt-get and others?
<myguidingstar> which is not happening and I am having to run ssh-add manually
<disasm> myguidingstar: ah, I see what you're saying now :)
<sphalerite> teodorlu: well, in what regards is nix not a strictly better package manager yet? :)
Itkovian has quit [(Read error: Connection reset by peer)]
<myguidingstar> :)
<sphalerite> myguidingstar: look at the AddKeysToAgent option in man ssh_config
<teodorlu> Some issues were mentioned above! I use Nix for Ubuntu for everything I can, but I stick to apt-get for packages that have to integrate a lot with the rest of the system.
ryanartecona has quit [(Quit: ryanartecona)]
<sphalerite> teodorlu: nix will never be a better package manager than the native one on distros that aren't based on it
<teodorlu> (And I guess we don't have to argue that Nix is great on this channel)
<sphalerite> If you want nix to integrate with stuff, you want NixOS :)
<teodorlu> What if it was adopted to replace apt-get?
<teodorlu> Yeah, I know. Still, not as ... easily usable as Ubuntu. Yet.
<sphalerite> myguidingstar: you can add a definition of the setting using programs.ssh.extraConfig
<MagneticDuck> hey, are we discussing problems with nix the package manager?
acertain has quit [(Ping timeout: 268 seconds)]
<disasm> I agree, most people that want nix are going to want the declarative configuration.nix you get with nixos.
snikkers has joined #nixos
<disasm> It's one of those things, once you get used to it, you never go back :)
<ToxicFrog> I'm totally sold on NixOS for servers, but I'm considering switching my laptop back to SUSE. It would mean switching away from ZFS as well, but on the other hand, no longer needing to deal with nix-related issues with steam, or dbgl, or the like.
<MagneticDuck> how about the problem I'm having right now -- I can't use the Mathematica installer to install Mathematica, but there's a derivation that uses it to create a Mathematica derivation
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<myguidingstar> fyi, I thought I need something like programs.ssh.enable because of the case I've had with fish shell
<ToxicFrog> And yeah, the prospect of using nix-on-suse is completely unappealing; it feels like it'd get me the worst of both worlds.
<MagneticDuck> the problem is, the whole thing is about 4G and nix-store --add literally puts the whole file in memory (why?)
<sphalerite> teodorlu: I don't think apt (apt-get is only one tool that's part of apt as a whole) can be replaced by a package manager that breaks FHS as part of its model at all
<ToxicFrog> configuration.nix is what originally attracted me to nixos, since my ansible configuration was getting increasingly large and fragile.
<MagneticDuck> so now I'm jumping through hoops involving remounting /nix/store and trying to figure out what requireFile wants
<myguidingstar> first, I just added the fish to system packages and not enable programs.fish, and no shell aliases available to my fish
<MagneticDuck> as usual, there's no documentation, so I'll just read the definition of requireFile and work from there
<myguidingstar> until I enable programs.fish, all the shell aliases work
MichaelRaskin has joined #nixos
<myguidingstar> that's why I thought of programs.ssh.enable :)
<sphalerite> myguidingstar: yes, I was a little confused by the absence of programs.ssh.enable while looking that stuff up just now too...
<teodorlu> What about all the people that just use Ubuntu because "it's easy and works"? I agree that configuration.nix is a better solution than scattering system config all around. Way better. My feeling, though, is that what Nix needs now is more developer time, and Ubuntu (for example) has plenty. How can we make a compelling argument for them that allows them to keep what they have created?
JagaJaga has quit [(Ping timeout: 240 seconds)]
<teodorlu> I just want people to give higher priority to Nix packages for distribution.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] k0001 opened pull request #26603: ghc821: init at 8.2.1-rc2 (a.k.a., 8.2.0.20170507) (master...ghc821rc2) https://git.io/vHN4q
NixOS_GitHub has left #nixos []
<ToxicFrog> myguidingstar: yeah, that's a recurring issue with shells in general in nix; I had the same experience with zsh
snikkers has quit [(Ping timeout: 260 seconds)]
<ToxicFrog> teodorlu: before you can start competing with Ubuntu on those grounds, IMO, you need good documentation and a foolproof, user-friendly installer; Nix has neither. So that's a lot of groundwork.
<sphalerite> teodorlu: I don't think that will happen. Canonical seem to be pretty invested in their "snaps" thing
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
arianvp2_ has joined #nixos
<teodorlu> Ubuntu 18.04 drops their "Unity" thing for Gnome :)
<disasm> teodorlu: the biggest problem is you'd have to retrain all the power users that use ubuntu as well. With nix, now they have to specify dependencies in the nix store for building their applications instead of just having everything already in /usr/lib. It's rather fundamentally different way of looking at packaging. And not a lot of folks are using nix-shell to develop their apps.
<clever> disasm: and i often see people new to nix trying to nix-env -i every library, then wonder why it doesnt work
<teodorlu> Yeah, that's right. Developer overhead as well. I don't presume it's possible to do some kind of static analysis to find /what/ packages in /usr/lib that are needed, and suggest a starting point for a Nix configuration?
arianvp2_ has quit [(Client Quit)]
<disasm> clever: exactly... I never let my nix-env get more than 5 or 6 packages in it at a time. If it's specific to a project, those packages go in a nix-shell. If it's something I want all the time, it eventually makes it into configuration.nix.
<teodorlu> clever: I'm installing things with nix-env -iA. Kinda wondering when -i is more useful, and why it's default.
<clever> i always say to use -iA
<clever> its much faster
nschoe has quit [(Quit: Program. Terminated.)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<sphalerite> -i is never more useful iiuc, and it's default because of legacy. The new CLI defaults to it I believe
<teodorlu> Nice to hear
snikkers has joined #nixos
pxc has joined #nixos
<sphalerite> ugh, qemu takes ages to compile
q6AA4FD has quit [(Ping timeout: 246 seconds)]
riclima has joined #nixos
<teodorlu> If we only could go back and give Nix to K&R
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<gchristensen> it is too powerful for that time
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
<teodorlu> I think they were pretty smart
<gchristensen> I think nix can only exist when it is okay to waste processing power and disk space in the name of sanity
<teodorlu> Good point
<sphalerite> Can I pause a nix build? Sending SIGSTOP to nix-build doesn't stop the actual job, and my laptop's running out of battery but I don't want to lose the progress it's made on the build
<teodorlu> When there were only one version of a program, why use different ones under limited resources.
<gchristensen> sphalerite: brutal ...!
<clever> sphalerite: when using nix-daemon, you have to stop the child of the daemon, not the nix-build that is remotely triggering it
<sphalerite> and iirc the nix daemon will kill a build if it doesn't produce any output for too long, so I don't want to trigger that by just stopping the build process either...
ryanartecona has joined #nixos
<clever> sphalerite: yeah, that seems like a tricky thing
<sphalerite> I could stop the whole daemon maybe? :D
<clever> sphalerite: maybe
q6AA4FD has joined #nixos
<sphalerite> what's the worst that could happen...
<clever> no other builds can take place, oh right one other thing
<clever> sphalerite: nix-daemon will fork out a child for each client, and i believe that child is responsible for the timers
<clever> sphalerite: if you check "pstree", you should see a child with the pid of nix-build in its arguments
<clever> that sub nix-daemon is the one you want to sigstop
<clever> then the root nix-daemon can still do new builds
<sphalerite> I just did sudo pkill -STOP nix-daemon :p
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<sphalerite> I don't actually need to do any new builds in the meantime so whatever
<clever> and make sure it goes to every child of that as well
magnetophon1 has quit [(Ping timeout: 240 seconds)]
<sphalerite> I stopped the make processes as well, I think that should be enough?
<clever> yeah
<clever> once the gcc's under it finish, it will hang
nevermind has joined #nixos
<sphalerite> Yeah the gccs have gone zombie
<clever> yep, waiting for make to waitpid() them
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite> Sorry gcc, your parents are asleep. You'll have to wait a little.
Sonarpulse has quit [(Ping timeout: 260 seconds)]
<clever> ive also see a bug, only on arm i believe
<clever> where make doesnt waitpid
<clever> so it hangs just like above, with no sigstop to blame
<clever> but if i sigchld the make, the build resumes like everything is ok
<sphalerite> huh
<sphalerite> kernel bug? Or make?
<clever> i'm guessing its a race condition in make, where the child finishes too quickly, before the sigchld handler is setup
<sphalerite> ah
<MagneticDuck> who wants to guess how long it takes for nix-prefetch-url to pull a 4 Gb file from a local path?
<clever> irssi had a similiar problem in /exec at one time
<sphalerite> MagneticDuck: many
<clever> if the child exited, irssi stopped reading the stdout pipe
<MagneticDuck> ... on a machine with 3 Gb free RAM
<clever> so a command that does a ton of output and quits asap, like df -h, will get truncated
<clever> irssi would stop at child exit, not at eof
k0001 has quit [(Remote host closed the connection)]
<sphalerite> oh, that's convenient
<sphalerite> Can't make set up the SIGCHLD handler before forking?
<clever> it would often truncate the output, id have to /exec -o df -h ; sleep 2
k0001 has joined #nixos
<sphalerite> Or the child wait for the SIGCHLD handler to be set up before execing?
<clever> sphalerite: i'm purely guessing on how i would have written it and could have messed up, havent checked the make source
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> but it could do those things
<sphalerite> ah right
stallion has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
zeus_ has joined #nixos
MichaelRaskin has quit [(Ping timeout: 240 seconds)]
chpatrick has joined #nixos
<chpatrick> is it possible to access the running nixos config from a nix-shell script?
myguidingstar has quit [(Quit: ChatZilla 0.9.93 [Firefox 53.0.3/20170608225630])]
<MagneticDuck> but yeah, does anyone have a clue what hash requireFile is expecting? I have a thing in the nix store, how do I convince requireFile to refer to it?
<chpatrick> specifically I would like to make a buildenv that sets ld_library_path to include "${config.boot.kernelPackages.nvidia_x11}/lib"
<MagneticDuck> it's not `nix-hash --base32 --type sha256 <file>`
<clever> MagneticDuck: i believe its the hash of the NAR file
endformationage has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> MagneticDuck: if you ran nix-store --dump on the path, then pipe that nar into nix-hash, i think
k0001 has quit [(Remote host closed the connection)]
<clever> MagneticDuck: and also, if you just manualy copy something into the store, db.sqlite wont say its valid, and nix will just delete it
k0001 has joined #nixos
<MagneticDuck> clever: I already did the magical reregistration dance
<clever> ah
<clever> let me check some figures on this end
* MagneticDuck waits patiently for things to stop using swap memory on the hard disk
indi_ has joined #nixos
q6AA4FD has quit [(Ping timeout: 268 seconds)]
stallion has quit [(Quit: stallion)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #26525: pythonPackages.gensim: init at 2.1.0 (master...boto-2.47) https://git.io/vHSRP
NixOS_GitHub has left #nixos []
<clever> nix-repl> oraclejdk.meta.position
<clever> "/nix/store/x8h72iqmsyzd1yyjwrwl7jjf7jlsh9jz-nixos-17.09pre108200.13f2f8673b/nixos/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix:65"
<clever> MagneticDuck: with this, i can find the source for the jdk expression
MichaelRaskin has joined #nixos
<clever> and its using sha256_x86_64 which is passed in from elsewhere
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> 0dhj623ya01glcl3iir9ajifcrf6awhvpk936x9cxfj8zfyibck2 i think
stallion has joined #nixos
stanibanani has joined #nixos
<clever> /nix/store/kl2nmapmbrgj62nw4bpmw51x6sfck7f9-jdk-8u131-linux-x64.tar.gz
<clever> MagneticDuck: if i download the file it names, and --add-fixed sha256 it, i get this storepath
<clever> [clever@amd-nixos:~]$ nix-build '<nixpkgs>' -A oraclejdk.src
<clever> MagneticDuck: and this command is happy with it
indi_ has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
<MagneticDuck> clever: alright -- and to find that hash used in jdk-linux-base.nix:65, you pipe nix-store --dump into nix-hash?
<clever> nope, that gives an entirely new hash
MichaelRaskin has quit [(Ping timeout: 258 seconds)]
<MagneticDuck> so where would you get the requireFile hash if you can't nix-store -add?
magnetophon1 has joined #nixos
<clever> [clever@amd-nixos:~]$ nix-hash --base32 --type sha256 Downloads/jdk-8u131-linux-x64.tar.gz --flat
<teodorlu> Question: when installing Nix on Ubuntu, do I get a declarative file I can put my list of installed packages in (so that I can version control it and copy it to other systems)?
<clever> 0dhj623ya01glcl3iir9ajifcrf6awhvpk936x9cxfj8zfyibck2
<clever> MagneticDuck: aha, --flat is the key
Sonarpulse has joined #nixos
stanibanani has left #nixos []
<clever> teodorlu: you can do that with a buildEnv in config.nix
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
zeus_ has quit [(Read error: Connection reset by peer)]
riclima has joined #nixos
q6AA4FD has joined #nixos
<teodorlu> clever: I create a file named config.nix in ~/.profile/config.nix and use buildEnv in there?
zeus_ has joined #nixos
<clever> teodorlu: yeah
<teodorlu> Thanks!
<clever> teodorlu: line 12- makes a new package called mystuff, which i can then nix-env -iA nixpkgs.mystuff
* MagneticDuck sure is curious why nix likes to read *entire* files into memory before writing to the store
<MagneticDuck> I hope it has a pretty good reason
<teodorlu> Cool
<clever> MagneticDuck: it needs to know the hash of the file before it knows where to write it, and it doesnt want you being naughty and changing the file between the hash and copy
<MagneticDuck> clever: apparently the hash in requireFile matches the hash I get when passing --flat, so the issue is that I didn't copy to the store correctly
<teodorlu> It seems I can't write to ~/.nix-profile/config.nix
<clever> MagneticDuck: what name did you give it in the store?
<clever> teodorlu: oh, it has to go in ~/.config/nixpkgs/config.nix
<MagneticDuck> well, the name doesn't use the --flat hash
<clever> teodorlu: nix-env manages all of .nix-profile, which must never be modified
<teodorlu> ah, ok. Thanks.
<clever> /nix/store/kl2nmapmbrgj62nw4bpmw51x6sfck7f9-jdk-8u131-linux-x64.tar.gz
<clever> MagneticDuck: the hash in this path has no visible connection to the --flat hash
<clever> and if that path is wrong, nix wont find the file
<MagneticDuck> I don't suppose I can refer to a particular store path in a derivation?
marsel has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> MagneticDuck: you may want to check the .drv file thats failing, to see the right storepath
<clever> then copy it there, and do the registration thing again
<MagneticDuck> the drv file that's failing?
<clever> ah, that was in step 1, maybe something got messed up then
<clever> MagneticDuck: can you gist the entire console output from the failing nix-build?
<MagneticDuck> clever: well there's not much to see
<clever> the paths and hashes are important
<MagneticDuck> it says it's going to produce the file with a hash that's not my hash, and then it gives me the requireFile message
<clever> i need to see those exact paths
<MagneticDuck> under "these derivations will be built:" in the nix-build output, I have /nix/store/y83prin1dixpzp78mqg9lnzmf1jldxgw-Mathematica_11.0.1_LINUX.sh.drv
<clever> yeah, thats the hash of the drv. not the output
<MagneticDuck> and the file in my store is /nix/store/dchih04sii8rrvklkjvkfwbmvfs1anks-Mathematica_11.0.1_LINUX.sh
<clever> run cat on that .drv file, and youll see a second path near the top
<MagneticDuck> oh I selected the wrong thing
<clever> "cat /nix/store/y83prin1dixpzp78mqg9lnzmf1jldxgw-Mathematica_11.0.1_LINUX.sh.drv" and the first path should be the path its expecting to find in /nix/store/
<MagneticDuck> which is /nix/store/j413aqsnbcmj4dz1bm816ih446sv91r2-Mathematica_11.0.1_LINUX.sh
<clever> so the file is at the wrong storepath
acertain has joined #nixos
<clever> with the correct path
stanibanani has joined #nixos
<MagneticDuck> yeah I forgot the --flat
stanibanani has left #nixos []
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
q6AA4FD has quit [(Ping timeout: 258 seconds)]
eacameron has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
ertes has quit [(Ping timeout: 246 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<sphalerite> for anyone interested: stopping/resuming the build seems to have worked
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
MoreTea has quit [(Quit: Leaving)]
stanibanani has joined #nixos
jake_ has joined #nixos
<clever> sphalerite: are you able to restart hydra jobs? http://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<LnL> gchristensen: nice work!
admin[m] has joined #nixos
<jake_> is there a way to install nixos into a chroot, kind of like how debootstrap creates a debian chroot?
q6AA4FD has joined #nixos
<ToxicFrog> jake_: nixos-install --root /path/to/chroot
<clever> jake_: thats exactly what nixos-install does
<jake_> and that won't mess with any grub/bootloader stuff in the existing system?
<ToxicFrog> To actually use it live you'll probably have to bind-mount /dev /proc /sys into it but nix-install should handle the rest.
<ToxicFrog> It *can* but it doesn't have to.
<clever> jake_: it will only mess with the device listed in boot.loader.grub.device within the configuration.nix file
Shados has quit [(Quit: No Ping reply in 180 seconds.)]
<clever> you can set that to "nodev" to turn that off
<clever> ToxicFrog: nixos-install handles all of those bind-mounts for you
<jake_> so it's totally usable as a subdirectory within another operating system? permanently, not just as a temporary way to install it as the main os?
mkoenig has quit [(Ping timeout: 240 seconds)]
a123123123[m] has joined #nixos
<ToxicFrog> clever: Don't forget to set boot.loader.efi.canTouchEfiVariables to false as well if you're on a UEFI system.
<ToxicFrog> er
<MagneticDuck> clever: ahahah
<ToxicFrog> jake_: ^
Shados has joined #nixos
<MagneticDuck> and then after all that, it fails at runtime
<clever> jake_: maybe, but the systemd stuff will want to be pid 1, so you would want to look into containers
<ToxicFrog> clever: it does? Is there anything special needed to get it to do that, say, on every boot so you can just `chroot` into it?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> ToxicFrog: nixos-install also has a --chroot flag, that will just run bash instead of nix-build
<clever> ToxicFrog: so you can get a shell inside a nixos
<ToxicFrog> Oh sweet.
<a123123123[m]> can I verify somehow that executables in /nix/store/* weren't patched, by comparing to the hash value?
<clever> a123123123[m]: nix-store --verify --check-contents
<jake_> wait so i'm a little confused. what exactly are the set of steps i should do to get a subdirectory i can chroot into that has nix-os in it but doesn't affect my larger os
<simpson> clever: Is that basically $(guix challenge) for Nix?
<clever> simpson: not familiar with guix commands
<a123123123[m]> clever: cool, that was fast
<sphalerite> clever: No, why would I be able to?
<simpson> clever: Me neither, but it rebuilds a package from scratch to check the hashes.
q6AA4FD has quit [(Ping timeout: 255 seconds)]
<clever> simpson: ah, thats --check in nix
<clever> simpson: --verify --check-contents only checks that the hash matches what it originaly was at install time
<clever> sphalerite: ah, thought you might, its not that big of an issue
<clever> jake_: what is your end goal with the nixos chroot?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz opened pull request #26605: ssh module: disable agent by default (master...disable-ssh-agent) https://git.io/vHN2y
NixOS_GitHub has left #nixos []
<sphalerite> clever: heh, well I feel flattered that you think that much of my involvement in nixos :D
<clever> :D
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<disasm> jake_: why not use systemd-nspawn?
<clever> ah, make-system-tarball may help more now that i think of it
stanibanani has quit [(Remote host closed the connection)]
hellrazor has joined #nixos
<clever> jake_: is the host systemd based?
<jake_> clever: to use on a chromebook. it has a linux system with limited permissions in the root. i want to have the chrome os but also be able to chroot into a nixos system within that for developement
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vHNaJ
<NixOS_GitHub> nixpkgs/master 1b6176e Roger Qiu: gnupg module: Added extra and browser sockets (#26295)...
NixOS_GitHub has left #nixos []
stanibanani has joined #nixos
q6AA4FD has joined #nixos
<jake_> clever: i'm not quite sure what being sytemd based means
afics has quit [(Ping timeout: 240 seconds)]
<clever> jake_: does systemd-nspawn exist in $PATH as root?
arianvp2_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] robx opened pull request #26606: python-modules/protobuf: fix darwin build by using $CXX instead of $CC (master...fix-python-protobuf) https://git.io/vHNa4
NixOS_GitHub has left #nixos []
<jake_> clever: no
arianvp2_ has quit [(Client Quit)]
<clever> ah, then a pid namespace may be tricky
<clever> jake_: i can still write an expression that will get you the root for chroot, give me a few minutes
<jake_> clever: what is the importance of the pid namespace
<jake_> clever: thank you!
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> the systemd inside the chroot wants to be pid 1
<clever> and a pid namespace gives the guest its own pid table
<jake_> clever: oh and nixos relies on systemd
<clever> yeah, so you wont have any services
<clever> just a raw shell
<jake_> clever: okay so getting the pid namespace would be nice, but a raw shell with nixos inside would still be better than nothing. how do i set that up at all?
<clever> jake_: but you could get most of the same things if you just install normal nix
<clever> jake_: give your user ownership of /nix/ and then run curl https://nixos.org/nix/install <pipe> sh
<clever> (this keyboard doesnt have a working pipe key)
<jake_> clever: I don't have ownership of the root directory, so i'm going to need to chroot anyway
<clever> the chroot command needs root
<jake_> clever: my backup plan is using debootstrap to create a debian chroot and installing nix inside there, but i figured it'd be better
<jake_> clever: sorry ownership is the wrong term
<jake_> clever: i can become root, but the file system is mounted read only in the root
<clever> ahhh
<clever> mount / -o remount,rw
<clever> you can just make it writable
<clever> then put a symlink at /nix pointing to somewhere that will remain writeable later
<jake_> clever: interesting. i still want to try and get this chroot thing working though because it leaves the whole chromeos system alone and i want to try and have it integrate with crouton, which creates chroot, because it provides integration with the chrome gui
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<jake_> clever: so is there a way to get it working from a chroot, with or without the pid namespace?
<clever> jake_: ok, let me write the tarball thing
<jake_> clever: thank you! also the remount fails with an error that it is write protected
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #26607: vivaldi: fix space in sha256 (master...vivaldi-sha256) https://git.io/vHNVB
NixOS_GitHub has left #nixos []
<jake_> clever: i do think there is a known way to get around that if i really tried though
<clever> jake_: ah, then the block device itself might be read-only
stanibanani has quit [(Quit: Leaving.)]
<clever> the nixos-install wouldnt have worked either then
<clever> since that needs nix on the host
<sphalerite> I'm writing some nixos tests for some changes I'm working on. I need multiple machines with different configurations for them, but these machines never need to interact with each other. Should I create a single test with multiple machines, or create multiple tests? In the latter case, how do I put multiple tests in one file?
freusque has quit [(Quit: WeeChat 1.7.1)]
<clever> sphalerite: i think you can set which vlan each machine is on
stanibanani has joined #nixos
<sphalerite> clever: but given that they're essentially completely independent, wouldn't it be neater to have separate tests?
<clever> sphalerite: yeah, that might be better
<clever> then you can see which part failed
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<stanibanani> I bought just bought a wifi dongle (ASUS Wireless-AC1300) does anyone here know how to make it work?
<clever> stanibanani: does it appear in "ip link"?
<stanibanani> no it doesnt
<sphalerite> Yeah. Just wondering how to put them in a single file, I know I could just make the file evaluate to a list containing the tests and that would work with nix-build but I'm not sure about the machinery that aggregates test results
<clever> sphalerite: if you return an attribute set of tests, then it should just list each of them seperately on hydra
<sphalerite> oh right, that sounds good
<sphalerite> thanks
arianvp2_ has joined #nixos
<jake_> clever: there are directories that i can write to: /usr/local and Downloads basically
<clever> jake_: the nix file i'm writting will generate a .tar file containing a full nixos, similiar to a gentoo stage3
<clever> jake_: you can then unpack that to anything, and chroot into it
<jake_> clever: gotcha. amazing.
<sphalerite> Vaguely related, how feasible (performance-wise) is using an ARM VM on x86 to build ARM stuff, thereby avoiding all the complications of cross-compilation?
hellrazor has quit [(Ping timeout: 255 seconds)]
<clever> sphalerite: i have used qemu-user-arm to do similiar, with less overhead
acertain has quit [(Ping timeout: 240 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<sphalerite> clever: how does that work? Emulating the CPU but using the host kernel and translating syscalls?
<clever> sphalerite: exactly
chpatrick has left #nixos []
<clever> sphalerite: it uses binfmt-misc to detect the arm fields in an ELF file, and runs qemu-user as an interpreter
<sphalerite> What a time to be alive
<clever> so the kernel treats it like a bash script
<ToxicFrog> ♥ binfmt-misc
hellrazor has joined #nixos
nix-gsc-io`bot has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b4576c5108 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> sphalerite: the register script in this derivation will add it to binfmt-misc, and the nix patch will convince nix-daemon that the host can run arm binaries
<sphalerite> wow
<stanibanani> I have done some research and it needs the rtl8812au driver. there is a linuxPackages.rtl8812au package in the nix repo, but I have no idea how to load it. Is it enough to just add it to "hardware.firmare" option?
<clever> stanibanani: networking.enableRTL8192cFirmware = true;
<stanibanani> clever: alright I will try it, thanks
stallion has quit [(Quit: stallion)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
stanibanani has left #nixos []
acertain has joined #nixos
stanibanani has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> jake_: if you run nix-build in this directory, it will generate a tar at result/tarball/nixos-system-x86_64-linux.tar.xz
stanibanani has quit [(Remote host closed the connection)]
<clever> jake_: inside that tar, is a full nixos container, with a /init and /bash symlink to help you enter it
arianvp2_ has quit [(Quit: arianvp2_)]
<clever> jake_: unpack it anywhere, and then either run /bash under a chroot, or /init as pid1, ah, and the activate stuff may need init to work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #26607: vivaldi: fix space in sha256 (master...vivaldi-sha256) https://git.io/vHNVB
NixOS_GitHub has left #nixos []
<sphalerite> How can I see what caused a systemd unit to start?
stanibanani has joined #nixos
<sphalerite> jake_: and for getting init to be pid1, unshare -p could be helpful
drakonis has joined #nixos
<clever> sphalerite: ah, would it be possible to recreate systemd-nspawn with unshare?
<sphalerite> clever: not quite, I think it supplies a bunch of extra functionality
<clever> jake_: oh right, is the chromebook x86 or arm?
guillaum1 has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
turion has joined #nixos
teodorlu has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<stanibanani> clever: no, networking.enableRTL8192cFirmware = true; didn't do it. the device is still not showing up in ip link :/
<sphalerite> clever: actually maybe. It would be a lot of work though
<clever> stanibanani: what does dmesg say after you unplug and replug the device?
<gchristensen> LnL: thanks :D
<clever> sphalerite: dont need the full feature set, just enough to run a nixos container without any nix shared to the host
<stanibanani> clever:
<stanibanani> [ 334.175655] usb 1-8: USB disconnect, device number 4
<stanibanani> [ 339.340123] usb 1-8: new high-speed USB device number 5 using xhci_hcd
<stanibanani> [ 339.508393] usb 1-8: New USB device found, idVendor=0b05, idProduct=17d2
<stanibanani> [ 339.508396] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<stanibanani> [ 339.508399] usb 1-8: Product: 802.11n NIC
<stanibanani> [ 339.508401] usb 1-8: Manufacturer: Realtek
<stanibanani> [ 339.508404] usb 1-8: SerialNumber: 123456
<turion> I was about to install nixos with the minimal console installer, but it didn't have the b43 broadcom firmware and/or driver, which I need. Are my chances better with the graphical installer?
<guillaum1> Something I'm unsure of. I'm using nixos, I have the nixos-17.03 channel activated. However I can see some "<nixpkgs>" or "<nixos>" derivation. Where does the "<nixpkgs>" ones comes from?
<clever> stanibanani: have you rebooted after doing nixos-rebuild switch?
<stanibanani> turion: afaik there is no difference between the minimal and the graphical installer except the fact that graphical installer just opens a KDE session
<stanibanani> clever: yeah I have
<jake_> clever: i will give this a try. its x86
<clever> jake_: ah, then it should be fairly simple
digitalmentat has joined #nixos
<turion> stanibanani, ok, makes sense. How would I get the drivers on the installer USB stick then, such that I can install them from there without internet?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever> turion: you would need to either build a custom ISO that has the drivers, or just get an ethernet cord
<turion> clever, Can I somehow put the drivers on a second stick to install? But in what format?
<clever> turion: not easily, nix doesnt allow you to just install random drivers like that
<turion> Ah... does the kernel in the live system support USB tethering?
<turion> I see
<clever> not sure, never tried that
stallion has joined #nixos
<turion> Hmm... how do I install custom firmware like for b43 anyways? I remember it being a hassle on other distributions
stallion has quit [(Read error: Connection reset by peer)]
bennofs has quit [(Ping timeout: 240 seconds)]
stallion has joined #nixos
<clever> turion: networking.enableB43Firmware = true; in the nixos configuration.nix and nixos-rebuild switch
<clever> but you need working internet to complete that
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
MichaelRaskin has joined #nixos
<turion> clever, oh wow, that's easy, thanks! So let me try with USB tethering as soon as I have downloaded the graphical installer
<sphalerite> guillaum1: <nixpkgs> is a path, not a derivation. See https://nixos.org/nix/manual/#sec-common-env
<sphalerite> guillaum1: the default NIX_PATH refers to root's channels, so it comes from there
stallion has quit [(Ping timeout: 260 seconds)]
jbgi has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
stallion has joined #nixos
Sonarpulse has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vHNPb
<NixOS_GitHub> nixpkgs/master 791f072 Vladimír Čunát: Merge #26601: thunderbird*: 52.1.1 -> 52.2.0 (security)
NixOS_GitHub has left #nixos []
Judson has joined #nixos
reinzelmann has joined #nixos
<Judson> I'm trying to update a Go package, but 'go get ...' throws a bunch of errors in ld
ashu has joined #nixos
<Judson> My home machine, which has been NixOS for longer but is also up to date, doesn't have this issue.
<pbogdan> how can I specify which channel a vm should use when creating it with nixops? would like to have it created based on unstable
<clever> pbogdan: -I nixpkgs=something
<ashu> Hi, I'm trying to get nixos working on Google compute engine
<disasm> Judson: you set GOPATH?
<ashu> I downloaded the tar and created custom image out of it
trikl has joined #nixos
<jake_> clever: seems to have worked! i have a bash shell, but nothing else. just pwd and cd, no ls
<ashu> but when I try to ssh into it, I'm not able to ssh
<sphalerite> jake_: you probably need to set PATH as appropriate
<clever> jake_: look at the init symlink, from outside the chroot, youll see it points to an init script in a nixos directory
roconnor has quit [(Ping timeout: 260 seconds)]
<pbogdan> clever: thanks! didn't think that would work for nixops, will give it a try
<clever> jake_: the sw/bin/ of that nixos, has the system path that belongs in $PATH
<sphalerite> turion: USB tethering should work
<clever> jake_: the /init should handle setting that up, but like sphalerite said, it probably has to be ran under unshare -p
<ashu> Any gists to setup nixOs on google-compute-engine using userdata
<sphalerite> turion: you could even download the firmware using USB tethering and then continue using the built-in wifi
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vHNX2
<NixOS_GitHub> nixpkgs/master 2732104 taku0: thunderbird, thunderbird-bin: 52.1.1 -> 52.2.0
<NixOS_GitHub> nixpkgs/master 540f8ee Vladimír Čunát: Merge #26601: thunderbird*: 52.1.1 -> 52.2.0 (security)...
NixOS_GitHub has left #nixos []
<jake_> clever: tried init and you're right, its unhappy about systemd. this sytem doesn't have unshare -p on it. I guess I could write my own using the unshare c function or install it using nix in my other chroot and fiddle with the rpaths so it links to the host glibc etc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #26601: thunderbird, thunderbird-bin: 52.1.1 -> 52.2.0 [Critical security fixes] (master...thunderbird-bin-52.2.0) https://git.io/vHNq1
NixOS_GitHub has left #nixos []
<clever> jake_: there is an unshare inside sw/bin/ of the nixos folder
<jake_> cleber: oh but now bash works better with ls an others
<jake_> clever: ohh
<clever> jake_: yeah, init set things up before running systemd, so even failing, it helps
trikl has quit [(Ping timeout: 240 seconds)]
<hyper_ch> clever: do you use tabs or spaces?
<clever> hyper_ch: spaces
<clever> 2 for nix, 4 for everything else
stanibanani has quit [(Remote host closed the connection)]
<hyper_ch> "Coders who use spaces for indentation make more money than ones who use tabs, even if they have the same amount of experience:" --> https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/
<drakonis> lol
<drakonis> well its jeff atwood
<drakonis> oh no
<drakonis> its another guy
<turion> hyper_ch is that because they get paid for the amount of characters they write?
trikl has joined #nixos
<hyper_ch> turion: maybe :)
<jake_> clever: okay, running unshare -p /init from within the chroot says that fork cannot allocate memory
stanibanani has joined #nixos
<disasm> Judson: I wonder if your problem is related to https://github.com/NixOS/nixpkgs/issues/25959
afics has joined #nixos
Sonarpulse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vHN1W
<NixOS_GitHub> nixpkgs/master 9ffbebf Jörg Thalheim: ocamlPackages.camlidl: export c header and libs.
NixOS_GitHub has left #nixos []
Judson has quit [(Ping timeout: 246 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
<clever> jake_: just made a push to the previous github link, it now has a /enter script in the tar
<clever> which should handle the unshare
athan_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26599: ocamlPackages.utop: allow utop to locate topfile (master...utop) https://git.io/vHNfb
NixOS_GitHub has left #nixos []
<disasm> that's really slick clever :)
<clever> clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f2f924529d0) = -1 ENOMEM (Cannot allocate memory)
<clever> jake_: yeah, same error on this end
Judson has joined #nixos
Judson is now known as Guest83227
<jake_> clever: does the new tarball just include the unshare -p or does it fix the memory issue
<sphalerite> What if you unshare -p exec bash ?
<clever> it just has a bash script with the correct path to unshare
<sphalerite> It's not actually a memory issue
bennofs1 has joined #nixos
<clever> sphalerite: yeah, it appears to be failing when the stage2 tries to launch a child
<sphalerite> I remember this issue
<sphalerite> OH yeah that's right
<sphalerite> hang on let me see if I can find the docs
<jake_> sphalerite: unshare -p exec bash complains about no exec
ashu has quit [(Ping timeout: 260 seconds)]
<sphalerite> jake_: what about unshare -p bash and then in the resulting bash type init?
<jake_> sphalerite: what do you mean bash type init?
<jake_> sphalerite: init is /run/current-system/sw/bin/init
<sphalerite> sorry a bit confusing there.
Guest83227 has quit [(Ping timeout: 246 seconds)]
<stanibanani> I noticed something strange. I have added the "linuxPackages.rtl8812au" package to my stystem packages, built, switched, but the corresponing kernel module doesn't appear in its kernel-modules folder
<jake_> sphalerite: it was my bad. is that a good thing?
<sphalerite> see pid_namespaces(7): If the "init" process of a PID namespace terminates, the kernel terminates all of the processes in the namespace via a SIGKILL signal. This behavior reflects the fact that the "init" process is essential for the correct operation of a PID namespace. In this case, a subsequent fork(2) into this PID namespace will fail with the error ENOMEM; it is not possible to create a new pro
<sphalerite> cesses in a PID namespace whose "init" process has terminated.
<clever> jake_: there are 2 init's
<sphalerite> So you want to 1. unshare -p bash — the first child of that bash will be PID 1; so in that bash you run init
ndrei_ has joined #nixos
<jake_> i can't even run ls
<clever> stanibanani: kernel modules have to be added to boot.kernelPackages
<clever> jake_: read the enter script to find the correct value of $PATH
<sphalerite> unshare -p bash -c '/init'
<sphalerite> I think that should work
<jake_> what i've done is from the original chromos ran sudo chroot /usr/local/nixos-container/ /bash
<clever> sphalerite: oh, the first child of the unshare child is 1?, not the bash itself?
<ndrei_> Hello, I'm having trouble using Nginx with SSL-enabled virtualhost through LetsEncrypt, I'm getting an error on .well-known verification attempt
<sphalerite> clever: exactly
<clever> thats weird
<jake_> running unshare -p bash -c '/init' has the same fork problem
<ndrei_> anybody here using this feature?
<clever> sphalerite: yeah, chroot . bash -> unshare -p bash -> /init, appears to work
<jake_> sphalerite: running unshare -p bash gives me a shell where every command fails because of forking
<jake_> oh wait
<sphalerite> http://ix.io/xxa
<sphalerite> jake_: the first one should work
<clever> sphalerite: how do i make that systemd die?, lol
<jake_> sphalerite: running unshare --map-root -p bash after the first chroot doesn't work
<sphalerite> clever: systemctl poweroff I think?
<jake_> sphalerite: operation not permitted
<clever> sphalerite: but i have no shell inside that root, need to -9 it and redesign
<sphalerite> jake_: the --map-root is just for my case because I ran it as an unprivileged user on my laptop
<sphalerite> clever: ah, that's a bummer of course :D
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<jake_> sphalerite: OH BOY
<sphalerite> jake_: ?
<ndrei_> oh nevermind its working now!! This. Is. Awesome.
athan_ has quit [(Ping timeout: 260 seconds)]
<jake_> sphalerite: it's running init! seems to be stuck on starting systemd
<sphalerite> yay! aww.
<ndrei_> I'm guessing some DNS resolving issues, having just switched servers.
<clever> sphalerite: i think i also want a mount namespace, systemd left all kinds of mounts in /sys, and now i cant rm -rf
<sphalerite> clever: ouch
<sphalerite> yes, you do probably :D
<clever> lol, it even bind-mounted /nix/store read-only!
<clever> rm: cannot remove 't/var/empty': Operation not permitted
<clever> yep, immutable bit, lsattr!
<sphalerite> heh
<jake_> sphalerite: i can't even stop the systemd with C-c
<sphalerite> jake_: yeah you're probably seeing the exact same thing as clever
stanibanani has left #nixos []
<clever> jake_: i had to -9 it, then clean up nearly a dozen mounts
riclima has joined #nixos
<sphalerite> Also, there's got to be a Better Way™ of running nixos tests when modifying systemd that doesn't involve rebuilding qemu every time systemd is changed :/
<sphalerite> anyone know such a way?
turion has quit [(Ping timeout: 260 seconds)]
<clever> jake_: i'm writing a new script now, with the improvements
ertes has joined #nixos
<niksnut> sphalerite: yes, set systemd.package to the new systemd
<jake_> clever: okay. i'm just going to nuke the directory and wait for the new tarball
<clever> jake_: and you need heavy use of umount before rm -rf will be happy
stanibanani has joined #nixos
<jake_> clever: i have discovered this. okay
<clever> jake_: double-check the output of "mount"
<niksnut> sphalerite: so I always make a copy of the systemd expression and add an attribute systemd_new to all-packages.nix
<niksnut> and then set systemd.package = pkgs.systemd_new;
<jake_> clever: thanks for the tip
<sphalerite> niksnut: sounds good, thanks
<stanibanani> clever: Yay! It finally worked
<stanibanani> boot.extraModulePackages = [ pkgs.linuxPackages.rtl8812au ];
<stanibanani> boot.kernelModules = [ "8812au" ];
<stanibanani> Did it!
<stanibanani> Thanks for the help :)
arjen-jonathan has joined #nixos
MP2E has joined #nixos
riclima has quit [(Client Quit)]
<jake_> clever: just a question, i saw /dev/sda1 on /usr/local/nixos-container/nix/store type ext4 (ro,nodev,relatime,commit=600,data=ordered) in mount. does that mean my /dev/sda1 has been overwritten with the nix store?
<clever> jake_: thats a bind mount, a subdir of sda1 (the old holding nix/store) was mounted again to nix/store in read-only mode
<clever> jake_: that forcibly sets /nix/store to be read-only
nschoe has joined #nixos
<jake_> clever: gotcha.
ndrei_ has quit [(Quit: leaving)]
<jake_> clever: and what is this about the immutable bit? i'm like 5 minutes behind you exactly
<clever> chattr -i
<clever> on the var/lib/empty path i think
<jake_> clever: it was /var/empty. there we go all clean
ris has joined #nixos
<clever> oh
<clever> i think i know why my system is misbehaving now
<clever> i ran rm -rf t while things like /proc and /dev where mounted
stanibanani has quit [(Ping timeout: 255 seconds)]
<clever> now links dont work in teamspeak, and my hotkey to launch new terminals is broken
reinzelmann has quit [(Quit: Leaving)]
<clever> yeah, xterm just doesnt launch, period
<jake_> clever: will a restart fix that?
<clever> probably, one min
<clever> so many open windows!
<disasm> clever: haha, I know the feeling :) although I've found since switching to i3, I'm much more likely to clean up the unused terminals a lot quicker.
<clever> there, last one, lol, brb
riclima has joined #nixos
<clever> (facepalm)
<clever> systemd refuses to even shutdown, lol
<clever> note to self, be carefull with sudo rm -rf
<disasm> ctrl-alt-del over and over? :)
<clever> disasm: no response
<jake_> clever: can you reach the power cord
<clever> jake_: holding the power button down also works
riclima has quit [(Client Quit)]
<catern> hey #nixos
riclima has joined #nixos
<catern> I want to set up my own channel based on my own fork of nixpkgs
johnsonav has joined #nixos
<LnL> catern: nix-channel --add https://github.com/LnL7/nixpkgs/archive/master.tar.gz nixpkgs-lnl7
<clever> sphalerite: aha, unshare also has a --fork
<catern> LnL: but, right, I'm not sure I understand
<catern> LnL: does that preclude having a binary cache?
<clever> sphalerite: i see how it works now, unshare creates a new pid namespace, and then execve's the given child, but still has the original pid
<clever> sphalerite: and the first child it (or the child) makes, becomes pid 1
<sphalerite> catern: no. Binary caches and channels are basically independent
<sphalerite> clever: exactly
<clever> and --fork saves you a step
<sphalerite> clever: didn't know about the --fork flag though, that's good to know
<catern> LnL: like, how do you point to a binary cache with that? just commit binary-cache-url in the root of the repo?
<catern> sphalerite: what? no... "A Nix channel is just a URL that points to a place containing both a set of Nix expressions and a pointer to a binary cache."
<LnL> you don't have to if you use the nixos.org cache
<sphalerite> catern: oh whoops never mind me then
<clever> unshare: cannot stat /proc/16719/ns/mnt: No such file or directory
<clever> sphalerite: getting this error now
turion has joined #nixos
<catern> LnL: no, I want to point to my own cache
<clever> exec unshare --pid=/pid_ns --mount=/mount_ns /nix/store/fwxnazk2jmaknl5d16i41nlqfyza91hs-bash-4.4-p12/bin/bash
<clever> sphalerite: i'm guessing it may need some mkdir
<clever> nope
<catern> LnL: but I guess I just put a binary-cahce-url in there?
<catern> wait, hmm
Judson has joined #nixos
riclima has quit [(Client Quit)]
<catern> wait so how does this work in a multi-user setup? is there some way to have a system-wide blessed channel, whose binary-cache-url is trusted?
Judson is now known as Guest14983
<catern> or do I just need to customize in nix.conf, binary-caches?
<LnL> you can put your cache in nix.conf
<catern> right
<catern> i *can*
<catern> but should I?
<catern> I guess there's no notion of a system-wide channel
<catern> is that right?
riclima has joined #nixos
<LnL> not sure, maybe nix uses it from the channel
<catern> or a trusted channel, or anything like that
<clever> LnL: the nix-channel man page explains it
<clever> the channel should be a directory, containing nixexprs.tar.gz, and binary-cache-url
<catern> clever: but... LnL's example above was adding a tarball directly
<LnL> yeah, but I would assume you still have to add the signing key to your config
<catern> rather than a URL
<clever> catern: yeah, then it probably cant auto-detect the binary cache
athan_ has joined #nixos
turion has quit [(Ping timeout: 260 seconds)]
<LnL> or is that not needed for channels from root or something
<clever> sphalerite: i see, unshare is trying to access /proc from inside the chroot
jbgi has quit [(Ping timeout: 240 seconds)]
<clever> sphalerite: i may want to run the unshare before the chroot then
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
stanibanani has joined #nixos
<clever> sphalerite: but then i will need to be available on the host, hmmm
nschoe has quit [(Quit: Program. Terminated.)]
ma9e has joined #nixos
<clever> sphalerite: rm -rf --one-file-system !!
<sphalerite> clever: can't you unshare twice, once for mount namespace and again later for /proc?
<sphalerite> err again later for pid namespace
<clever> playing with it a bit more...
siddharthist has joined #nixos
<ma9e> Hello, can anyone help me with setting up gitlab (or gogs) on 17.03? I have a lot of questions
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #26608: systemd: allow setting timezone via timedatectl (staging...timezone-pr) https://git.io/vHNQZ
NixOS_GitHub has left #nixos []
<sphalerite> ^ reviews from people who know about systemd and stuff would be highly appreciated!
<sphalerite> Also about the nixos test suite
acertain has quit [(Ping timeout: 268 seconds)]
<siddharthist> Is anyone else getting a "Curl error 35" when trying to download from the binary cache?
<clever> sphalerite: ah, i see, "unshare --fork --pid --mount-proc" will create a mount namespace, and mount a new proc over /proc, but / is still the host
<siddharthist> When I navigate to https://cache.nixos.org in Firefox, I get an error that says "SSL_ERROR_NO_CYPHER_OVERLAP"
acertain has joined #nixos
vaibhavsagar has joined #nixos
<sphalerite> siddharthist: I just get a 404
<catern> hey #nixos
<catern> would it be a useful patch to the nix-channel logic, to handle using git to grab channels?
<catern> or would this be bad because it would add a new dependency on git?
<spinus> is it possible to run command inside "shell.nix" somehow? (I tried to 'build' shell with nix-build shell.nix (which is doing (callPackage ./bla.nix {}).env) but in that case I'm getting $src should point to the source error)
<sphalerite> spinus: nix-shell --run 'command goes here'
<siddharthist> This is what the log of trying to use nix-shell looks like "download-from-binary-cache.pl: could not download ‘https://cache.nixos.org/603a4mwvg61g1bsc3wzh3c2s5xd90va1.narinfo’ (Curl error 35)"
cpennington has quit [(Ping timeout: 255 seconds)]
civodul has joined #nixos
<sphalerite> spinus: it is possible to run commands in various ways, but it depends on your usecase
<spinus> sphalerite: works like a charm, thank you
<sphalerite> oh so that's the one you wanted, good :D
<spinus> I wanted to build the env and run the command manually
<spinus> but going with --run kind of works as well
<spinus> sphalerite: what would be the other way?
<spinus> (just out of curiosity)
<sphalerite> siddharthist: I have no issues downloading stuff from the cache. Probably a regional cloudfront issue or something
athan_ has quit [(Ping timeout: 260 seconds)]
<sphalerite> spinus: if you want to run a command using nix-build, you can do something like pkgs.runCommand "name" { buildInputs = [...]; } ''some shell script which puts a file or directory in $out goes here''
<sphalerite> If you use nix-shell on that expression you get the environment that that shell script would run it
<sphalerite> in*
erictapen has joined #nixos
Guest14983 is now known as judson
<siddharthist> sphalerite: thanks for checking, I appreciate it :)
ris has quit [(Ping timeout: 255 seconds)]
siddharthist has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
ris has joined #nixos
<spinus> sphalerite: I think I'm looking for the second option you described. basically, ghc compilation is slow, so I'm trying to implement alternative workflow with incremental compilation, but in the same env as original one
<spinus> the second one you mentioned is nix-shell --run?
ryanartecona has quit [(Quit: ryanartecona)]
<sphalerite> spinus: typical development workflow with nix, I believe, is to have a default.nix which can be built entirely using nix-build. You can also use nix-shell and then use stateful compilation tools that keep object files around so they don't need to be recompiled every time
<sphalerite> I'm not sure about the exact details of how that works with haskell unfortunately, but presumably there's some sort of stack build command or so that you'd use in a nix-shell when developing actively
<sphalerite> then you'd use nix-build/nix-env/nixos-rebuild/nixops for deployments/packaging
<spinus> exactly what I'm trying to do now
cpennington has joined #nixos
<spinus> sorry, it's not haskell specific I think. I just need to run command in the same env as nix-build does. so for now with nix-shell --run, I think I'm sorted, thanks again :)
<pxc> what do I have to do to get an installable tarball (for a system that doesn't have Nix on it yet) when building Nix from source? `nix-build release.nix -A build.x86_64-linux` appears to me to just produce the Nix package for Nix
simukis has quit [(Quit: simukis)]
<pxc> should I look at some Hydra job to recover that informatioN?
<sphalerite> spinus: If you don't want to call nix-shell explicitly https://nixos.org/nix/manual/#ssec-nix-shell-shebang could also be relevant
<pxc> for an example, I mean
simukis has joined #nixos
<spinus> sphalerite: o my, I completely forgot about the shebang stuff
<spinus> thx again
<sphalerite> pxc: you could just pack it up manually by doing tar cf nix.tar $(nix-store -qR $(nix-build '<nixpkgs>' -A nix))
trikl has quit [(Quit: leaving)]
<sphalerite> pxc: I don't know if that's exactly what you want though
fnljk_ has quit [(Ping timeout: 258 seconds)]
<sphalerite> spinus: np :)
<judson> Hey, I'm having ld errors when I `go get` - https://gist.github.com/ac4bf8246b88e7d545113aca0c7a3979
<judson> Appears to be Nix-standard interactions with ld_path sort of things
<judson> I don't have this problem on my other NixOS box, though.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ekleog opened pull request #26609: Firefox (master...firefox) https://git.io/vHNdj
NixOS_GitHub has left #nixos []
fnljk has joined #nixos
jake_ has quit [(Ping timeout: 260 seconds)]
phinxy has joined #nixos
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
ambro718 has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
riclima has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vHNNB
<NixOS_GitHub> nixpkgs/master 5f94d85 Renzo Carbonara: ghc821: init at 8.2.1-rc2 (a.k.a., 8.2.0.20170507)...
<NixOS_GitHub> nixpkgs/master 517d65e Shea Levy: Merge branch 'ghc821rc2' of git://github.com/k0001/nixpkgs
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #26603: ghc821: init at 8.2.1-rc2 (a.k.a., 8.2.0.20170507) (master...ghc821rc2) https://git.io/vHN4q
NixOS_GitHub has left #nixos []
therp has left #nixos ["Leaving"]
fnljk has quit [(Quit: ?)]
fnljk has joined #nixos
riclima has quit [(Ping timeout: 260 seconds)]
sitwon has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ekleog closed pull request #26609: Firefox (master...firefox) https://git.io/vHNdj
NixOS_GitHub has left #nixos []
MP2E has quit [(Quit: brb)]
athan_ has joined #nixos
<clever> sphalerite: cant seem to get nsenter to work right
<clever> oh, maybe i also need -r
Filystyn has quit [(Quit: Konversation terminated!)]
<clever> yeah, -r definitely did something good
<clever> sphalerite: and *boom*, "systemctl poweroff" killed the host networking, and ctrl+c to systemd killed display-manager, lol
<sphalerite> hahaha fun
<clever> this is why i only ever play with containers in vm's
<sphalerite> Probably makes sense to combine it with chroot x)
<clever> which defeats the entire point of containers!
<clever> [16401:16451:0615/142845.850724:ERROR:bus.cc(427)] Failed to connect to the bus: Failed to connect to socket /tmp/dbus-0MkGeEjdoV: Connection refused
<clever> yeah, it borked dbus
<clever> probably needs an ipc namespace also
<sphalerite> I don't think so
<clever> the container firewall also failed to come up right, because i didnt give it a network namespace
<avn> Folks, I have small but complex problem -- I have some software, with absolute non-deterministic source (sftp server+dir). I already have script, which switch it to git repo, but I need to propagate it as nix derivation, with generations. What a best way to do it?
<clever> but that would complicate getting internet
<avn> Highly opinionated ideas welcomed ;)
<sphalerite> ipc namespaces are for this weird system V ipc thing
<Dezgeg> I think if you just disable dhcpcd you can rely on the host network namespace
<clever> Dezgeg: yeah, just need to make the guest not mess with the network stack any
<Dezgeg> also you could drop the net_admin priviledge
<sphalerite> the relevant namespaces are the mount namespace (and chroot) for sockets that live in the filesystem, and the network namespace for abstract sockets
<clever> sphalerite: i think a lack of ipc namespacing is what caused the crosstalk in the poweroff command
<sphalerite> oh, that works via system V IPC?
<Dezgeg> what about abstract unix sockets? what namespace they live in if not ipc?
georges-duperon has quit [(Ping timeout: 255 seconds)]
<sphalerite> Dezgeg: network
<sphalerite> 22:34 < sphalerite> the relevant namespaces are the mount namespace (and chroot) for sockets that live in the filesystem, and the network namespace for abstract sockets
<Dezgeg> hmm, when I tried lxc with the host networking it worked just fine, so probably something else is borked then
<sphalerite> "IPC namespaces isolate certain IPC resources, namely, System V IPC objects (see svipc(7)) and (since Linux 2.6.30) POSIX message queues (see mq_overview(7))."
<clever> Dezgeg: trying to get a nixos containter to boot without systemd-nspawn on the host
<clever> hmmm, what happens if i just run systemd-nspawn in a chroot with no systemd on the host??
stallion has quit [(Read error: Connection reset by peer)]
<Dezgeg> it's starting to sound like reimplementing lxc (or something else)
<Dezgeg> maybe there is some container manager that would just compile to a single static binary
jophish has quit [(Quit: Lost terminal)]
AluisioASG has quit [(Remote host closed the connection)]
AluisioASG has joined #nixos
jophish has joined #nixos
danforth has joined #nixos
alx741 has joined #nixos
danforth has quit [(Client Quit)]
<clever> curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
<clever> sphalerite: and it somehow also broke ssl...
<clever> how can systemd break everything so badly so easily??
ma9e has quit [(Quit: Leaving)]
<sphalerite> clever: because it's root and assumes that because it's PID 1 it can mess with everything?
<clever> lol
<clever> it was in a chroot, how did it even break this ssl?
<sphalerite> Oh, it was in a chroot? Then I really don't know
<gchristensen> NIX-2017-0002: users can modify builds by other users: https://mailman.science.uu.nl/pipermail/nix-dev/2017-June/023901.html
<clever> i think i'm going to need yet another reboot, just to clear this up
acertain has quit [(Ping timeout: 260 seconds)]
Guest33244 has quit [(Quit: Lost terminal)]
jake_ has joined #nixos
<clever> sphalerite: and again, it wont shutdown!
<clever> nvm, it just took a full 90 seconds, lol
athan_ has quit [(Ping timeout: 240 seconds)]
nh2 has joined #nixos
<ekleog> gchristensen: hmm... is there a NIX-2017-0001 somewhere? I can't find it in my mail archives
<nh2> is cache.nixos.org brooken? I get `Curl error 35` for any query
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<gchristensen> ekleog: I'm retroactively calling a previous advisory 0001 and will be publishing them somewhere consistent
<ekleog> oh ok, thanks :)
<clever> nh2: oh, that wasnt systemd's fault ....
<gchristensen> ekleog: "NixOS Security Advisory: Docker Local Privilege Escalation"
<nh2> says `gnutls_handshake() failed: Handshake failed`
<nh2> clever: so you get that too?
<clever> nh2: yeah, i was trying to figure out how systemd in a chroot managed to break the host ssl
<clever> nh2: but if your also having it, systemd isnt to blame, lol
<nh2> clever: try going to https://cache.nixos.org in a browser
<clever> browser is still crippling the machine as it starts up
<sphalerite> nh2: siddharthist had the same issue earlier
<ekleog> gchristensen: thanks :) btw, do you plan to also make the "Security fixes from" series numbered and published? (like DSA's or SSA's on oss-security) (well, when it resumes, of course -- I seem to remember you stopped it due to LWN's CVE database shutting down)
<sphalerite> I couldn't reproduce it, I presume it's on cloudfront's end
<gchristensen> uhoh nh2
<clever> sphalerite: it might be spreading, check your end again?
<sphalerite> nope, still works for me
<gchristensen> CloudFront error perhapsp
<gchristensen> ekleog: that would be ideal yes :)
<pxc> sphalerite: I'm silly; I think I just needed to do binaryTarball.x86_64-linux instead of build.x86_64-linux
<clever> [clever@amd-nixos:~/nix-tests/container-generator]$ nix-build -A test-guest --option binary-caches "" -Q
<ekleog> :)
<sphalerite> Is it just me or does cloudfront have a lot of issues?
<clever> nh2: with the extra --option at the end, you can disable the binary cache temporarily
<nh2> clever gchristensen: From my Singapore server it's working, from my European servers they all get the error
<ekleog> (just noticed it'd be named NSA-2017-00xx ; this name is just great 8D)
<clever> gchristensen: and i'm in canada
<gchristensen> from my NY,USA IP it works from my MA,USA IP it doesn't
<nh2> clever: gchristensen: It's an AWS error: https://status.aws.amazon.com/
<gchristensen> <3 thank you
<clever> aha
<nh2> sphalerite: I guess that answers your question too
marsel has quit [(Ping timeout: 260 seconds)]
cpennington has quit [(Remote host closed the connection)]
Neo-- has quit [(Ping timeout: 260 seconds)]
<sphalerite> I'm in the UK, I suppose I've just been hitting the lucky unaffected servers
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
georges-duperon has joined #nixos
<clever> [clever@amd-nixos:~]$ openssl s_client -connect cache.nixos.org:443
<clever> sphalerite: this can also be used to debug ssl things
<clever> no peer certificate available
<clever> sphalerite: at a glance, id say the server lacks a cert, and is trying to negotiate a cert-less ssl
<sphalerite> yeah
simukis has quit [(Ping timeout: 240 seconds)]
johnsonav has quit [(Ping timeout: 258 seconds)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
Neo-- has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
fractal_ is now known as _fractal_
MP2E has joined #nixos
<digitalmentat> how do you clean-up zeroed out / corrupted paths in the nix store?
<clever> digitalmentat: nix-store --verify --check-contents
<clever> and optionally --repair
mudri has quit [(Ping timeout: 258 seconds)]
stanibanani has quit [(Ping timeout: 240 seconds)]
bennofs1 has quit [(Ping timeout: 246 seconds)]
civodul has quit [(Remote host closed the connection)]
[0x4A6F] has quit [(Remote host closed the connection)]
<catern> how can I force a package to beuild?
<catern> rebuild*
<clever> catern: why do you want to rebuild it?, nix should normally detect that and rebuild for you
<LnL> yes, you can use nix-build --check
jake_ has quit [(Ping timeout: 260 seconds)]
<catern> clever: I want to test if it's correct
<catern> LnL: is that the only way? it would be nice if I could rebuild and immediately install
<digitalmentat> clever, yes unfortunately those commands do not work (I tried that earlier)
<clever> digitalmentat: what fails with the command?
<catern> LnL: wait, there's no such argument :)
kugelblitz has joined #nixos
<LnL> nix-build '<nixkpgs>' -A hello --check
<digitalmentat> right now, nothing, (this is a Hydra build machine) my hunch is that these paths are getting copied from one of our other machines
<LnL> that should rebuild hello and check if the output hashes are the same
<clever> digitalmentat: ah, i recently had a nearly identical problem
<clever> digitalmentat: my hydra had some corrupt paths, and was downloading the --repair version from itself
<sphalerite> catern: if it built previously it's necessarily correct
<sphalerite> if anything had changed it would need to rebuild anyway
<clever> 2017-06-14 19:54:57< clever> [root@router:/tmp]# nix-store --verify --check-contents --option binary-caches https://cache.nixos.org --repair
<sphalerite> well, "correct" in the loose sense of "it builds"
<clever> digitalmentat: this is how i forced it to get the correct version from nixos
<LnL> clever: oh!
<catern> sphalerite: thanks for the info, I totally didn't know that already
<digitalmentat> huh interesting, I will give that a shot
<LnL> clever: I'm wondering if this might be related to that https://github.com/NixOS/nix/issues/1281
<clever> digitalmentat: the above assumes that the corruption happened after the files got added to the local store
<LnL> n/m that's probably the hardlinks
<clever> LnL: in my case, it fetched it from itself, then complained that the hash of the file from the binary cache was wrong
jake_ has joined #nixos
<clever> and then stopped, and didnt try any other cache
<catern> hmm
<catern> what is the idiomatic way to not use substitutes?
<catern> -o build-use-substitutes false?
<clever> catern: ive been using --option binary-caches "" to get around the recent cloudflare issues
eacameron has quit [(Remote host closed the connection)]
<clever> cloudfront*
<catern> --option build-use-substitutes false should work just as well right
<clever> yeah
<clever> sphalerite: strange, when i run systemd under a chroot in a qemu, the journal thinks i rebooted, and the terminal is a bot wonky
<clever> LnL: that reminds me, are there any darwin translation layers, that implement the linux syscall table? on a darwin kernel?
hiratara has quit [(Ping timeout: 246 seconds)]
<clever> other direction, to run un-modified linux ELF files on darwin
<LnL> ah, not that I know of
<catern> hey #nixos
<catern> I am trying to build https://github.com/uber/pyflame inside nix-shell -p python36 stdenv
<LnL> but puffnfresh made something cool with hyperkit
<catern> but it's failing
<catern> is there something obviously wrong with what I'md oing?
<catern> i'm just doing ./autogen.sh && ./configure && make
hiratara has joined #nixos
erictapen has quit [(Quit: Leaving)]
<catern> do I need to invoke ./configure with special arguments?
<clever> LnL: ah, sounds like its just a normal hypervisor vm
<catern> or maybe do something special to get PKG_CONFIG_PATH set up?
<clever> LnL: i was thinking that if darwin had namespacing and a new syscall table, that could do it on the same kernel
eacameron has joined #nixos
<clever> catern: if you add pkgconfig to nix-shell -p, it will setup PKG_CONFIG_PATH for you
k2s has joined #nixos
<LnL> yeah, don't know about anything like that
Itkovian has joined #nixos
<catern> clever: ah, thank you, that makes sense. I still have a problem though:
<catern> why would this be happening?
<catern> how do I get it to pick up that headers from Nix?
<clever> catern: try using nix-shell --pure
nevermind has quit [(Read error: Connection reset by peer)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
kugelblitz2 has joined #nixos
<catern> clever: ah, thank you, that helps. but wait, I'm confused: "nix-shell --pure -p stdenv" doesn't have gcc
k2s has quit [(Ping timeout: 268 seconds)]
<clever> catern: what about nix-shell --pure -p gcc?
<catern> should it? I thought the stdenv had gcc
stallion has joined #nixos
<catern> clever: well, yes, that has gcc
eacamero_ has joined #nixos
<clever> part of the mess here, is that -p does some nix magic
<clever> so what you are running, is actually more like this
<LnL> not nececceraly, stdenv.cc is clang on darwin for example
<clever> nix-shell -E 'with import <nixpkgs>{}; runCommandCC "dummy" { buildInputs = [ stdenv ]; } "dummy"'
kugelblitz has quit [(Ping timeout: 240 seconds)]
<clever> catern: so your putting the stdenv into the buildInputs of something that already uses stdenv
mellowmaroon has joined #nixos
<LnL> it's runCommandNoCC now :)
<clever> LnL: that was patched a few weeks ago
eacameron has quit [(Ping timeout: 240 seconds)]
<LnL> oh? it changed back?
<mellowmaroon> Hello again, still working on OpenGL stuff today. What's the difference between the two 'mesa-noglu' packages shown by Nox?
<clever> nix-shell used runCommand, and was broken when the default got changed
<catern> clever: oh, hmm, okay, but then still, I don't get why it doesn't show up in the shell?
<clever> catern: not sure exactly
<clever> LnL: it might not be in the public release yet though
<mellowmaroon> one is `mesa_noglu`, and the other is `mesa_drivers`
<LnL> ah
<clever> mellowmaroon: i believe mesa_noglu is just a dummy opengl to compile/link against
<clever> mellowmaroon: and then at runtime, it will use /run/opengl-driver/lib/ to swap out the right vendor supplied libs
<clever> because every vendor has to re-invent the opengl libs
eacamero_ has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
<mellowmaroon> clever: So between Mesa and those two packages, which would I need? Just mesa and mesa_drivers?
<clever> mellowmaroon: depends on if your just linking, or running
mbrgm has quit [(Ping timeout: 240 seconds)]
<mellowmaroon> clever: I plan to run programs that link to OpenGL libraries.
<clever> mellowmaroon: then you need to ensure /run/opengl-driver/lib/ is in $LD_LIBRARY_PATH, which nixos already sets up
<clever> and if your not on nixos, there will be problems
<mellowmaroon> clever: Right, I'm on NixOS
<clever> do "echo $LD_LIBRARY_PATH' and you should see its already in there
<mellowmaroon> clever: Yep, it's there
<clever> so it should just work, if the arch of the program matches the host (64bit for example)
<clever> sphalerite: so, what is this doing specially.... https://github.com/systemd/systemd/blob/master/src/nspawn/nspawn.c
<mellowmaroon> clever: I see. Related to my questions from yesterday, would it possibly be easier for me to use nix-shell to create a development evironment with both IDE and OpenGL packages?
<clever> mellowmaroon: maybe, the mesa_noglu package should also let you compile/link against opengl
<mellowmaroon> clever: Since I'm able to run my OpenGL test code from outside of the IDE, but not in it
<mellowmaroon> clever: Ok, I'll look into it then. Thanks so much for the constant help :)
<clever> ah, it might be that the presense of mesa_noglu is breaking the runtime stuff
<mellowmaroon> clever: Should I make sure that's uninstalled first, you think?
<clever> you shouldnt ever install libraries like that
<clever> thats just not how nix is meant to be used
<mellowmaroon> clever: Understood
mbrgm has joined #nixos
spinus has quit [(Read error: Connection reset by peer)]
magnetophon1 has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jake_ has quit [(Quit: Page closed)]
jbaum98 has joined #nixos
<catern> clever: anyway, thank you! you solved my problem :)
<kugelblitz2> how can I use nixos.python35Packages.powerline within ~/.tmux.conf as source [...]/powerline/bindings/tmux/powerline.conf without the /nix/stopre prefix?
jbaum98 is now known as jake_
spinus has joined #nixos
<digitalmentat> clever, a few paths were not able to be repaired with the binary-cache method but all of the other paths were, I believe
<clever> digitalmentat: yeah, it will only be able to repair things that are on the nixos cache
<clever> digitalmentat: next thing id check is nix-store --query --roots and nix-store --delete, see if you can delete any of the corrupt things
<clever> and dont force --delete
<digitalmentat> clever, yeah that's what I was going to try next
<digitalmentat> the corrupted files appear related to the nix-env profile, which I rolled back
ambro718 has quit [(Ping timeout: 255 seconds)]
<clever> digitalmentat: if --roots says that the only roots are in your profile, you can safely delete the unused generations (make sure not to delete the active one)
<digitalmentat> yeah, it's not, I think this is fine as-is
<digitalmentat> that was definitely helpful, thank you
<mellowmaroon> Silly question: Is there a way to reset the generations counter?
<clever> mellowmaroon: no proper way to do it, only by manualy messing with key symlinks
hiratara has quit [(Quit: ZNC - http://znc.in)]
<mellowmaroon> clever: That's fine, I don't plan on messing with it. Just curious
<clever> mellowmaroon: you can also avoid creating generations in a few days
<clever> ways*
<clever> for nixos, there is "nixos-rebuild test"
hiratara has joined #nixos
<clever> which will build and activate, but not create a generation, and the changes are undone upon reboot
<clever> and for testing normal programs, i prefer nix-build over nix-env
<mellowmaroon> Interesting. What's nix-build do?
<mellowmaroon> I've only used nix-env to install new packages interactively, and delete older generations
pie_ has quit [(Ping timeout: 240 seconds)]
<clever> nix-build '<nixpkgs>' -A firefox
<clever> this will create a symlink called result, pointing to the firefox storepath
stallion has quit [(Quit: stallion)]
<clever> so you can then ./result/bin/firefox to run it
<clever> and when your done, delete the result symlink
<clever> no generations, no firefox "installed" in anything
<mellowmaroon> clever: neat :)
<clever> and if your re-building the same package 200 times to work out a bug, no spam in your generation list
<mellowmaroon> If I do nix-shell, it'll reuse the packages from my /nix/store, right?
<clever> yeah
magnetophon1 has joined #nixos
<mellowmaroon> I thought so, I was curious bc I tried something with nix-shell last week and was surprised that it was downloading a lot
<mellowmaroon> more than I was expecting, at least
<clever> -p or -A?
<mellowmaroon> -A
kkourt has quit [(Quit: leaving)]
<clever> nix-shell '<nixpkgs>' -A firefox, will give you a shell suitable for compiling firefox from source
<clever> but nix-shell -p firefox, will give a shell with firefox pre-compiled
<mellowmaroon> Ah ok, so I'll probably want -p?
<clever> yeah
<mellowmaroon> I guess it depends on the situation/software, but that's very useful info, thanks
jtojnar_ has joined #nixos
<clever> yep
stallion has joined #nixos
jtojnar has quit [(Read error: Connection reset by peer)]
acertain has joined #nixos
jtojnar has joined #nixos
magnetophon1 has quit [(Ping timeout: 240 seconds)]
jtojnar_ has quit [(Ping timeout: 240 seconds)]
obadz has quit [(Ping timeout: 255 seconds)]
pie_ has joined #nixos
obadz has joined #nixos
<mellowmaroon> Is there a way to have Nox show unfree packages? I don't think it shows the Oracle JDK
<clever> mellowmaroon: have you already enabled unfree packages in config.nix?
mudri has quit [(Ping timeout: 240 seconds)]
<mellowmaroon> In my /etc/nixos/configuration.nix, yep
<clever> that doesnt effect nix-env and nox
<clever> you also need to enabled it in the config.nix
<mellowmaroon> Ahhh, got it. Is there a user-level customization I need?
<clever> you need to set it in ~/.config/nixpkgs/config.nix
<clever> if you try to build something unfree, it will tell you: nix-build '<nixpkgs>' -A google-chrome
<mellowmaroon> Perfect, thanks
<clever> once enabled, nox will probably find it
mudri has joined #nixos
<mellowmaroon> is there something I need to refresh it? or do I only use `allowUnfree = true`, instead of `nixpkgs.config.allowUnfree...`
<mellowmaroon> Tried reopening my terminal
<clever> all nix tools will read it on start, no need to refresh them
<clever> but nox will cache the package list
<jake_> mellowmaroon: you only use allowUnfree = true;
<mellowmaroon> thanks :)
<mellowmaroon> is there a way to invalidate nox cache? it's no biggy, I just want to make sure it's good while I'm here
<jake_> clever: is there anything i can do to help with the container thing
<clever> jake_: taking a break right now, but i can commit what i have if you want to play with it
<clever> jake_: its on my github now
<jake_> clever: thanks. what is the general status of it at this point
<clever> jake_: systemd starts, but i cant get nsenter to work, so no shells
<jake_> gotcha
<clever> jake_: you would need to setup sshd before you make the tarball, and they it might work
<clever> then*
<clever> also, every time i try to stop the systemd, it stops the wrong systemd
zeus_ has quit [(Read error: Connection reset by peer)]
<clever> and breaks the host
<clever> but that will likely behave differently if the host lacks systemd
kugelblitz2 has quit [(Quit: Leaving)]
zeus_ has joined #nixos
fnljk has quit [(Disconnected by services)]
fnljk_ has joined #nixos
fnljk has joined #nixos
magnetophon1 has joined #nixos
eacameron has joined #nixos
fnljk_ has quit [(Ping timeout: 240 seconds)]
markus1199 has joined #nixos
markus1219 has joined #nixos
<mellowmaroon> For the nix-shell derivation for my development env, do I need to put the packages in `buildDepends`?
<mellowmaroon> Tried making one, and was able to use nix-shell, but it didn't find libXxf86vm again, even though I listed it
<clever> mellowmaroon: it has to go into buildInputs
<mellowmaroon> Ok, I'll retry
<mellowmaroon> Hmmm, same issue... is there anything else I need in the derivation? The only thing is that list inside a mkderivation
markus1189 has quit [(Ping timeout: 240 seconds)]
markus1209 has quit [(Ping timeout: 260 seconds)]
<clever> mellowmaroon: can you gist the exact contents, and the command you ran?
<mellowmaroon> Sure, exact command was `nix-shell -p` (file name is default.nix)
<mellowmaroon> and I'll need a sec to post the file
orivej has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<clever> mellowmaroon: -p doesnt load default.nix
<clever> you need to just run "nix-shell default.nix"
<mellowmaroon> Oh, I see
<mellowmaroon> Got it
<mellowmaroon> do I need something before mkDerivation? That's what nix-shell's telling me
<clever> with import <nixpkgs>{}; stdenv.mkDerivation { ...
marsam has quit [(Remote host closed the connection)]
MP2E has quit [(Ping timeout: 240 seconds)]
<mellowmaroon> The error remains, when I try running the gradle task in IDEA, it can't find libXxf86vm
<mellowmaroon> I was able to make the derivation, at least
<clever> not sure what gradle would be doing differently to mess things up
<mellowmaroon> all the packages are under buildInputs...
<mellowmaroon> It may be easier for me to try to get things working globally, since I'm even more of a novice with nix-shell
<clever> installing the libraries wont help anything
<clever> nix goes out of its way to not include headers and such when you install a package
<mellowmaroon> I just need to figure out what isn't visible within IDEA, since I'm able to do `gradle run` in a normal shell and have it work
<clever> was idea started from inside the nix-shell?
<mellowmaroon> yep
<clever> not sure then
<mellowmaroon> I put in every package I could think of related to buildInputs, and didn't work...
<clever> its possible that idea is trying to clean the env up before running gradle
<clever> and thats breaking everything
<mellowmaroon> Any other ideas on what I could try? Otherwise, I'll probably just run it outside of the IDE
justelex_ has quit [(Remote host closed the connection)]
<clever> cant think of anything else at the moment
<mellowmaroon> That's fine, thanks again for the help :)
<mellowmaroon> With something like IDEA, I wouldn't be too surprised if it's just something hard-coded that shouldn't be
MP2E has joined #nixos
<judson> fetchFromGitHub fetchSubmodules doesn't appear to be working for me.
jsgrant has joined #nixos
erasmas has quit [(Quit: leaving)]
<jsgrant> I was trying to install NixOS to my "final respite" from full-on, on all my boxes; An ultrabook I've had GNOME on. Attempted to do a similar install via 17.03 & unstable -- and I'm getting some weird s-trace (assuming) kernel spaz; Is there any guide how to debug this anywhere?
<jsgrant> Or should I just wait around for a release on Fedora, until I better know what I'm doing?
newhoggy has joined #nixos
<jsgrant> Right now, think latter is more likely.
<clever> jsgrant: what kind of weirdness is it doing?
<jsgrant> But have an ant up my butt to go "all in".
<jsgrant> clever: Very unreliable booting. Sometimes, not a problem (sans display-mananger refuses to start); Sometimes a near-instant kernel-panic.
<clever> jsgrant: what does nix-channel --list say?
<clever> when ran as root
<jsgrant> '/nixos-unstable'
<clever> jsgrant: have you ran memtest86 on the hardware recently?
<jsgrant> Relatively new ultrabook, so I assumed something in upstream kernel just wasn't supported (remember having various little issues last release on Fedora (24) (namely servies and not kernel)) -- but have no idea.
fnljk has quit [(Disconnected by services)]
fnljk_ has joined #nixos
<jsgrant> clever: I know pathetically little atm, about lower-level debug, even though it's an area I'm very interested in getting into.
fnljk has joined #nixos
<clever> jsgrant: https://nixos.org/nixos/options.html#memtest8 enable memtest86, nixos-rebuild switch, then pick memtest from the grub menu when booting
<jsgrant> clever: Should that be available in a systemd-boot/gummiboot config?
<clever> jsgrant: it looks like its grub only
<clever> jsgrant: you can also get usb images with memtest86
<jsgrant> clever: Ah, that's a good idea.
<mellowmaroon> clever: When I tried `gradle run` inside IDEA, it also worked. Does that mean IDEA can see everything necessary?
<clever> mellowmaroon: maybe
fnljk_ has quit [(Ping timeout: 240 seconds)]
<jsgrant> Yeah, I really should/"need to" look into this a lot more. Sans my phone/tablet, pretty much everything else installable-on has NixOS on at this point. This laptop, desktop, htpc, homeserver. Might as-well go "all in"...
<jsgrant> clever: What I wonder though, is why is it working "perfectly" on Fedora25? I'm guessing there's some inconsistent kernel option/flag. :^P
mellowmaroon has quit [(Quit: Leaving)]
<clever> jsgrant: would need to compare the kernel versions
<jsgrant> clever: Is NixOS using upstream? I know Fedora rolls there own.
<jsgrant> their own*
mudri has quit [(Ping timeout: 240 seconds)]
* jsgrant is just going to have to look into it more; Just think I have the aformentioned "ant up my butt" after seeing Fedora 26's Beta just dropped & I had a loose goal of "Converting this box over, by the next major release".
roconnor has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]
zeus_ has quit [(Remote host closed the connection)]
pie_ has quit [(Ping timeout: 255 seconds)]
zeus_ has joined #nixos
pie_ has joined #nixos
zeus_ has quit [(Ping timeout: 258 seconds)]
Rotaerk has joined #nixos
<catern> hey #nixos
<catern> do I need to use channels at all?
<catern> can I just make ~/.nix-defexpr a regular folder, and put nixpkgs in there?
<clever> you can also just modify $NIX_PATH
<catern> and git clone nixpkgs in there*
<catern> clever: huh? but nix-env uses ~/.nix-defexpr by default
<clever> yeah, nix-env is the only tool that uses nix-defexpr
<clever> but you can still do nix-env -f '<nixpkgs>' -iA hello
<catern> ah
<catern> I see
<catern> so all nix-channel really does, is affect the behavior of nix-env?
<clever> yeah
<clever> and the default $NIX_PATH is set to a dir that nix-channel outputs to
mudri has joined #nixos
<catern> hmm, you can't even use it to keep up your NIX_PATH up to date, right?
<clever> $ echo $NIX_PATH
<clever> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vHABx
<NixOS_GitHub> nixpkgs/master ba9c71b Graham Christensen: rustc.bootstrap: 1.17.0 -> 1.16.0...
NixOS_GitHub has left #nixos []
<catern> right, but
<catern> you manually set that right?
<clever> nope, thats the default value
<catern> oh
<clever> the first entry, maps <nixpkgs> to the nixpkgs subdir of a channel called nixos, on roots channel list
<catern> I see
<catern> hmm
<clever> second maps <nixos-config> to the configuration.nix file
<catern> interesting, but I'm working with multi-user Nix on top of Debian for now
<clever> and the 3rd lets you refer to any of roots channels by name
<catern> oh, interesting
<clever> ah,that has different defaults for $NIX_PATH
<catern> wouldn't that 3rd duplicate the first?
<clever> the 3rd entry maps <nixos> to the channel called nixos
<clever> and so on
<catern> oh, I see
<catern> didn't see that nixpkgs was a subdirectory of nixos
<catern> ok, interesting
<clever> that extra nixpkgs is actualy a symlink to .
<clever> legacy reasons
MP2E has quit [(Ping timeout: 260 seconds)]
<catern> ah, heh
<clever> so <nixos> and <nixpkgs> and even <nixpkgs/nixpkgs> refer to the same thing