KABA has quit [(Ping timeout: 260 seconds)]
kthnnlg has quit [(Remote host closed the connection)]
<calvertvl> ah...looks to me like there's some expectation of a test/ subproject somewhere, which would be why it doesn't work (there isn't one for this package)
riclima has joined #nixos
<spinus> don't know go too well, but maybe this can be generated/copied from other project
riclima has quit [(Client Quit)]
ryantrinkle has joined #nixos
hellrazor has joined #nixos
<calvertvl> I figured out a way to manually do it via overriding the checkPhase, but this definitely runs counter to the nixpkgs manual documented behavior of "it runs 'make check' by default"
<spinus> but it's manual specific to buildGoPackage or just mkDerivation?
hellrazo1 has quit [(Ping timeout: 245 seconds)]
<calvertvl> there is nothing in the manual for buildGoPackage about the checkPhase being special at all
<calvertvl> only way to find out is code-diving or to get bitten by the difference
i3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] johnramsden opened pull request #26337: Ipmiview: 2.11.0 -> 2.12.0 (master...ipmiview) https://git.io/vHgMW
NixOS_GitHub has left #nixos []
<i3> Does anyone here use i3 with configs that don't destroy your eyes? My default terminal is blindingly white
<i3> I'm not sure how to set up ~/.Xresources so that it works in conjunction with i3 and my main config
<pseudo-sue> I haven't tried it on nixos yet, but have you tried fiddling with .Xdefaults?
<nixy> i3: What terminal are you using?
<pseudo-sue> a lazy workaround is to just use another terminal emulator instead of xterm, and get i3 to open that. roxterm is pretty painless to customize, e.g.
<c74d> I set `*foreground: rgb:A8/A8/A8` and `*background: rgb:00/00/00` in Xresources
<c74d> except, hm, I don't use ~/.Xresources, I have my NixOS configuration create an Xresources file in the Nix store, and set config.services.xserver.displayManager.sessionCommands to load that file
<pseudo-sue> yeah, my xterm seems to be ignoring .Xresources and .Xdefaults too...
<i3> Ok, so just to be clear: I open up ~/.Xresources and type what you just typed?
<i3> I'm just looking for the quickest possible solution this is driving me crazy
<c74d> i3: my Xresources looks something like this: <https://dpaste.de/tW6R>
<i3> c74d: any changes necassary to configuration.nix? Should it be set after a nixos-rebuild switch and reboot?
<c74d> you could copy the foreground and background settings
<c74d> i3: you'll need to log out and back in; I'll check whether configuration.nix changes are necessary
<i3> do they need to go into configuration.nix or .Xresources?
<i3> Oh ok, nvm. Thank you!!
<i3> You're a saint
riclima has joined #nixos
<c74d> I put them in configuration.nix but that's slightly more work
<c74d> i3: you shouldn't need to change configuration.nix if you use ~/.Xresources
<c74d> just log out and back in
<c74d> (I put the settings in my configuration.nix rather than in ~/.Xresources because I try to keep as many settings as feasible in configuration.nix)
alfie has quit [(Ping timeout: 258 seconds)]
i3 has quit [(Ping timeout: 260 seconds)]
riclima has quit [(Client Quit)]
alfie has joined #nixos
<pseudo-sue> ok, so, i'm still in the world of GLX pain. there's been some user churn here, so I might as well ask again: steam is crapping out on me on startup with the error message "OpenGL GLX extension not supported by display". has anyone encountered and solved this problem before? I'm working on a thinkpad p51 with nvidia and intel graphics.
<calvertvl> pseudo-sue: are you using one of the legacy nvidia drivers?
<pseudo-sue> not that i'm aware of.
<pseudo-sue> services.xserver.videoDrivers = [ "nvidia" "intel" ]; is what i have in my config
<calvertvl> hmm...then I'm not sure; there was a recent fix for GLX issues on legacy drivers that may not have made it into the channels yet
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fare opened pull request #26338: Add support for Gerbil (master...master) https://git.io/vHgD8
NixOS_GitHub has left #nixos []
<calvertvl> (I haven't checked since I build master all the time)
<pseudo-sue> oh hey, is fare here? hi fare!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ericsagnes opened pull request #26339: groonga: 7.0.0 -> 7.0.3 (master...pkg-update/groonga) https://git.io/vHgD0
NixOS_GitHub has left #nixos []
<pseudo-sue> i get the same error, btw, if i *don't* add nvidia to the services.xserver.videoDrivers
arianvp2 has quit [(Quit: arianvp2)]
<pseudo-sue> so i suppose the issue may be that nvidia isn't being used at all.
mudri has quit [(Ping timeout: 260 seconds)]
<calvertvl> pseudo-sue: based on what you were saying before about needing to include intel, that is proabbly the case; you'd have to look at the xserver logs to confirm
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ericsagnes opened pull request #26340: albert: 0.11.1 -> 0.11.3 (master...pkg-update/albert) https://git.io/vHgyY
NixOS_GitHub has left #nixos []
darlan has joined #nixos
taktoa has quit [(Remote host closed the connection)]
leat has quit [(Ping timeout: 272 seconds)]
jgertm has quit [(Ping timeout: 260 seconds)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] emmanuelrosa opened pull request #26341: doc: clarify building-nixos CD/DVD instructions (release-17.03...release-17.03) https://git.io/vHgyx
NixOS_GitHub has left #nixos []
<pseudo-sue> yeah, this might narrow things down a bit, calvertvl: with "intel" removed, X won't start properly. I'll go poking around in the xserver logs to see.
<pseudo-sue> hm, it looks as if nvidia can't detect the screen. journalctl shows "no screens found" and "No devices detected", for the display-manager service, after loading nvidia.
<pseudo-sue> "Please also check the log file at '/dev/null' for additional information" is a nice touch :P
lambdamu_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vHgSK
<NixOS_GitHub> nixpkgs/master 4bee34d Emmanuel Rosa: doc: clarify building-nixos CD/DVD instructions...
NixOS_GitHub has left #nixos []
deba5e12 has joined #nixos
danbst1 has quit [(Quit: WeeChat 1.7)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to release-17.03: https://git.io/vHgSP
<NixOS_GitHub> nixpkgs/release-17.03 f82bbc9 Emmanuel Rosa: doc: clarify building-nixos CD/DVD instructions...
NixOS_GitHub has left #nixos []
lambdamu has quit [(Ping timeout: 255 seconds)]
<deba5e12> ok, so, here's the errors that I seem to be getting when I try to launch display-manager with only "nvidia" loaded (and not intel): https://paste.pound-python.org/show/TXrK3Qw3jgPqxXX0KSlw/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #26341: doc: clarify building-nixos CD/DVD instructions (release-17.03...release-17.03) https://git.io/vHgyx
NixOS_GitHub has left #nixos []
<deba5e12> if anyone with a bit of familiarity with nvidia and related hijinx would like to take a peek at it, and share their thoughts, that'd be much appreciated.
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
danbst has joined #nixos
Supersonic112_ is now known as Supersonic112
<calvertvl> deba5e12: do you know what driver version the nvidia website says you should use? some older cards need one of the nvidiaLegacy drivers
mizu_no_oto has joined #nixos
<pseudo-sue> i haven't checked, and just assumed that it would be the most recent.
<pseudo-sue> it's a new machine, just released a little while ago.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vHgSh
<NixOS_GitHub> nixpkgs/master edaf76a Eric Sagnes: albert: 0.11.1 -> 0.11.3
NixOS_GitHub has left #nixos []
<pseudo-sue> < is deba5e12, too, btw
<calvertvl> ah, then yeah, it should be the most recent...not all of mine are the latest
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #26340: albert: 0.11.1 -> 0.11.3 (master...pkg-update/albert) https://git.io/vHgyY
NixOS_GitHub has left #nixos []
<pseudo-sue> i've seen some mention on some of the forums of using nvidiaBeta instead. maybe that's the way to go?
<calvertvl> from what I remember, that's usually not recommended unless there is a significant problem or the latest kernel is unsupported
<calvertvl> (also, frequently nvidia and nvidiaBeta are the same driver)
<pseudo-sue> a moot point, anyway. nixos-rebuild complains of a failed build when i try that one.
<calvertvl> not sure exactly the reason for no screens found; if you run 'lsmod | grep nvidia' you should see the module listed
<pseudo-sue> hm, interestingly not
<calvertvl> if you don't, you'll have to look at dmesg to figure out why it's not loading...if it's loading I don't have any ideas
<pseudo-sue> i can modprobe it in, though
<calvertvl> hmm...then that probably means that something in the boot sequence isn't auto-loading it the way it should
<pseudo-sue> could there be something i'm missing in the config?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vHg9I
<NixOS_GitHub> nixpkgs/master fe1f560 Eric Sagnes: groonga: 7.0.0 -> 7.0.3
NixOS_GitHub has left #nixos []
<pseudo-sue> would you mind if i pastebinned it for you to take a look?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #26339: groonga: 7.0.0 -> 7.0.3 (master...pkg-update/groonga) https://git.io/vHgD0
NixOS_GitHub has left #nixos []
<pseudo-sue> ^ there it is, fwiw
lstanley has joined #nixos
<calvertvl> you may want to add nvidia to boot.kernelModules, but I'm not sure how much difference that would make...
<pseudo-sue> i'll give it a whirl
deba5e12 has quit [(Remote host closed the connection)]
<calvertvl> ah...bumblebee blacklists nvidia and there's probably some requirement for optirun ? not sure, I don't use bumblebee so that may be contributing
<pseudo-sue> still doesn't show up in lsmod
<pseudo-sue> aaaa
<pseudo-sue> ok
<pseudo-sue> i thought the whole point of bumblebee was to intelligently switch between nvidia and intel
thc202 has quit [(Ping timeout: 240 seconds)]
<pseudo-sue> though i think i added bumblebee in an effort to resolve this issue, so it might not be responsible. i'll comment it out and see if that helps
<calvertvl> that's what would make sense, but apparently the "intelligence" is caused by the program being wrapped by optirun or something
<pseudo-sue> ok, nvidia now shows up in lsmod after boot
cheshircat has joined #nixos
<pseudo-sue> but steam still throws the "OpenGL GLX extension not supported by display" error
<calvertvl> you should be able to install glxinfo and get glxgears to run as a first step (confirm OpenGL is working)
<pseudo-sue> sounds like a plan.
<pseudo-sue> ok, after removing "intel", again, the display-manager fails to start.
<calvertvl> I haven't dug into how these hybrid GPU systems work; is there a BIOS switch that controls whether the nvidia card is available on boot?
<pseudo-sue> maybe
<pseudo-sue> i'll look
<calvertvl> (I probably should as I have a laptop with one, but I don't run nixos on it)
<pseudo-sue> oh here we go!
_ris has quit [(Ping timeout: 255 seconds)]
<pseudo-sue> yeah, I can give it 512MB instead of 256MB of graphics memory, and select "Discrete Graphics" instead of "Hybrid Graphics". cross your fingers.
<pseudo-sue> this is new territory for me, too. never had a discrete graphics card before.
<pseudo-sue> oh the neural nets i'll train
orivej has quit [(Ping timeout: 255 seconds)]
<pseudo-sue> steam boots!
mbrgm has quit [(Ping timeout: 258 seconds)]
<pseudo-sue> and the glxgears are turning!
<pseudo-sue> thank you!
<calvertvl> you're welcome :)
mbrgm has joined #nixos
revtintin has joined #nixos
mog has quit [(Ping timeout: 240 seconds)]
mog has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vHgHc
<NixOS_GitHub> nixpkgs/master 3badf79 Alexandre Peyroux: insync: Check if arch is x86_64 before downloading the binary.
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #26291: insync: check if architecture is x86_64 before downloading the binary. (master...up-insync) https://git.io/vHRKZ
NixOS_GitHub has left #nixos []
s33se has joined #nixos
cheshircat has quit [(Quit: WeeChat 1.7.1)]
bennofs has quit [(Ping timeout: 245 seconds)]
cheshircat has joined #nixos
s33se_ has quit [(Ping timeout: 255 seconds)]
kojiro has joined #nixos
<kojiro> Hi! I am trying to use a YubiKey with NixOS. If I run gpg2 --card-status as a normal user, it fails, but if I do it as root it works.
<kojiro> What is the correct way to grant my regular user access to the yubikey?
SovereignBleak has quit [(Quit: Connection closed for inactivity)]
nix_n00b has joined #nixos
<nix_n00b> is this the main channel or is it nix?
<mdash> This is the main channel.
<calvertvl> kojiro: I don't use a yubikey, but...are you using scdaemon / libu2f-host ? there's an example here that may work: https://github.com/NixOS/nixpkgs/issues/15960
<kojiro> the usb device is /dev/bus/usb/001/021, and it is owned by root:root
<nix_n00b> Anyway, I'm wondering if, in the simplest terms, users or profiles are reproducible on NixOS. As in, can I create a VM or new machine that has all my programs and configs for each one?
<kojiro> calvertvl: scdaemon, yes
<nix_n00b> And example would my precious vim configuration, is something like that, adn all my other configs, reproducible?
<kojiro> calvertvl: hmm, that seemed to be a different problem. according to list.gnupg.org, the usb device should at least have a group ownership other than root...
<gchristensen> nix_n00b: anything expressed in your configuration.nix would carry over
<gchristensen> which I think can include your vim config, but perhaps not _all_ your user config, likefirefox settings
<calvertvl> kojiro: the other thing I saw when looking for issues was maybe enabling the pcscd service?
<kojiro> calvertvl: what provides that, pcsctools?
<calvertvl> kojiro: I'm pretty much shooting in the dark here, though, since I don't use smart cards
<nix_n00b> but what about things expressed in /.config/ ? Is there a way to put user specific configs in a way they're reproducible?
<kojiro> calvertvl: I appreciate it nonetheless
<kojiro> two people shooting in the dark can hit twice as many targets
<nix_n00b> gchristensen: is there any sort of workaround for that?
<kojiro> there's always saltstack nix_n00b
<kojiro> :P
<calvertvl> nix_n00b: I've seen https://github.com/kamilchm/.nixpkgs which might get you closer
<nix_n00b> saltstack?
<pseudo-sue> does anyone know offhand how to enable the XF86MonBrightness(Up|Down) controls? (wm = xmonad)
<simpson> kojiro: Friends don't let friends use Salt~
<gchristensen> nix_n00b: programs want to (and need to) be able to read and write those, almost no way around that
<kojiro> calvertvl: that .nixpkgs looks pretty cool
<kojiro> simpson: I don't really know the person, so...
<nix_n00b> could i not just tarball my entire /.config/ directory and untar it later?
<simpson> kojiro: Friends don't let friends.
<kojiro> nix_n00b: why not? Or put it in a version control system
<pseudo-sue> just don't stick a tarbar of your entire .config on github!
<nix_n00b> I just never want to have to reconfigure everything ever again for my entire life
<pseudo-sue> (browsers tend to store password hashes in there)
<nix_n00b> ew
<gchristensen> nix_n00b: you will have to :(9
Zarutian has quit [(Quit: Zarutian)]
<calvertvl> I use src for most single-file configs; it can do an export that can be read into git if needed
cheshircat has quit [(Quit: WeeChat 1.7.1)]
<gchristensen> its a bit of a fool's errand to try what you're wanting to do :( makes me sad
<kojiro> nix_n00b: as soon as you stop reconfiguring stuff, a new version will come out with backwards incompatible configuration anyway
<nix_n00b> really? that's terrible
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vHgQG
<NixOS_GitHub> nixpkgs/master 9e56cdd Rodney Lorrimar: emacsWithPackages: support installing larger packages...
<NixOS_GitHub> nixpkgs/master cca234d Graham Christensen: Merge pull request #26207 from rvl/fix-tide-melpa...
NixOS_GitHub has left #nixos []
<calvertvl> yeah, I've not found a good solution yet, really...some things I don't mess with very much and others I frequently tweak for my current workflow
<nix_n00b> have yall seen this https://github.com/rycee/home-manager
cheshircat has joined #nixos
<pseudo-sue> does anyone know where xmobar is hiding?
<kojiro> nix_n00b: that looks pretty good
spinus has quit [(Quit: Leaving.)]
<calvertvl> pseudo-sue: haskellPackages.xmobar
<nix_n00b> kojiro: would you say it's closer to what I'm looking for than https://github.com/kamilchm/.nixpkgs
<nix_n00b> or is a tarball my best bet?
<nix_n00b> the tried and true
<pseudo-sue> thanks!
<kojiro> calvertvl: sad to say, that service pcscd did not change anything useful
<kojiro> nix_n00b: only you can answer that
<kojiro> try all three
<kojiro> report back :)
<nix_n00b> I don't even understand the second link, but I guess what I should do is try all 3, like you say, but in seperate VMs so I'm safe :)
<calvertvl> nix_n00b: home-manager looks more nix-y, but for unsupported packages you'd have to write additional modules... the .nixpkgs one mostly just does dependency injections into hand-written files
<nix_n00b> I think it'd be cool if NixOS adopted home-manager so it got some real dev work, it does sound nix-y. I don't know if I run any unsupported packages as I'm a super noob. What do you mean by "dependency injections?
<nix_n00b> calvertvl:^
<calvertvl> nix_n00b: basically, it can let you use a package directly in a bash function or the like without it showing up in your normal path
<kojiro> I'm trying to figure out which /dev node corresponds to which usb device. Can I map something in the output of dmesg to a /dev/bus/usb/** somehow?
<calvertvl> so if you wanted to e.g. run taskwarrior on a couple of different task lists, you could use that to override
<calvertvl> or setting up commands in xmonad instead of installing them systemwide
<calvertvl> (or per-user)
<nix_n00b> sounds like home-manager is more what I'm looking for then
<calvertvl> the benefit to home-manager is that it could do this directly in addition to the more nix-friendly configuration scheme
<nix_n00b> thanks for the english translation though :)
<calvertvl> yeah, it looks better to me too
<nix_n00b> Yeah I wondr how many NixOS devs know about it, I just stumbled upon in a reddit comment sometime last week
<nix_n00b> and I couldn't stop thinking about how nice that'd really be
<nix_n00b> I have a couple friends I'm supposed to introduce to linux and programming, and I thought that'd be such a nice way, just to be able to reproduce my system in a VM for them like magic
<kojiro> something has to be setuid here - my mouse is root:root /dev/bus/usb/001/018 and that device works fine as non-root
<kojiro> maybe the problem is scdaemon itself
<calvertvl> nix_n00b: note that programming on nixos can be trickier as it's usually best to use the nix build environment; some simpler things are ok without it though
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vHgQ9
<NixOS_GitHub> nixpkgs/master 3775a90 Armijn Hemel: gimp: 2.8.20 -> 2.8.22
<NixOS_GitHub> nixpkgs/master b520c30 Graham Christensen: Merge pull request #25767 from armijnhemel/gimp...
NixOS_GitHub has left #nixos []
<nix_n00b> what do you mean, why do you say that?
<nix_n00b> calvertvl:^
<nix_n00b> they will be very simple Scheme and C things anyway
<calvertvl> nix_n00b: for e.g. python stuff, you're better to run for example a nix-shell with a shell.nix that has the python packages added to it, as installing them directly doesn't really work
takle has joined #nixos
<nix_n00b> that must be because the OS is still in development?
<calvertvl> nix_n00b: for scheme and C, unless you're linking against lots of system libraries it may work fine regardless, but if you run nix-collect-garbage you may need to rebuild things
<nix_n00b> calvertvl: Where do these problems come from? I don't understand how compiling and executing a C program, or python, or anything would cause anything like that
<calvertvl> nix_n00b: it's because of the functional aspects of nix
<nix_n00b> I thought these programs would be sandboxed, for lack of a better word. I guess there's a big picture I'm missing.
<calvertvl> nix_n00b: in other words, your user environment has certain packages, but if you install/remove things, references may be changed or removed
<nix_n00b> and how does that relate back to python and such causing trouble?
<calvertvl> nix_n00b: best way to sandbox is to write a default.nix that pulls the dependencies in and so on
<nix_n00b> calvertvl: default.nix?
<calvertvl> nix_n00b: in the python case, I think it had to do with e.g. nix-env -i not updating the library path for python, whereas using buildPythonPackage in a .nix file takes care of all that for you
takle has quit [(Ping timeout: 260 seconds)]
<nix_n00b> cavertvl: Oh, well that sounds if there's workarounds for a regular account then?
<calvertvl> nix_n00b: default.nix is just the default name the tools use; there are some conventions for it
<nixy> nix_n00b: There are issue with purity in how the python ecosystem works
<nix_n00b> Ahh ok
<nix_n00b> nixyL thanks
hexagoxel has quit [(Ping timeout: 255 seconds)]
<nix_n00b> nixy: that's really interesting, I never would of thought that until today.
<nixy> This issue has a pretty decent explanation of whats up with that -> https://github.com/NixOS/nixpkgs/issues/10597
<nix_n00b> nixy: Are painless solutions on the horizon?
<nix_n00b> thanks checking that out now
Piece_Maker has joined #nixos
<nix_n00b> nixy: So if the package was functionally installed there would have not been a problem?
<kojiro> calvertvl: I worked it out, mostly by setting the options in this forum https://bbs.archlinux.org/viewtopic.php?id=222401
<nixy> nix_n00b: Yeah, but its still something that tricks people up and requires you to change your workflow
<kojiro> however, I currently have a very nix hashy path to that libpcsclite.so file
<kojiro> is there a more canonical way to write it?
Acou_Bass has quit [(Ping timeout: 255 seconds)]
Piece_Maker is now known as Acou_Bass
<nix_n00b> nixy: Ok, I (sort of) understand. I meanm after the installation, work flow wouldn't really be altered would it?
<nixy> Kind of. You would have to go and edit your system packages or config.nix instead of just running `nix-env` in your shell
<nixy> Once you figure out how python packaging works it isn't difficult, but it is unintuitive at first
<calvertvl> kojiro: if you wind up using home-manager or the .nixpkgs one, you could probably write it as ${pcscd}/lib/... but that's probably as close as you could get
<kojiro> ok. I'll live with it for now
<nix_n00b> nixy: Now this, to me, sounds like something that would get smoothed out as popular packages are repackaged for NixOS, right?
hexagoxel has joined #nixos
<nix_n00b> e.i a NixOS concious python packager could make things easy as pie?
<kojiro> nice wording
<nixy> nix_n00b: Python applications, such as `ranger`, will be as easy to install as anything else
<nixy> The only issue here is with making libararies available in a python interpreter for local development or running in a REPL
<nixy> This is really an issue with how python works and how nix works. Someone clever may come up with a solution that fixes this, but I don't think more people using Nix for python will solve this
<nix_n00b> nixy: There must be many more identical problems with similar languages then?
<nixy> nix_n00b: I believe you can run into similar issues with header files in C, but I don't package things for C :P
<kojiro> heh, I'm a Pythonista and I'm not sure I see it as a problem.
<nixy> ^
<nix_n00b> kojiro: why's that? ideally wouldn't everything install fine with nix-env?
<kojiro> depends on your definition of "install fine"
<kojiro> you have to know exactly what you mean by that
<nix_n00b> and how might an experienced user like myself detect when I should not use nix-env?
<nixy> Some would argue that you should never really use nix-env
<nix_n00b> kojiro: works without breakage and minimal complications
<kojiro> if you are building a python app with a dependency, package it the python way.
<nix_n00b> nixy: Oh, interesting.. I was just copying the manuals syntax.
<nix_n00b> nixy: what would a true NixOS gentlemen use?
<kojiro> hah
<kojiro> nix_n00b: consider this (and I'm quoting what I read here, I'm a nix noob) - if nix lets you install a package with a modified configuration, but that package is also a dependency of another package, how does nix ensure that the configuration change doesn't break the dependent package?
<nixy> Some of the more seasoned people around here use `buildEnv` in config.nix or just the `environment.systemPackages` to manage things in a declarative fashion
<kojiro> If nix particularly wanted to be crazy pythonic, it could publish "sites"
<kojiro> but that still wouldn't get to the crux of the matter
<kojiro> because you wouldn't know which sites to mix up
<kojiro> language libraries are best handled by the language's package manager, in a contained environment like virtualenv
<nix_n00b> Stupid question, but do people in other OS's have difficulty setting up a purely functional like haskell in a non-functional enviroment?
<nix_n00b> or is this problem one way?
<nix_n00b> "problem" for lack of a better word
<kojiro> surely it's easier to handle purity in an impure environment than it is to handle impurity in a pure environment
<nix_n00b> makes sense
<kojiro> nixos is pretty unique
<kojiro> that said, nixpkg can be installed on various os's, and it will still have this behavior wherever you put it
<kojiro> nix_n00b: actually, that reminds me -- are you familiar with homebrew? There's an analogous problem there.
<simpson> You can always create "pure" and "impure", as you call them, by introducing a new top-level scope.
<nix_n00b> homebrew? No, but it sounds familiar
<kojiro> it's a package manager built for macos - anyway, if you happen to be in a python virtualenv when you install a thing with homebrew, and that thing has python dependencies, you'll be in for a fun time
<kojiro> the python dependencies will get put in the virtualenv, but the rest of the stuff will be installed globally
<kojiro> so your program will "exist", but behave differently inside and outside the virtualenv
dhess` has joined #nixos
simukis has quit [(Ping timeout: 240 seconds)]
<nix_n00b> kojiro: interesting! And this happens for a reason analogous to the Nix Python problem?
<kojiro> maybe the word "inverse" fits better
<kojiro> it's the /inverse/ problem
<kojiro> nix isolates the python package from the thing some people think it should be able to depend on
<kojiro> in homebrew, the virtualenv isolates the python package too -- meh, maybe it's not so inverse
<kojiro> I'm tired :)
<kojiro> nix_n00b: the point is that if you were installing some nix-packaged thing that had a python dependency, it would probably work fine
<kojiro> you just can't install a random python library with nix-env and expect it to be available to the python path
johnsonav has joined #nixos
<nix_n00b> kojiro: huh, interesting about homebrew. And ok, perhaps not with nix-env, but there are other ways?
<kojiro> ways to do what? install a random python library?
<nix_n00b> yeah I think Nixy was mentioning using something like buildEnv
<kojiro> I'm not familiar with buildEnv
<kojiro> I can only talk about the Python standards here
<nixy> So if you wanted to run python3 with numpy you would just put `python3` and `python3Packages.numpy` in the paths list
<nix_n00b> oh wow ok, I see now. I thought this was being run from the commad line like nix-env
<kojiro> nix_n00b: so what, you do this and then you switch to that env with e.g. nix-env --switch-profile?
<nix_n00b> well that's kinda cool, much less problematic than I was thinking
<kojiro> nixy ^
<nixy> The env isn't a profile, but its an installable thing
<kojiro> installable with nix-env -i?
<nixy> So if you have that definition in your ~/.config/nixpkgs/config.nix you can then run `nix-env -i pythonTools`
<kojiro> huh
<kojiro> nice
<kojiro> so the question is, having done that, is pygments on the pythonpath for that particular profile's python?
<kojiro> I gather so
takle has joined #nixos
<nixy> kojiro: I am not _exactly_ sure how it works, but I am pretty sure that it explicitly points the pythonpath to those packages, since it know the packages that should be in the path to start
<nix_n00b> So in the NixOS community is this Python (and similar) faux pas viewed as a benefit, a drawback or just some collateral side effect?
<nixy> It's seen as an acceptable side effect for having purity and correctness
<simpson> nix_n00b: Eventually you learn to like doing it the nixpkgs way.
<kojiro> it is at very least a necessary behavior to get some of the other benefits of nix
<nix_n00b> simpson: ok, thanks. kojiro: makes sense too
<nix_n00b> I would just think there would at some point be some sort of automated way to do it
<nix_n00b> where the system knows it's an imperative install and some magic happens and it's all perfect lol
<Olgierd> are there any prerequisites to boot a nixos system from an usb hdd?
<Olgierd> because it cannot find the root device in stage 1 (I am on UEFI)
takle has quit [(Ping timeout: 245 seconds)]
<nix_n00b> nixy: but just to be clear, after installing it the nixos way, it would work fine?
<nix_n00b> kojiro:^ also for this pythonista :)
<Olgierd> and using systemd-boot
<kojiro> nix_n00b: I don't really see a conflict. You seem to be asking to bridge a gap between installing a tool for development in a specific development context (Python, in this case) and installing a package for use as a user.
<nix_n00b> you've got a hard drive plugged into the USB and you're trying boot from that?
<nix_n00b> Olgierd: is your boot order right?
<kojiro> if you want to install it as a tool, don't expect it to work for development. If you want to install it for development, expect to manage it as a developer
<kojiro> thus, if you're doing python development, use e.g. virtualenv/pip/setuptools
<Olgierd> yep, also before failing it repeatedly prints out messages about found lvm partitions (I have an encrypted arch install on the ssd)
<kojiro> or, buildEnv, if that floats your boat
<Olgierd> well I installed it on the HDD from virtualbox
<nix_n00b> kojiro: Ok, I just want to make sure it's not going to be a hairy mess just writing simple python programs in NixOS
<Olgierd> but given it searches for the uuid and not the device name, so it should not get stuck
<kojiro> nix_n00b: in some sense I actually regard that fact that most "conventional" package managers install things into the _global_ Python Path as a terrible mess.
<kojiro> friends don't let friends use the system python
<nix_n00b> Olgierd: is your real hdd hard to get to? I'd wonder if it'd boot from that if you swapped them
<Olgierd> I'll try
alx741_ has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
alx741 has quit [(Ping timeout: 268 seconds)]
MinceR has quit [(Ping timeout: 240 seconds)]
kojiro has quit [(Quit: leaving)]
MinceR has joined #nixos
<Olgierd> aaaaand it works!
<pseudo-sue> speaking of python, I remember hearing here a while ago that pip isn't really well supported by nix, and that pypi2nix should be used instead. is that right? I'm just interested in providing a few libraries, globally, that I use in various utility scripts.
<pseudo-sue> pypi2nix doesn't seem to work, at least not off the shelf -- it throws an error about not being able to find the pkg_resources module.
<dash> pseudo-sue: hm, pastebin the command you ran and the output?
<dash> also, are you using pypi2nix from git? the one in nixpkgs is not so great IME
schoppenhauer has quit [(Ping timeout: 240 seconds)]
schoppenhauer has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
jgertm has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
jgertm has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #26343: wpsoffice: cleanup and i686 version (master...master4) https://git.io/vHgFo
NixOS_GitHub has left #nixos []
c74d has quit [(Quit: c74d)]
c74d has joined #nixos
<pseudo-sue> hey dash, it's all sorted out now. i was trying to get nvidia to work properly, but it turned out that it was just a matter of switching the damn thing on in the bios
<pseudo-sue> i was trying to use the pypi2nix from nixpkgs, yeah.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah closed pull request #26296: autorandr: 855c18b -> ee77c35 (master...master3) https://git.io/vH0Jx
NixOS_GitHub has left #nixos []
magnetophon has joined #nixos
nix_n00b_ has joined #nixos
<nix_n00b_> How to install / launch virtualbox? I'm looking at the package nixos.org/nixos/packages.html but I can't launch it
<drakonis_> use qemu if on linux
<drakonis_> virtualbox isn't very good
<clever> nix_n00b_: the host options have to be enabled first, https://nixos.org/nixos/options.html#virtualbox.host
jgertm has joined #nixos
<nix_n00b_> clever: clever! I'll check that out in a bit, thanks :)
<calvertvl> drakonis_: one reason to want to use virtualbox is for e.g. vagrant
<drakonis_> hmm
<drakonis_> i see
<drakonis_> didn't know.
<clever> i find that the vbox gui is good for when you dont know what options you want, and want to play with things
<clever> but qemu is better if you know exactly what you want to do, and/or want automate things
<calvertvl> I suppose if someone built the appropriate vagrant provider, then qemu would be better in that case
<calvertvl> clever: I've been having trouble with virtualbox run as my user rather than sudo; it complains about not being able to find the kernel module
<calvertvl> (specifically, "Kernel driver not accessible")
<calvertvl> any ideas? I don't have any special configs other than virtualisation.virtualbox.host.enable=true
<clever> calvertvl: you may need to reboot, nixos-rebuild doesnt load kernel modules
<calvertvl> I've rebooted several times with that config in place after a rebuild; starting with sudo works fine
<calvertvl> but just running it under my own user fails
<pseudo-sue> i found that it works much better if you put the following in your imports:
Raimondi has joined #nixos
<pseudo-sue> <nixpkgs/nixos/modules/virtualisation/virtualbox-host.nix>
<pseudo-sue> (in /etc/nixos/configuration.nix)
<drakonis_> there's guis for qemu
leat has joined #nixos
<pseudo-sue> it seems as if my wireless device isn't quite working properly. this is possibly a firmware issue. wlp4s0 shows up in ifconfig, but seems unresponsive.
<pseudo-sue> it's an intel chip, and I think it uses the iwlwifi firmware
Filystyn has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
Filystyn has quit [(Remote host closed the connection)]
* calvertvl heads off to bed
calvertvl has quit [(Quit: leaving)]
johnsonav has quit [(Ping timeout: 245 seconds)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 245 seconds)]
Mateon3 is now known as Mateon1
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
drakonis_ has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
<Filystyn> yo
<Filystyn> seems somehow i turned out / muted system
<Filystyn> not sure how to turn it on again
<Filystyn> I switched muto off but still no sound
Filystyn has quit [(Ping timeout: 260 seconds)]
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
Filystyn has joined #nixos
Guest85437 has joined #nixos
<Filystyn> fixed
bitonic has quit [(Ping timeout: 255 seconds)]
bitonic has joined #nixos
kanzure has quit [(Ping timeout: 255 seconds)]
Guest85437 has quit [(Ping timeout: 246 seconds)]
kanzure has joined #nixos
marcinkuzminski has quit [(Ping timeout: 255 seconds)]
marcinkuzminski has joined #nixos
earldoug1as has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
earldouglas has joined #nixos
takle_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Ping timeout: 260 seconds)]
takle_ has quit [(Ping timeout: 255 seconds)]
Filystyn has quit [(Read error: Connection reset by peer)]
DutchWolfie has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
LysergicDreams has quit [(Ping timeout: 245 seconds)]
LysergicDreams has joined #nixos
jmeredith has quit [(Quit: Connection closed for inactivity)]
nix_n00b_ has quit [(Ping timeout: 260 seconds)]
<capisce> is "system.autoUpgrade.enable = true;" recommended?
<nixy> capisce: I would say so
<nixy> How often do you manually go in and update your servers
takle has joined #nixos
<nixy> Errr, I suppose you may not be asking for a server though
<mbrgm> is anyone running tt-rss on nixos?
Itkovian has joined #nixos
ambro718 has joined #nixos
k2s has joined #nixos
<DIzFer[m]> mbrgm: Me. Not through nixpkgs though
k2s has quit [(Client Quit)]
<mbrgm> ok... the nixos module does not work for me and I'm trying to find out why...
<DIzFer[m]> I manually clone the git repo to /var/www and serve it from there
<mbrgm> k
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<capisce> nixy: my laptop :)
<Olgierd> mbrgm: I do, what's exactly the problem?
<nixy> capisce: It still wouldn't be bad to enable it, but you are probably better off running rebuilds yourself
iyzsong has joined #nixos
faffolter has quit [(Ping timeout: 245 seconds)]
orivej has joined #nixos
Afterlith[m] has joined #nixos
takle has quit [(Remote host closed the connection)]
endformationage has quit [(Quit: WeeChat 1.7)]
arianvp2 has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
evangeline_ has quit [(Ping timeout: 272 seconds)]
mudri has joined #nixos
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
adamt has joined #nixos
evangeline has joined #nixos
<mbrgm> DIzFer[m]: are you using nginx fastcgi for php or apache?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #26344: nixos/bcache: install udev rules outside initrd too (master...bcache-udev-rules-v2) https://git.io/vHgj8
NixOS_GitHub has left #nixos []
filterfish_ has joined #nixos
filterfish has quit [(Ping timeout: 272 seconds)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
<DIzFer[m]> mbrgm: fastcgi with caddy
<adamt> Hi. I'm totally new with Nixos, and i'm trying to install idea.idea-ultimate. However, the pkg from the 17.03 channel points to a version/src file that doesn't exist, so i figured i would change the version, but can't get it to work. I tried two things: http://dpaste.com/3TDZKA9 -- any thoughts?
Raimondi has joined #nixos
arianvp2 has joined #nixos
<adamt> (no matter what the incorrect file is still being attempted to download)
Raimondi has quit [(Ping timeout: 268 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
filterfish_ has quit [(Ping timeout: 260 seconds)]
jacob_ has joined #nixos
jacob_ is now known as Guest71292
filterfish has joined #nixos
faffolter has quit [(Ping timeout: 260 seconds)]
k2s has joined #nixos
roconnor_ has quit [(Ping timeout: 255 seconds)]
Itkovian has joined #nixos
jophish has quit [(Quit: leaving)]
jophish has joined #nixos
jophish has quit [(Client Quit)]
jophish has joined #nixos
marsel has joined #nixos
Guest71292 has quit [(Quit: Lost terminal)]
jacob_ has joined #nixos
jacob_ is now known as Guest83290
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat opened pull request #26345: nixpkgs manual: advise against overriding whole phases (master...p/doc-override-phases) https://git.io/vH2vE
NixOS_GitHub has left #nixos []
pbogdan has joined #nixos
evangeline has quit [(Ping timeout: 260 seconds)]
pem__ is now known as pmeunier
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
evangeline has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
k2s has quit [(Ping timeout: 245 seconds)]
arianvp2 has quit [(Quit: arianvp2)]
marsel has quit [(Ping timeout: 260 seconds)]
arianvp2 has joined #nixos
aanderse has joined #nixos
_ris has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj opened pull request #26346: dnschain: allow different bind and external addresses (master...dnschain) https://git.io/vH2J0
NixOS_GitHub has left #nixos []
<ison111> Is there anything special that needs to be done to get thunar to create video thumbnails? I have ffmpeg, ffmpegthumbnailer, ffmpegthumbs, and some gstreamer packages installed and still nothing
Raimondi has joined #nixos
thc202 has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
bennofs has joined #nixos
leat 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/vH2Jh
<NixOS_GitHub> nixpkgs/master 2606d39 rnhmjoj: dnschain: allow different bind and external addresses
<NixOS_GitHub> nixpkgs/master 4c1aeb6 Jörg Thalheim: Merge pull request #26346 from rnhmjoj/dnschain...
NixOS_GitHub has left #nixos []
bennofs has quit [(Ping timeout: 260 seconds)]
katyucha is now known as Guest94148
Guest7646 is now known as katyucha
leat has joined #nixos
bennofs has joined #nixos
dhess has quit [(Remote host closed the connection)]
leat has quit [(Read error: Connection reset by peer)]
<aanderse> hello i'm working in kdevelop right now using gdb but pretty printing is not working. anyone had this issue or know how to fix?
arianvp2 has quit [(Quit: arianvp2)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vH2U8
<NixOS_GitHub> nixpkgs/master 43f9c60 Francois-Rene Rideau: gambit: 4.8.5 -> 4.8.6...
<NixOS_GitHub> nixpkgs/master 7cbdb10 Francois-Rene Rideau: gerbil: init at 0.10
<NixOS_GitHub> nixpkgs/master de0d0da Jörg Thalheim: gerbil: simplify shebang patching...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26338: Add support for Gerbil (master...master) https://git.io/vHgD8
NixOS_GitHub has left #nixos []
arianvp2 has joined #nixos
leat has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
* gchristensen writes email he'll probably regret
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Fuuzetsu pushed 2 new commits to master: https://git.io/vH2U7
<NixOS_GitHub> nixpkgs/master 6685563 Mateusz Kowalczyk: Revert "datadog: Properly use configured package."...
<NixOS_GitHub> nixpkgs/master dcf171b Mateusz Kowalczyk: Revert "dd-agent: 5.11.2 -> 5.13.2 + service rework"...
NixOS_GitHub has left #nixos []
<joachifm> gchristensen: to nix-dev?
<gchristensen> yeah
<danbst> gchristensen: agree about PR too complicated
92AAA7RVS has joined #nixos
<92AAA7RVS> [nixpkgs] Mic92 closed pull request #26284: inspectrum: unstable-2017-02-18 -> unstable-2017-05-31 (master...inspectrum_upgrade) https://git.io/vHRJn
92AAA7RVS has left #nixos []
18WAAA10E has joined #nixos
<18WAAA10E> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vH2Ub
<18WAAA10E> nixpkgs/master fcf6989 Bastian Köcher: inspectrum: unstable-2017-02-18 -> unstable-2017-05-31 (#26284)...
18WAAA10E has left #nixos []
<gchristensen> sorry, which part, danbst?
<gchristensen> which PR*
<danbst> gchristensen: the 10851
<gchristensen> ah yeah
<gchristensen> great :D
takle has quit [(Remote host closed the connection)]
<danbst> gchristensen: but don't agree about using nixpkgs-unstable-small. It becomes an attack vector if you know which channel does victim follow
takle has joined #nixos
<gchristensen> how? there's only 4 to choose from
<gchristensen> are you on that email thread?
<danbst> gchristensen: yes, and there are people (like me) who choose to follow nixos-unstable
<joachifm> danbst: but why?
<danbst> gchristensen: I'm Danylo there
<qknight_> how can i trick nixos to evaluating a `writeText` so it crates a password file for me
<gchristensen> I mean, I'm telling you straight up, nixos-unstable does not have promises around security patching
<joachifm> as I wrote earlier in the thread, I never understood why anybody would *run* nixos-unstable
<danbst> joachifm: which one why? why do I follow nixpkgs-unstable?
<joachifm> danbst: yes
<gchristensen> joachifm: same
<gchristensen> wait WTF
<gchristensen> danbst: you run nixpkgs-unstable for nixos?
<danbst> gchristensen: sorry, I run nixos-unstable
<gchristensen> oh phew :)
takle has quit [(Ping timeout: 255 seconds)]
<DIzFer[m]> joachifm: why not unstable? It's the closest we can have to a rolling nixos without losing caching
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26235: ctop: init at 2017-05-28 (master...init-ctop) https://git.io/vHlYg
NixOS_GitHub has left #nixos []
<joachifm> DIzFer[m]: except it gets stuck for weeks ...
<joachifm> DIzFer[m]: often
<joachifm> DIzFer[m]: so you're exposing yourself to running with serious bugs for a long time
<joachifm> DIzFer[m]: and unless you really follow development, you wouldn't necessarily know about it
<joachifm> DIzFer[m]: use unstable-small or release, please
dtulig has quit [(Quit: WeeChat 1.3)]
arianvp2 has joined #nixos
<DIzFer[m]> What happens for unstable-small to get updated, but not unstable?
<joachifm> DIzFer[m]: just fewer requirements for generating a new channel
<gchristensen> -small builds and tests less stuff
<joachifm> DIzFer[m]: so -small tends to move ahead at a fairly brisk pace, unless there's serious breakage/Hydra problems
<danbst> joachifm: gchristensen: I had rebuilds of JDK several times when following -small. After that I learned not to follow them
takle has joined #nixos
<DIzFer[m]> hmmm. I'm going to check if -small triggers any unexpected builds on my vps
<danbst> joachifm: gchristensen: virtualbox+QT was there too, until I made the headless vbox PR
<joachifm> danbst: alright, just be aware that there are tradeoffs; like you can really get burned.
<gchristensen> joachifm: https://gist.github.com/grahamc/c60578c6e6928043d29a427361634df6#which-channel-is-right-for-me would probably should be updated to include -small's and be moved to themanual >.> or even website
simukis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] seppeljordan opened pull request #26348: kubernetes: 1.5.6 -> 1.6.4 (master...kubernetes-1.6) https://git.io/vH2TB
NixOS_GitHub has left #nixos []
<joachifm> gchristensen: sounds good
Raimondi has joined #nixos
<LnL> I think what could also help with channel updates is if there's some way to tell hydra to retry a test once or twice
<danbst> joachifm: actually, we are talking about who will be jailbreaked faster and what we do to minimize vulnerable period. Personally, I like (hah) own proposal about custom "-secure" branches, but an argument of gchristensen about organizing manpower becomes an issue.
<gchristensen> IMO, that is already the issue
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] midchildan opened pull request #26349: tilix: init at 1.5.8 (master...tilix) https://git.io/vH2TM
NixOS_GitHub has left #nixos []
<gchristensen> there were several hours that the fix was public before the fix was committed to nixpkgs
<gchristensen> complicating how people contribute to nixos isn't going to help that
<joachifm> LnL: for sure, some of the constituent tests are really flaky
<joachifm> gchristensen: imo, that level of support is something you'd normally pay somebody for :)
<LnL> ^^
<gchristensen> joachifm: yeah :)
<gchristensen> following oss-security is a bit of a nightmar
<gchristensen> joachifm: did I come off overly critical about that? I didn't intend it that way, but as a counterpoint to "the fix is in the process"
<joachifm> gchristensen: reads fine to me, but then I also agree :)
<gchristensen> hehe, okay. thank you, by the way to LnL for having contributed those patches
<LnL> no problem
<gchristensen> with all this conversation, I've forgotten to make coffee :o
ixxie has joined #nixos
yenda has joined #nixos
<joachifm> danbst: btw I don't mean to be dismissive about your ideas for -secure, just to be clear :)
<joachifm> but it sounds like a lot of boring work ...
<yenda> what is the current state of npm package installation on nixos ? I am currently trying to install react-native-cli and I couln't find a viable solution
mudri has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26239: networkmanager_dmenu: unstable-2017-04-13 -> unstable-2017-05-28 (master...networkmanager-dmenu_20170528) https://git.io/vHl0P
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26311: update colorama and related (master...colorama) https://git.io/vHufC
NixOS_GitHub has left #nixos []
<adamt> Hi. I'm totally new with Nixos, and i'm trying to install idea.idea-ultimate. However, the pkg from the 17.03 channel points to a version/src file that doesn't exist, so i figured i would override the version attribute, but can't get it to work. I tried two things: http://dpaste.com/3TDZKA9 -- any thoughts?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vH2kS
<NixOS_GitHub> nixpkgs/master f4844e9 Francois-Rene Rideau: Add fare to maintainers.
NixOS_GitHub has left #nixos []
mudri has joined #nixos
<gchristensen> adamt: I'm very impressed with how far you've come, being totally new, and understand why you're confused. In this case, you need to override the `src` attribute new
<gchristensen> adamt: something like this: http://dpaste.com/0JFRBYS
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Fuuzetsu opened pull request #26350: Datadog update (master...datadog-update) https://git.io/vH2kN
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26309: php: set extension dir to correct location (master...php-extension-dir) https://git.io/vHENI
NixOS_GitHub has left #nixos []
<adamt> gchristensen: I kinda expected the version-part of the src-attr to be updated. Why do i need to change the src instead? Is the changed attributes made in a new scope?
mudri has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vH2kp
<NixOS_GitHub> nixpkgs/master 0886c1b Jörg Thalheim: wireguard: 0.0.20170517 -> 0.0.20170531
NixOS_GitHub has left #nixos []
<gchristensen> adamt: I believe it is roughly similar to other languages where: a = 1; b = 2; c = a + b; a = 4; ... c is still 3 even after changing a to be 4.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah reopened pull request #26296: autorandr: 855c18b -> ee77c35 (master...master3) https://git.io/vH0Jx
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vH2IL
<NixOS_GitHub> nixpkgs/release-17.03 9e0a260 Jörg Thalheim: wireguard: 0.0.20170409 -> 0.0.20170531...
NixOS_GitHub has left #nixos []
<adamt> That makes sense.
<gchristensen> I understand though why intuitively updating the version variable would have updated the src url
<adamt> gchristensen: I added your example to my configuration.nix, but then it complained about fetchurl being an undefined variable. After adding it to the "imports" at the top (or whatever it's called in nix :P) i get this error: attribute ‘fetchurl’ missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:151:28
<gchristensen> adamt: ah! sorry, undo the change to the imports, and prefix fetchurl with `pkgs.`
arianvp2 has quit [(Quit: arianvp2)]
<adamt> gchristensen: Perfect, it works. Thanks a lot!
arianvp2 has joined #nixos
<gchristensen> you're welcome! welcome to the community :)
<yenda> I finally made it with https://github.com/svanderburg/node2nix#deploying-a-development-environment-of-a-nodejs-development-projectm I created a node-packages.json file which contains ["react-native", "react-native-cli"], ran node2nix -i node-packages.json and then nix-env -f default.nix -iA react-native-cli and it was done
<adamt> Next step: Figuring out how to make my own Maple (Maplesoft's) package. It seems like nobody on the internet ever mentioned running maple on nixos :p
<gchristensen> what is maple?
<gchristensen> yenda: nice!
<yenda> maple is a free matlab I thinnk
darlan has joined #nixos
<olejorgenb> nope, maple is a non-free symbolic math program (closer to mathematica I think)
<adamt> It's anything but free. :P
<olejorgenb> you're thinking of octave
<gchristensen> ah
<olejorgenb> btw, anyone know if there's a working matlab expression? (last time I checked I found something but couldn't get it to work)
KABA has joined #nixos
<KABA> Any idea how should I get src files for a package from google drive?
arianvp2 has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
<joachifm> KABA: git grep googledrive indicates that they expose urls of the form googledrive.com/host/some-random-chars/filename
mudri has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
<KABA> joachifm, thanks
<joachifm> KABA: I don't use gdrive so no idea how you actually get those urls
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
darlan has quit [(Remote host closed the connection)]
takle has quit [(Remote host closed the connection)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
<samae> nixops on non-nix with virtualbox target cannot connet via SSH… Is that on purpose?
<samae> (non-nixos distro sorry)
[0x4A6F] has joined #nixos
primeos has quit [(Ping timeout: 240 seconds)]
<samae> hmm, it's my fault, ok
<samae> I didn't create the host-only network interface
marsel has joined #nixos
k0001 has joined #nixos
darlan has joined #nixos
[0x4A6F] has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vH2t9
<NixOS_GitHub> nixpkgs/master 4e32f5b Shea Levy: docbook-xsl: Install dbtoepub
NixOS_GitHub has left #nixos []
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
<jophish> Hi all
<jophish> nixos doesn't seem to be using the right DNS server
<jophish> How can I debug this, as far as I know the server is supplied with dhcp
arianvp2 has joined #nixos
<jophish> nixos is always querying 8.8.8.8
<jophish> instead of 192.168.1.1
primeos has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #26351: half: init at 1.12.0 (master...half-1.12.0) https://git.io/vH2qO
NixOS_GitHub has left #nixos []
<ertes> does networking.networkmanager use networking.dhcpcd? so far i have used networking.wireless, and i need networking.dhcpcd.extraConfig
<jophish> ertes: the only networking I have set is networking.firewall
<jophish> unless nixops is adding things
<jophish> ertes: the VM gets the correct IP address via DHCP
<ertes> i'm currently using wpa_supplicant (via networking.wireless), but i'd like to switch to networkmanager
mizu_no_oto has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Balletie reopened pull request #25681: pharo-vm: Add third-party libraries to LD_LIBRARY_PATH (master...pharo-library-path) https://git.io/v9MvD
NixOS_GitHub has left #nixos []
<jophish> I think I should start by finding out exactly what this machine thinks the DNS servers are
<clever> jophish: read /etc/resolv.conf
<jophish> clever: ah, that's the problem then, 192.168.1.1 isn't mentioned!
<jophish> hehe, I didn't think it'd be as obvious as resolv.conf
<clever> jophish: you can also tell nixos to just ignore the dns mentioned by the dhcp
<jophish> I think I should try and get it working with the dhcp
<jophish> for some reason that's not right
<jophish> clever: do you know how I can refresh the dhcp lease?
<clever> what is the dhcp server sending?
<jophish> clever: I *thought* it was 192.168.1.1, 8.8.8.8, 8.8.4.4
<jophish> but perhaps that assumption is incorrect
<clever> dhcpcd -n, --rebind [interface]
<clever> jophish: if your using dhcpcd, this should re-query the server
<clever> wireshark should also help, filter it to port 67
<jophish> I've had big problems with DNS since the office move with the ubuntu machines
<jophish> seems as though the router clone wasn't 100% faithful or something
<jophish> oops, network died
<jophish> clever: ah, that sorted it
<jophish> resolv.conf is correct now
<jophish> how very strange
<jophish> thanks for the help clever and ertes!
<ertes> jophish: oh!
<ertes> jophish: sorry, my question was really a question i had myself that wasn't related to yours =)
<ertes> so no need to thank me =)
<clever> jophish: something else that can lead to alot of confusion, is if you happen to have 2 dhcp servers on the network
<clever> jophish: try pulling wireshark up, then rebind again and see how many replies you get
<jophish> clever: I'm pretty sure that's not the case
<jophish> no problems with ip addresses
<jophish> I think this is what happened:
roconnor_ has joined #nixos
<jophish> DNS on ubuntu has been a complete mess, so I was fiddling with setting on the router
<jophish> while I was doing this hydra (the nixos box) must have refreshed its lease or been rebooted]
<clever> ah
<clever> and then stayed on that setting, until the next renewal
<clever> then you found it broken before that time came
<ertes> if i enable networkmanager without networking.networkmanager.unmanaged, will it interfere with the bridge devices that docker creates?
<jophish> clever: yeah, exactly
<jophish> I've just overriden resolv.conf on all the ubuntu machines
<jophish> I don't have time to figure out what's going crazy ...
KABA has quit [(Quit: Leaving)]
<jophish> sooner or later I'll get Quartus running on nixos and we can all move over...
<jophish> otoh, ubuntu is nice when it works
<jophish> otooh, nixos is nicer when it works
<clever> :D
orivej has joined #nixos
<clever> jophish: have you seen how much ive automated with kexec and nixos? https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix
<jophish> clever: ooh nice, I'm on the lookout for a chance to use that
<clever> you can basicaly turn any linux machine into a nixos machine
<clever> even if you dont have physical access
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vH2YW
<NixOS_GitHub> nixpkgs/master d0b4c5f Shea Levy: Disable travis email notifications....
NixOS_GitHub has left #nixos []
hydraz has quit [(Quit: May the force be with you - Gandalf (Harry Potter and the Philosopher's Stones))]
<ben> Where in a derivation do I need to put python packages so that they're found at runtime? I had buildInputs = with Python3Packages; [ python pygobject3 lxml jedi ...] ++ ...; and got errors at runtime that it can't find the gi module, that python3-lxml is not installed and that jedi wasn't found
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vH2Yg
<NixOS_GitHub> nixpkgs/master 29acc51 Matthew Bauer: lldb: fix on Darwin...
<NixOS_GitHub> nixpkgs/master 2aff10b Daiderd Jordan: Merge pull request #26112 from matthewbauer/lldb-darwin...
NixOS_GitHub has left #nixos []
<ben> propagatedUserEnvPkgs feels a bit coarse?
<ben> oh, python3.withPackages? hm
<Ankhers> Would anyone familiar with hackage2nix / cabal2nix be able to tell me how you know what non-haskell dependencies are needed to build a library / application?
<m0rphism> hi, I have a weird issue with changing the permissions of a file to be write-only-by-root. Logged in as root I run chown root:root /home/user/file && chmod 444 /home/user/file which succeeds, but if I then open the file as the normal user with vim and save it by :write! (overwrite if read-only) saving succeeds and the permissions are reset (file is owned by user again). Any ideas what is happening here?
<LnL> Ankhers: it looks at the package metadata
<clever> m0rphism: vim will save to a temporary filename, then use rename to atomicly replace the file
<clever> m0rphism: as long as you have +w on the directory, you can probably delete/replace anything
hotfuzz_ is now known as hotfuzz
<m0rphism> clever: I see, thanks for the answer.
<Ankhers> LnL: Thanks. That is useful to have in the metadata. I'm not sure erlang has something for that.
faffolter has quit [(Remote host closed the connection)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
faffolter has quit [(Remote host closed the connection)]
<jophish> heheh'(last checked 17288061s ago)'
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
ilyaigpetrov has joined #nixos
<arianvp2> I created a small nix derivation that allows you to package up Nix packages as containers and run them anywhere!
<arianvp2> I'll add some documentation soon.
<arianvp2> I'm using it to deploy nix projects to a coreos cluster
<jophish> arianvp2: cool!
<arianvp2> (running kubernetes)
ertes has quit [(Ping timeout: 245 seconds)]
takle has joined #nixos
<jophish> arianvp2: you should post this to the mailing list
<arianvp2> Will do
takle has quit [(Ping timeout: 255 seconds)]
<clever> arianvp2: neat
<jophish> clever: how does this sound: a store api implementation "NetStore". The store becomes the union of the stores on a bunch of networked computers. When a path is requested it's torrented (or similar) from any of the peers which have that path, using hard link information to save network
<arianvp2> :)
<jophish> It would be so useful for us here
<jophish> we have many machines with nix stores on, with very similar sets of paths
<clever> jophish: nix-serve can sort of do that already, but you would have to add every machine as a binary cache
<arianvp2> jophish have you seen nix-ipfs?
<arianvp2> this is very close to what you're proposing
<jophish> arianvp2: yeah, that's very similar
<jophish> I didn't think it was really usable at the moment
<arianvp2> yeh idk
<jophish> and I don't know how appropriate ipfs is for private files
<jophish> clever: yeah, perhaps I should set that up
<arianvp2> not that appropriate
<arianvp2> :)
<jophish> nix has some unpleasant behaviour when caches are not up though
<arianvp2> You can create private ipfs clusters I think
<jophish> arianvp2: perhaps that would do
<jophish> clever: and a nix-serve based system might be hard to get performant all the time
<jophish> for example: although most of our machines are in the same office (with a slow upload speed) others are in the US
<jophish> they shouldn't stream from the office computers as often
<jophish> torrenting/ipfs handles this nicely as far as I can see
<jophish> I suppose minimising transfers using hard link info is an orthogonal issue
<jophish> but it's important to us, I reclaimed >200GB the other day with --optimise :)
ertes has joined #nixos
yenda has quit [(Ping timeout: 260 seconds)]
roconnor has joined #nixos
SuprDewd has quit [(Quit: No Ping reply in 180 seconds.)]
SuprDewd has joined #nixos
<Sonarpulse> jophish: we were talking about such things too
phinxy has joined #nixos
<Sonarpulse> at work that is
<Sonarpulse> would also like that, very much
Jackneilll has joined #nixos
faffolter has quit [(Remote host closed the connection)]
KABA has joined #nixos
<KABA> Which is the most "elegant" way to set a binary package's interpreter? By searching for example packages I came across this one: ${patchelf}/bin/patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/program
<KABA> Is there a better option?
<Sonarpulse> anyone know much about setup.sh?
<Sonarpulse> in stdenv?
<Sonarpulse> I can see that for the old cross builds, checkPhase is getting skipped
<Sonarpulse> but I can't figure out why
<Sonarpulse> phases includes doCheck
<Sonarpulse> *phases includes checkPhase
<Sonarpulse> and doCheck is 1
bennofs has quit [(Ping timeout: 255 seconds)]
bennofs has joined #nixos
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<LnL> is it the a custom checkPhase?
MP2E has joined #nixos
ryantrinkle has quit [(Ping timeout: 260 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
elehack has joined #nixos
CrazedProgrammer has joined #nixos
<elehack> Is there any (automated) way to do a single-shot boot with nixos-rebuild?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vH2G2
<NixOS_GitHub> nixpkgs/master bdb1068 Shea Levy: Actually disable travis emails
NixOS_GitHub has left #nixos []
<elehack> So the next boot will run the new build, but subsequent boots will still use the current one unless the change was persisted.
<elehack> I believe Grub has the capabilities to make this possible, but am wondering if there's any automated way to use it in nixos.
revtintin has quit [(Ping timeout: 260 seconds)]
guardianx has joined #nixos
<KABA> elehack: a bit similar to what you want: nixos-rebuild test
<KABA> Build and activate the new configuration, but do not add it to the GRUB boot menu. Thus, if you reboot the system (or if it crashes), you will automatically revert to the default configuration
<KABA> From the manual page for nixos-rebuild
guardianx has quit [(Remote host closed the connection)]
guardianx has joined #nixos
<elehack> KABA: yes, but that only starts up new services - a single-shot boot would allow testing of a new kernel / boot configuration that might not work.
<elehack> (on a headless server - a headful server can just use the Grub menu to roll back)
guardianx has quit [(Read error: Connection reset by peer)]
guardianx has joined #nixos
bfrog has joined #nixos
<clever> elehack: you can maybe do something with grub-reboot, but you would need to experiment on a box with a monitor
<clever> elehack: that tool lets you do one-time changes to the default boot entry
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
guardianx has quit [(Remote host closed the connection)]
guardianxx has joined #nixos
guardianxx has quit [(Remote host closed the connection)]
bfrog has quit [(Ping timeout: 260 seconds)]
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
guardianx has joined #nixos
guardianx has quit [(Remote host closed the connection)]
guardianx has joined #nixos
<elehack> clever thanks, that does look like a big piece that I need
<elehack> the missing piece then would be a nixos-rebuild that adds to the boot menu but does not make default, I think
<clever> elehack: yeah, you would sort of need to run nixos-rebuild boot twice, and have the 2nd time undo the change, creating a "dead" previous generation, that you could grub-reboot to
guardianx has quit [(Read error: Connection reset by peer)]
<clever> maybe rollback would work for the 2nd one, but thats got a minor issue when you go forward and back often
<elehack> clever that sounds good enough for me.
<jophish> Sonarpulse: I imagine domen's company would like that, and lumiguide
<jophish> and probably others
<clever> rollback sets current = current-1, but if you do update, rollback, update, rollback: it will wind up on the wrong generation
<clever> because it goes to the 2nd oldest, not the previous
<Sonarpulse> jophish: indeed!
<jophish> How simple would it be to move a nixops managed machine off virtualbox and onto something else, preserving state
<jophish> hdd state that is
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<jophish> I keep getting 'guru meditation' errors in virtualbox
<Sonarpulse> jophish: if we can do that an intentional store together.... ah
<jophish> Sonarpulse: yeah, intensional store would be very nice
<Sonarpulse> and would make the ipfs stuff work a lot better too
<pbogdan> elehack: not exactly what you want but there is also an open issue about adding support for grub's fallback mechanism https://github.com/NixOS/nixpkgs/issues/26332
tanonym has joined #nixos
<elehack> pbogdan: thanks, subscribed
takle has joined #nixos
Isorkin has quit [(Read error: Connection reset by peer)]
Isorkin has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
<tanonym> When following the Manual to get proprietary drivers installed for AMD cards (AMD E2 APU with a Radeon 6320 chip) nixos-install complains that hardware.opengl.driSupport32bit does not exist.
<tanonym> The install works just fine if that option is left out.
<clever> tanonym: can you gist your configuration.nix file?
<clever> tanonym: oh, i see the problem, its 32Bit, not 32bit
<KABA> Any reason one should prefer LD_PRELOAD over LD_LIBRARY_PATH in wrapProgram?
takle has joined #nixos
<tanonym> D´oh
<clever> KABA: LD_PRELOAD can potentialy break some programs that your program may spawn, since it forces things to load
<tanonym> I will do a rebuild afterwards, since the build is currently in progress.
<clever> KABA: while LD_LIBRARY_PATH just changes the search path, just be sure to prepend/append, because opengl also needs LD_LIBRARY_PATH to stay intact
<tanonym> And given how long it can take for the KDE build to finish (unless it does not go through the compile process)
<KABA> clever: Thanks. I just took a look at some examples and couldn't decide. It even less cumbersome to do it with LIBRARY_PATH
<tanonym> Any particular reason why it is 32Bit instead of 32bit, or just convention?
mudri has quit [(Ping timeout: 255 seconds)]
<clever> tanonym: not sure why
takle has quit [(Ping timeout: 255 seconds)]
Filystyn has quit [(Quit: Konversation terminated!)]
<tanonym> Strange
<tanonym> Got SSL working, now to get myself a ZNC :)
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub closed pull request #26351: half: init at 1.12.0 (master...half-1.12.0) https://git.io/vH2qO
NixOS_GitHub has left #nixos []
<elehack> clever KABA I have just tested a boot/rollback dance with grub-reboot and it works :)
<elehack> so now i can try a GRSecurity kernel and be reasonably assured I can get back in to the system if it breaks.
marsel has quit [(Ping timeout: 240 seconds)]
<clever> elehack: as long as you can remotely force a reboot, or ensure it reboots upon failures
<clever> elehack: some kernel options i have looked into before to make both linux and nixos reboot upon any kind of problem
roblabla has joined #nixos
tanonym has quit [(Quit: Leaving)]
DutchWolfie has quit [(Quit: Konversation terminated!)]
<roblabla> hello. I'm trying to build cyrus-sasl's saslauthd with LDAP support and I'm having a hell of a hard time. When I try adding `openldap` to cyrus-sasl's buildinputs, I get an infinite recursion
<roblabla> (Supposedly because openldap also depends on cyrus-sasl)
takle has joined #nixos
deba5e12 has joined #nixos
* roblabla sent a long message: roblabla_2017-06-03_17:27:20.txt - https://roblab.la:8448/_matrix/media/v1/download/roblab.la/GhKkXkLzWjYFmqagnuAUeZhx
<sphalerite> In the default configuration for nixos, do derivations build in parallel? i.e. does it make any sense to pass -jX when building a single derivation?
Jackneilll has quit [(Remote host closed the connection)]
ryantrinkle has joined #nixos
<jophish> sphalerite: looks as though maxJobs defaults to 1
<jophish> same for buildCores
<sphalerite> Cool, thanks
<jophish> np
<roblabla> So, anyone know how to break a circular dependency in a nix expression ?
<clever> roblabla: override one or more of the packages, so they dont depend on eachother
<dash> roblabla: hmm, does the current cyrus-sasl build saslauthd by default?
<roblabla> dash: it does, but without ldap support
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mounium opened pull request #26352: aliza: init at 1.28.7 (master...aliza) https://git.io/vH2Ca
NixOS_GitHub has left #nixos []
deba5e12 has quit [(Remote host closed the connection)]
civodul has joined #nixos
<dash> roblabla: ah, in the bin output
<roblabla> yeah
<roblabla> I'm making a saslauthd service, hoping to PR it as soon as I get it to actually work with LDAP >_<
mizu_no_oto has joined #nixos
mudri has joined #nixos
s33se has quit [(Ping timeout: 255 seconds)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
pseudo-sue has quit [(Ping timeout: 240 seconds)]
ertes has quit [(Ping timeout: 255 seconds)]
<Ankhers> gleber_: ping
s33se has joined #nixos
<roblabla> clever: yay, finally managed to make it work :D I added an enableLdap flag to the package, and only enable it in my service. It's a bit meh but it works for my purposes at least.
<roblabla> Thanks a lot :)
<clever> yep
pbogdan has joined #nixos
nliadm has quit [(Ping timeout: 260 seconds)]
<gleber_> Ankhers: pong
<Ankhers> gleber_: Do you have some time to have a conversation?
<gleber_> Ankhers: yes
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
nliadm has joined #nixos
<Ankhers> gleber_: I was just having a conversation with some people in #elixir-lang about the viability of adding some sort of external-deps meta field so that it would be easier to specify external deps for Nix. But some people brought up a couple points that I did not really know how to answer. I was hoping you, or anyone else here, would be able to help out in answering.
<gleber_> I can try to help, although I am not an expert in Elixir (I used Erlang extensively though_
<gleber_> )
<Ankhers> That should be good enough. I will hopefully be able to translate.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #26353: skypeforlinux: 5.2.0.1 -> 5.3.0.1 (master...update/skypeforlinux-5.3.0.1) https://git.io/vH2Wj
NixOS_GitHub has left #nixos []
<Ankhers> From my understanding, Nix provides pre-compiled binaries for whatever can be compiled. Does this include things in beamPackages? Or do those only get compiled when run?
<gleber_> Nix provides a reproducible script to build all packages it contains. There's a cache which contains these packages in pre-compiled form (e.g. including binaries)
<gleber_> https://hydra.nixos.org is the thing which provides the cache
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #26354: nixos/bcache: install udev rules outside initrd too [version 3] (master...bcache-udev-rules-v3) https://git.io/vH2lT
NixOS_GitHub has left #nixos []
<gleber_> But the cache is not necessary, since you should be able to build anything in nixpkgs locally
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #26344: nixos/bcache: install udev rules outside initrd too (master...bcache-udev-rules-v2) https://git.io/vHgj8
NixOS_GitHub has left #nixos []
<gleber_> It does apply to beamPackages too
<Ankhers> Ok. Elixir allows you to have compile time dependencies and configuration. It wouldn't really make sense to share compiled versions of a lot of packages. What would that look like within Nix?
<Ankhers> I'm not really sure if that question makes sense.
<gleber_> These compile time dependencies would be encoded in appropriate Nix derivation definition in Nixpkgs. Each configuration (I assume this is the same as Rebar profiles) can be a different derivation.
<gleber_> And you could say that a derivation is a complete reproducible script to build a package (including all of its deps)
<gleber_> You should not care about the compiled versions at all. You should care which derivations to include in Nixpkgs, i.e. how many versions of each package to include, how many compile configurations to support, etc.
<gleber_> For example beamPackages.nix contains each most recent version of each package in Hex (unless any of these depends on older version of a package, then hex2nix would define two versions of a package).
chrishill has joined #nixos
<Ankhers> I'm going to use a package called ecto as an example. It is a database wrapper that supports multiple databases. You specify in a config file which database you want to use it with. Then, when it compiles, it looks to see which databases you are wanting to support and only emits the beam files for those databases. Does this make sense within Nix?
<chrishill> Hi. I am having problems installing a `base` Haskell package: `nix-env -f "<nixpkgs>" -iA haskellPackages.base_4_9_1_0`.
<gleber_> Oh! Does it perform database queries at build/compile time?..
<chrishill> This fails to build.
nix_n00b has quit [(Quit: Page closed)]
<Ankhers> Not actual queries, no.
<Ankhers> It just decides what things to actually compile based on what is loaded in the system.
<gleber_> What does it mean "what is loaded in the system"? Which system is that? What kind of things can be loaded in there?
<Ankhers> a beam node. The elixir compiler is built in erlang.
<gleber_> ok, Nix does use BEAM when building, so you can define a hermetic and reproducible way to reconstruct the state of the VM, you can make it work in Nix
<Ankhers> Ecto provides support for I think 3 databases inside of it. Lets say that the Postgrex (postgres) module is loaded, it will not try to build the mysql specific modules within ecto.
<chrishill> This is the error I get: https://pastebin.com/GnNei36V
<Ankhers> Alright. I think there will still be a benefit to using Nix then. I guess I just need to learn more about Nix and how it works.
<KABA> chrishill: Is it a custom package you've written?
<Ankhers> I need to get my NixOS VM setup so that I can play around with this stuff.
<gleber_> Ankhers: yes, that's my feeling as well
<gleber_> Ankhers: you do not NixOs to make use of Nix and Nixpkgs
<gleber_> I did all my development of Erlang stuff for Nixpkgs on Ubuntu
<gleber_> (Although I did test it few times on my remote NixOs machine)
<Ankhers> I know. I just feel if I do not force myself to use it, I will never properly understand it.
endformationage has joined #nixos
<gleber_> haha, indeed :D
deba5e12 has joined #nixos
<Ankhers> Unfortunately my Erlang is spotty at best. But things should be similar to Elixir, I believe they share semantics for the most part. If you want any help with hex2nix, or anything else. Just ping me and I will do what I can.
<gleber_> Ankhers: if the mechanism you meant is what is described in https://github.com/elixir-ecto/ecto#usage as "You need to add both Ecto and the database adapter as a dependency to your mix.exs file", then this is totally doable in Nix
<gleber_> Ankhers: thanks!
<Ankhers> Awesome. That is what I was talking about.
<arianvp2> how is /var/run/current-system/sw/bin assembled and where?
<deba5e12> I'm having a bit of trouble getting my wireless interface working in a new nixos install. ifconfig reports the interface to be up, and shows its mac address, but it seems to be otherwise unresponsive.
<deba5e12> in wpa_cli, e.g., "scan" doesn't throw an error, but nothing happens either.
<chrishill> KABA: No, it’s a package in the haskellpackages namespace of Nixpkgs
<deba5e12> and if i sniff on that interface, there are no packets appearing at all, when i try to get a dhcp lease on it.
<deba5e12> any suggestions?
<chrishill> I am having problems building a Haskell project due to getting errors that `base` is not available. So I tried to install some `base` package directly in my environment in order to see if it worked
<clever> deba5e12: did you use the wpa_supplicant service in systemd, or manualy launch wpa_supplicant?
<chrishill> I am following these instructions for installing Haskell packages: http://nixos.org/nixpkgs/manual/#how-to-install-haskell-packages
drjnovak has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vH28P
<NixOS_GitHub> nixpkgs/master 2bbced7 mimadrid: skypeforlinux: 5.2.0.1 -> 5.3.0.1
<NixOS_GitHub> nixpkgs/master 4a35514 Jörg Thalheim: Merge pull request #26353 from mimadrid/update/skypeforlinux-5.3.0.1...
NixOS_GitHub has left #nixos []
<deba5e12> I thought I had systemd set up to launch it, but i'm a bit unsure. I have networking.wireless.enable = true; in my config -- it was there in the default config file, with a comment saying that it enables wireless using wpa_supplicant.
bennofs1 has joined #nixos
<deba5e12> is anything else needed?
<deba5e12> systemctl status wpa_supplicant reports it as up and running
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vH28H
<NixOS_GitHub> nixpkgs/master 0925f79 Maximilian Bosch: programs.zsh.syntaxHighlighting: refactor to use attr sets rather than recursive lists for patterns...
<NixOS_GitHub> nixpkgs/master c4e4071 Maximilian Bosch: programs.zsh.syntax-highlighting: simplify enable option by using `mkEnableOption`
<NixOS_GitHub> nixpkgs/master d07ad26 Jörg Thalheim: Merge pull request #26229 from Ma27/refactor/use-attr-set-for-syntax-highlighting-patterns...
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
nix_n00b has joined #nixos
<nix_n00b> so how do install and run virtualbox in NixOS?
<pbogdan> chrishill: and what's the error when you try to build the haskell project?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jlesquembre opened pull request #26355: pgcli: 1.5.1 -> 1.6.0 (master...pgcli) https://git.io/vH24s
NixOS_GitHub has left #nixos []
<Sonarpulse> zimbatm: you there?
<Sonarpulse> want more time or can I just open the RFC PR?
nliadm has quit [(Ping timeout: 268 seconds)]
<deba5e12> looks like rfkill doesn't list wlp4s0, which is probably significant. it does show up in ifconfig, though.
<dhess`> On my NixOS build systems, I have 'nix.buildCores = 0'. Should I also set nix.maxJobs to the number of logical cores on the system?
<dhess`> or is the effect multiplicative?
<deba5e12> but it does seem to show up as phy0...
<deba5e12> iplink lists it as wlp4s0, too.
<chrishill> pbogdan: When I try to build the Haskell project with `nix-build`:
<nix_n00b> how do I change default terminal?
<c74d> nix_n00b: that depends on what desktop environment or window manager you use
<nix_n00b> Oh, ok. Using i3, I'll poke around in the configs I guess?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #26356: sqlite3: 3.17.0 -> 3.19.2 (staging...update/sqlite3-3.19.2) https://git.io/vH2Bf
NixOS_GitHub has left #nixos []
<nix_n00b> this current terminal makes me want to die
<deba5e12> xterm's defaults are pretty hideous.
<dash> yeah i recently configured xterm to be better and i'm liking it ok
<dash> the only thing i really miss is url matching
<c74d> I liked xterm but eventually switched to uxrvt for somewhat better Unicode support
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vH2Bq
<NixOS_GitHub> nixpkgs/master 5b3c1e8 José Luis Lafuente: pgcli: 1.5.1 -> 1.6.0
<NixOS_GitHub> nixpkgs/master 8b8a83f Jörg Thalheim: Merge pull request #26355 from jlesquembre/pgcli...
NixOS_GitHub has left #nixos []
<c74d> nix_n00b: i3 uses this list of terminal emulators: <http://build.i3wm.org/docs/i3-sensible-terminal.html>
<deba5e12> i used to use lxterminal for everything, even when not using lxde. it's nice, no real bells and whistles, and looks great right out of the box.
Filystyn has joined #nixos
<c74d> nix_n00b: so set the environment variable TERMINAL, e.g. by using the NixOS option `environment.variables.TERMINAL = "...";`
<deba5e12> roxterm, with all the menu, tab, and scrollbar clutter turned off, works pretty nicely too
bennofs1 has quit [(Ping timeout: 255 seconds)]
<nix_n00b> c74d: I want termite, the default color scheme is a million times better than whatever this is. Will I find that option in configuration.nix?
<deba5e12> maybe i'll have more luck with the wifi if i use networkmanager. i normally avoid it, but it's not like wpa_supplicant/wpa_cli are doing me any favours right now
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #26357: sqlite3_analyzer: 3.17.0 -> 3.19.2 (master...update/sqlite3_analyzer-3.19.2) https://git.io/vH2BC
NixOS_GitHub has left #nixos []
<c74d> nix_n00b: there's no NixOS option specifically for telling i3 what terminal emulator to use, but i3 uses the environment variable TERMINAL, which you can set in configuration.nix like `environment.variables.TERMINAL = "${pkgs.termite}/bin/termite";`
<gleber_> Ankhers: it looks like before I get to upgrading hex-packages.nix, it would make sense to push https://github.com/NixOS/nixpkgs/pull/17240 forward
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #26358: fetchgit: add postFetch argument (master...fetchgit-postfetch) https://git.io/vH2BR
NixOS_GitHub has left #nixos []
arianvp2 has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
<pbogdan> chrishill: chrishill: and what ghc version you are using? only thing that comes to mind would be using older version of ghc that has older version of the base package
chrishill has left #nixos ["Leaving"]
<KABA> Does travis have a maximum number of lines it can display? The timer continues to go on, but it stops displaying new lines at 10000
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vH2Bi
<NixOS_GitHub> nixpkgs/master a604f14 mimadrid: sqlite3_analyzer: 3.17.0 -> 3.19.2
<NixOS_GitHub> nixpkgs/master 7daed84 Jörg Thalheim: Merge pull request #26357 from mimadrid/update/sqlite3_analyzer-3.19.2...
NixOS_GitHub has left #nixos []
<Ankhers> gleber_: I will look through that to see if there is anything I can do to help.
chrishill has joined #nixos
<chrishill> pbogdan: This is the default compiler given in the parameter of the expression: `compiler ? "ghc7102"`
<chrishill> So it should be Ghc 7.10.2 I think
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Fuuzetsu pushed 1 new commit to master: https://git.io/vH2BH
<NixOS_GitHub> nixpkgs/master 045515a Mateusz Kowalczyk: jenkins: 2.62 -> 2.63
NixOS_GitHub has left #nixos []
<pbogdan> chrishill: ghc 7.10.x comes with base 4.8.x so you would get failure trying to satisfy == 4.9.* bound, try relaxing the bound on base or compiling with ghc 8.0.x
nix_n00b has quit [(Ping timeout: 260 seconds)]
<deba5e12> ok, networkmanager saved the day. who'd've thought?
<chrishill> pbogdan: Thank you. :-) I’ll try that the next time I’m working on this.
<pbogdan> chrishill: sounds like your nix expression takes compiler as an argument so you could try newer ghc version with "nix-build --argstr ghc802"
<pbogdan> chrishill: you are welcome :)
nix_n00b has joined #nixos
nliadm has joined #nixos
deba5e12 has quit [(Ping timeout: 255 seconds)]
_ris is now known as ris
<ris> maybe i'm being stupid but why can't i .override a fetchsvn derivation?
deba5e12 has joined #nixos
sellout- has joined #nixos
<ris> i think i need to do so because svn fails trying to get unicode paths
<ris> and so i'm attempting to try it with LC_ALL set
chrishill has quit [(Quit: Leaving)]
jgertm has joined #nixos
nix_n00b_ has joined #nixos
<nix_n00b_> I heard the python library and such might cause difficulty in installing and using, and I'm trying to run a "helloworld.c" right now, but it isn't compiling right. Does this need to be installed in a special manner, other than nix-env -i gcc?
<nix_n00b_> my error is "gcc: error trying to exec 'as': execvp: No such file or directory"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #26359: libgcrypt: 1.7.6 -> 1.7.7 (staging...update_libgcrypt_1_7_7) https://git.io/vH2Ro
NixOS_GitHub has left #nixos []
<ris> overrideDerivation seems to do it
mudri has quit [(Ping timeout: 255 seconds)]
<nix_n00b_> Does anyone here have experience compiling c programs in NixOs?
<jophish> has fetchdarcs stopped working?
deba5e12 has quit [(Ping timeout: 240 seconds)]
<jophish> fetchdarcs{ url = https://hub.darcs.net/scravy/easyplot; sha256 = "0wgsi7a1hmg163xrabglvhfpm3f6py9fzyllqfkfzkhy1cmjhs6q"; };
<jophish> fails with certificate errors for me
<jophish> building darcs now
<LnL> sounds like it's not finding the cert bundle
<jophish> LnL: yeah, SSL_CERT_FILE and whatnot
<LnL> it was renamed to NIX_SSL_CERT_FILE
<jophish> ah, my setup still has SSL_CERT_FILE defined
Zarutian has joined #nixos
<jophish> although nothing's broken apart from this
<jophish> darcs clone https://hub.darcs.net/scravy/easyplot works for me
<nix_n00b_> anyone?
<jophish> LnL: I'll try changing that
<LnL> jophish: yes that's in your shell, the build environment won't have that
<jophish> yeah, just checking that nothing was horribly wrong with darcshub itself
<jophish> LnL: odd that that file wasn't updated with the change to NIX_SSL_CERT_FILE
<jophish> I'll try with that change
nix_n00b has quit [(Ping timeout: 260 seconds)]
Filystyn has quit [(Read error: Connection reset by peer)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<jophish> LnL: that fixed it
<LnL> yeah, that should be changed
<jophish> I'm opening a PR now
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] expipiplus1 opened pull request #26360: fetchdarcs: Use NIX_SSL_CERT_FILE (master...patch-1) https://git.io/vH20V
NixOS_GitHub has left #nixos []
pseudo-sue has joined #nixos
nix_n00b_ has quit [(Ping timeout: 260 seconds)]
ertes has joined #nixos
Zarutian has left #nixos []
pseudo-sue has quit [(Ping timeout: 255 seconds)]
marsel has joined #nixos
deba5e12 has joined #nixos
riclima has joined #nixos
calvertvl has joined #nixos
<jophish> I'm trying to move a nixops machine from virtualbox to libvirtd
<jophish> and I've run into this error: error: the type of resource ‘hydra’ changed from ‘virtualbox’ to ‘libvirtd’, which is currently unsupported
<jophish> It might be because I don't have qemu installed or something
<jophish> oh, the error might in fact mean that changing the resource type is unsupported
KABA has quit [(Read error: Connection reset by peer)]
deba5e12 has quit [(Ping timeout: 245 seconds)]
helpusobi has joined #nixos
deba5e12 has joined #nixos
<Sonarpulse> import from derivation RFC proposed :)! https://github.com/NixOS/rfcs/pull/14
mudri has joined #nixos
ertes has quit [(Ping timeout: 260 seconds)]
deba5e12 has quit [(Ping timeout: 245 seconds)]
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] benley opened pull request #26361: libinput: 1.5.1 -> 1.7.2 (master...libinput-1.7.2) https://git.io/vH2EE
NixOS_GitHub has left #nixos []
<benley> hoooooly crap libinput affects a lot of stuff.
<civodul> Sonarpulse: looks interesting!
<benley> "I'll just update libinput, that'll be easy" ... yeah sure, other than waiting for a rebuild of THE ENTIRE UNIVERSE
<civodul> Sonarpulse: in Guix we do some interleaving of evaluation/build for grafts, but it's not formalized yet
<benley> Sonarpulse: Cool!
<dash> benley: surely only programs that take input
<benley> heh
pbogdan has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
phinxy has quit [(Ping timeout: 260 seconds)]
ertes has joined #nixos
Itkovian has joined #nixos
phinxy has joined #nixos
<danbst> jophish: yes, destroy && deploy
neoo has joined #nixos
<benley> is the github PR bot that suggests potential reviewers not working lately?
<Sonarpulse> civodul: ooo I've love to heard about that
<LnL> I think it stopped a few days ago, or it's just missing some prs
<Sonarpulse> I here there is no bash string munging in guilepkgs
pbogdan has quit [(Ping timeout: 240 seconds)]
<Sonarpulse> (or whatever that's called)
<Sonarpulse> it's guile for both
elehack has quit [(Ping timeout: 240 seconds)]
pbogdan has joined #nixos
<jophish> danbst: thanks :)
<shlevy> Sonarpulse++
<jophish> I'm now stuck with qemu trying to read a .qcow2 file in the store
<jophish> and failing :(
deba5e12 has joined #nixos
<jophish> seems like qemu doesn't like to open read only disks
<jophish> Perhaps I can intercept the .img file
<shlevy> Sonarpulse: Do you think the reasonable hydra semantics is to just do a depth-0 dry run and queue up the needed drvs each eval?
<jophish> shlevy: I think that's reasonable
kojiro has joined #nixos
<jophish> it would be much better than what we have at the moment
sellout- has quit [(Read error: Connection reset by peer)]
<Sonarpulse> shlevy: hmm that's an interesting question
<Sonarpulse> I can add a bit
<jophish> That's the plan for hercules
<jophish> but just a plan :)(
<Sonarpulse> if there is to be a seperate initial evaluation step
<shlevy> jophish: Hercules has a plan already based on RFC 14? :o
<Sonarpulse> then yes
<Sonarpulse> shlevy: the underlying issue #666
<Sonarpulse> shlevy: one thing I can certainly say
<Sonarpulse> evaluation errors should be handled per evaluation
<Sonarpulse> even now that would be an improvement
<shlevy> :D
<Sonarpulse> but with this because evaluation errrors can accumulate, all the more so
<shlevy> You mean just seeing the latest eval errors isn't useful to you?
<jophish> shlevy: no code though
<jophish> Actually, I started on this with my libstore implementation
<shlevy> Honestly for the nixpkgs eval the evaluation errors tracking we have is useless
<jophish> hercules will not have any distinction between evaluation and building
<Sonarpulse> for cross-trunk
<Sonarpulse> they are better
<Sonarpulse> +1 hercules embracing a conflation
<shlevy> I should open an RFC for extensible/accessible context
<Sonarpulse> I think it's good in *Nix* there is still clean layering
<Sonarpulse> as I explain in my rfc
<shlevy> And backpack derivation poisoining on top of that
<shlevy> jophish: Why not?
<Sonarpulse> but for hydra/hercules/anything on top, I don
<Sonarpulse> 't think it
<Sonarpulse> 's so important
<jophish> shlevy: well, import from derivation muddies it so much already
<shlevy> Not really
<shlevy> it *can*, in principle
<jophish> with the libstore stuff hercules will request a build, and just queue up any requested paths until its done. I think it's conceptually simpler
<shlevy> But in practice the stuff that happens at eval time is very different in kind than what happens at build time
<shlevy> jophish: That's too abstract for me to understand how it's different than hydra :D
<Sonarpulse> shlevy: anyways to answer your question in the rfc
<Sonarpulse> I really want rapid release
<Sonarpulse> hacking on Nix without that will be very annoying
<Sonarpulse> :)
<shlevy> Sonarpulse: Yes, agreed
<jophish> shlevy: I'm not sure that's the case for the stuff we have going on here, for example the cabal2nix tool is required for eval, and that can spawn a whole host of haskell package builds
<shlevy> Sonarpulse: It's getting in the way of my motivation to hack on readonly recursive nix
<shlevy> jophish: Sure, once in a while. And you can (and, IMO, should) structure your projects such that that once in a while is *very* infrequent by pegging a different nixpkgs set for eval time deps
<Sonarpulse> shlevy: I do think in practice
<shlevy> jophish: So hercules won't be able to queue up a new set of builds until the previous one is all finished?
<Sonarpulse> there will be few layers deep of importing from derivations
<jophish> shlevy: so my libstore implementation intercepts calls to "buildPath" and forward them to a socket (which the hercules server is listening on). 'buildPaths" gets called the same regardless of whether we are in nix-instantiate or nix-store --realise
dbmikus has joined #nixos
<Sonarpulse> and the initial layers, like cabal2nix are super cheap
<jophish> shlevy: we do peg like that, don't worry :P
<shlevy> Sonarpulse: Hmm, can you give near term examples of deep layers?
<civodul> Sonarpulse: to determine whether a graft is applicable to a given package, you first need to have that package built, hence the similarity
<jophish> shlevy: I don't think there'll be any queuing required
<Sonarpulse> shlevy: sorry my grammar is vague
<Sonarpulse> I *don't* anticipiate deep dynamism
<Sonarpulse> just shallow
<shlevy> Sonarpulse: Ah, yes, OK :)
<Sonarpulse> such that arriving at static plan
<shlevy> Sonarpulse: On the same page there
<Sonarpulse> cool
<shlevy> Sonarpulse: FWIW, I definitely don't want my arguments in favor of recursive nix to be at all construed as arguments *against* import-from-derivation
<Sonarpulse> civodul: neat. I should learn what a "graft" is first I suppose
<kojiro> What options does nix-shell run the shell with? It seems to source my .bashrc, but disables completions and complains that 'bash: set: vi: invalid option name'
<shlevy> The things I ultimately want recursive nix for are pretty far-out and we definitely don't need it for a lot of what we currently want to do
<Sonarpulse> shlevy: I would be happy to change the wording there to not misconstrue your position
<Sonarpulse> but those points *did* help me clarify my motivation better :)
<shlevy> :)
<shlevy> No, the wording is good
<shlevy> Just want to clarify
<Sonarpulse> sounds good :)
<kojiro> default.nix contains 'with import <nixpkgs> {}; stdenv.mkDerivation { name = "test"; }' # Simplest possible
<kojiro> when I run nix-shell I get 'bash: vi: invalid option name' and other junk from my .bashrc, and then a prompt that looks very broken.
<kojiro> '\[\][nix-shell:~/test]$\[\]'
<Sonarpulse> civodul: ah interesting
<Sonarpulse> good guix has a story for that
deba5e12 has quit [(Quit: leaving)]
deba5e12 has joined #nixos
dbmikus has quit [(Quit: WeeChat 1.8)]
dbmikus has joined #nixos
sellout- has joined #nixos
elehack has joined #nixos
<jophish> shlevy: I'm really interested in hearing your thoughts on splitting eval from building in CI tools
dbmikus has quit [(Client Quit)]
Filystyn has quit [(Remote host closed the connection)]
<jophish> oops, I destroyed the nixops config and didn't keep the root key
<jophish> will have to swap the keys on the disk
marsel has quit [(Ping timeout: 255 seconds)]
elehack_ has joined #nixos
elehack_ has quit [(Remote host closed the connection)]
elehack_ has joined #nixos
<shlevy> jophish: My thoughts are basically that you want to do it :D Specifically that you don't want to wait for one round of builds to finish before you queue up the next
<jophish> shlevy: I think it's possible to keep things running
<jophish> I'm imagining just a big DAG which is constantly added to when new builds/evals are performed and removed from when builds are completed
<jophish> the hercules "evaluator" adds builds, and the "builder" completes them as fast as possible
<shlevy> OK, then I'm not sure how they're not separated :D
<Sonarpulse> shlevy jophish:
<Sonarpulse> one problem with my plan
<jophish> the builds that the evaluator adds could be ones required for IFD, the results of which it'd have to wait on
<Sonarpulse> that my last follow-up alludes to
<Sonarpulse> is that one does not get a conventional dry-run
<Sonarpulse> until all imported derivations are built
<Sonarpulse> one can easily discover derivations
<Sonarpulse> but one has no way of knowing if they are actually needed
<jophish> Sonarpulse: I think there's an issue already for this
elehack has quit [(Ping timeout: 245 seconds)]
<Sonarpulse> really?
KABA has joined #nixos
<jophish> along the lines of parallel evaluation, or lazy nix
<Sonarpulse> oh
<Sonarpulse> huh
<Sonarpulse> so then between my --dry-run issue and that my RFC is wholely redundant :D
<jophish> shlevy: importantly the evaluator would continue evaluating and adding other builds for other expressions while it's waiting for something in the dag to be built to proceed with that expression
<Sonarpulse> jophish: it would have to be eager nix
<Sonarpulse> this is speculative needing
<Sonarpulse> since we can't actually finishing evaluation until the intermediate builds finish and we are un-stuck
<shlevy> jophish: That sounds *more* separated of eval and build time than the current model :D
pie_ has joined #nixos
<Sonarpulse> jophish: also, I am trying to fix some cross things right now
<Sonarpulse> and with hydra lousy tree view
<Sonarpulse> it's very hard to see how close I am
<Sonarpulse> looking forward to hercules!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vH2gY
<NixOS_GitHub> nixpkgs/master 6265306 Michael Weiss: gollum: 4.0.1 -> 4.1.1
NixOS_GitHub has left #nixos []
adamt has quit [(Ping timeout: 255 seconds)]
KABA has quit [(Quit: Leaving)]
<jophish> shlevy: hehe, perhaps we need better terminology in that case!
sellout-1 has joined #nixos
<shlevy> jophish: You're not actually making nix evaluator paralle, right? Just spinning off a new instance of EvalState for each eval?
<Sonarpulse> EvalState?
<jophish> shlevy: well, I'm using nix-instantiate at the moment
sellout- has quit [(Ping timeout: 240 seconds)]
<shlevy> Sonarpulse: C++ object containnig all the state of the valuator
<Sonarpulse> ok
<shlevy> jophish: So a different subprocess for each eval
<Sonarpulse> i assume hercules didn't touch that
<jophish> shlevy: yeah
<jophish> I'd like to write a super speedy nix evaluator in haskell, but I doubt I'll ever find the time
<shlevy> One fun thing is that with current idioms in nixpkgs you'll need to use vectors, not cons lists, for nix lists efficiently :D
<jophish> shlevy: I'll put that as a note on my todo list
<jophish> but for now, I've got to break into this nixos VM
<jophish> I need to swap the old root key for the one nixops has generated
phinxy has quit [(Quit: Leaving)]
KABA has joined #nixos
<Sonarpulse> jophish: shouldn
<Sonarpulse> 't hnix do that?
<jophish> Sonarpulse: I think there was some work on it
<jophish> I don't know how far it got
<Sonarpulse> mm
<jophish> I don't think it's built for speed though
<jophish> hmm, where would root's authorised key live
<jophish> ah, ~/.vbox-nixops-client-key
KABA has quit [(Remote host closed the connection)]
<jophish> hmm, I swapped the file and instead of a publickey,password error I get connection refused!
phinxy has joined #nixos
KABA has joined #nixos
<KABA> How can I install chrome-gnome-shell extension (so that I can download other extensions from the store)?
<KABA> I tried putting the nix package on github into gnome3.sessionPath
<KABA> But I don't even where should I look for it
<dhess`> Anyone know where to get Dezgeg's aarch64 install image?
<dhess`> He has told me before on IRC, but I don't recall the URL :(
<dhess`> (and I can never get botbot.me's search to work for shit)
<kojiro> what does nix-shell do to bash that disables completion?
<dhess`> Dezgeg: ahh yes, thanks. Just found it in GitHub issue 22014
<dhess`> as well
<dhess`> thank you
<dhess`> Dezgeg: same configuration.nix as the armv7l image, for nixos-install purposes?
<Dezgeg> yes
<dhess`> Dezgeg: I'm about to try installing on a Jetson TX1
<dhess`> Dezgeg: oh while you're here, have you ever tried the BeagleBone kernel patches? (for the BB cape manager, pinmux, etc.)
spinus has joined #nixos
<Dezgeg> I haven't
KABA has quit [(Remote host closed the connection)]
<dhess`> OK, I'll try to make a derivation for it, by pulling it from its GitHub repo
<dhess`> Dezgeg: it includes a bb.org defconfig for all the BeagleBone peripherals, dtbs, etc.. How do I tell Nix to use that defconfig when compiling the kernel?
<dhess`> I didn't see any references to defconfigs in nixpkgs
<dhess`> well, there was something about the rpi kernel's version not working with the rpi defconfig, but that was it.
<Dezgeg> it needs some trickery with setting nixpkgs.config.platform
<dhess`> ok I'll dig around
<Dezgeg> defconfigs are defined in lib/platforms.nix (should be moved away though)
<dhess`> Huh, weird. not sure how my grep missed that
<dhess`> but that looks perfect, thank you
elehack_ has quit [(Ping timeout: 240 seconds)]
<dhess`> jeeze, I must have been grepping from the wrong place in the filesystem
Guest83290 has quit [(Quit: Lost terminal)]
pseudo-sue has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar closed pull request #26174: gcc7: init at 7.1.0 (master...gcc7) https://git.io/vHccw
NixOS_GitHub has left #nixos []
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
pseudo-sue has quit [(Ping timeout: 240 seconds)]
kojiro has quit [(Ping timeout: 272 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] benley opened pull request #26362: dex: init at 2.4.1 (master...dex-2.4.1) https://git.io/vH2ah
NixOS_GitHub has left #nixos []
hiratara has quit [(Ping timeout: 255 seconds)]
<phI||Ip> Does anyone know how I might achieve the following: I want a file system watcher service/daemon monitoring configuration.nix. When it gets updated I want nixos-rebuild to be performed
hiratara has joined #nixos
tanonym has joined #nixos
<ris> quick question: (how) is the garbage collector prevented from deleting a store path that's currently in use only by a nix-shell session?
phinxy has quit [(Ping timeout: 240 seconds)]
<clever> ris: it checks things in /proc to find anything open or in env variables
<ris> hah
<ris> cool
<jophish> hmm, the latest version of nixops prints out all my secrets when sending them to the guest
<dhess`> jophish: ouch
<dhess`> to the console, or a log, or... ?
<tanonym> Okay, I have installed my NixOS with the ati fglrx drivers, but can´t start the display-manager and the console mode doesn´t resize to the 1366x768 resolution either.
<tanonym> I tried a rebuild without the unfree drivers enabled, but same issue occurred.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar closed pull request #26152: wine: reorganize packages (master...wine-reorder) https://git.io/vHn23
NixOS_GitHub has left #nixos []
phinxy has joined #nixos
<dhess`> Dezgeg: is firmware-linux-nonfree built into the aarch64 install image?
<Dezgeg> yes it should be
<tanonym> Okay, seems to have resolved itself after a reboot.
<dhess`> thanks
<tanonym> Is there a way for me to renumber generations in NixOS?
sitwon has quit [(Ping timeout: 260 seconds)]
KABA has joined #nixos
sitwon has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
pseudo-sue has joined #nixos
Nobabs27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] winniequinn opened pull request #26363: gitkraken: 2.5.0 -> 2.6.0 (master...gitkraken-2.6.0) https://git.io/vH2wM
NixOS_GitHub has left #nixos []
<tanonym> Hm, something went wrong with the networking now. Enlightenment does not enable connman, and something is screwy when I try to get wpa_supplicant to enable. I´ve added ctrl_interface = DIR = /run/wpa_supplicant GROUP = wheel to /etc/wpa_supplicant.conf
pseudo-sue has quit [(Ping timeout: 255 seconds)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
johnsonav has joined #nixos
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] winniequinn opened pull request #26364: vscode: 1.12.1 -> 1.12.2 (master...vscode-1.12.2) https://git.io/vH2wA
NixOS_GitHub has left #nixos []
roconnor_ has quit [(Quit: Konversation terminated!)]
<tanonym> Okay, wpa_supplicant is not functioning as expected any more. Service fails with a 255 exit cod
<tanonym> code*
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] msteen opened pull request #26365: xcursor themes: added the comix, flatbed, gruppled, polar and premium xcursor themes (master...xcursor-themes) https://git.io/vH2rf
NixOS_GitHub has left #nixos []
slyfox has quit [(Ping timeout: 245 seconds)]
<tanonym> And back to that blasted technology not supported issue.
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<tanonym> I thought I had that fixed.
slyfox has joined #nixos
<tanonym> So much for that.
<tanonym> Maybe I need to have the GROUP in wpa_supplicant.conf as root?
<tanonym> Huh, says the issue is Line 2 of wpa_supplicant.conf: unknown global field Group=root and then Invalid configuration line GROUP=root
<tanonym> So, that is where the issue is.
ryantrinkle has quit [(Ping timeout: 255 seconds)]
KABA has quit [(Quit: Leaving)]
<tanonym> Ah, it can not be on a separate line.
<tanonym> Solved!
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nix_n00b has joined #nixos
<nix_n00b> I'm having trouble compiling a basic C program. With GCC my error was: "gcc: error trying to exec 'as': execvp: No such file or directory", and with clang it's: "fatal error: 'stdio.h' file not found"
<nix_n00b> I've read that imperative installations may cause some trouble, but I'm afraid I don't quite understand it or how to fix/approach this problem. If anyone could help I'd really appreciate it
<calvertvl> anyone have any idea why setting virtualisation.virtualbox.host.enable=true somehow doesn't apply the udev rules?
<calvertvl> (yes, this is even after a reboot)
<calvertvl> nix_n00b: from what I saw when looking at this yesterday, it is because the dev parts of packages (headers and such) are not installed under nix
<calvertvl> nix_n00b: so you have to use either nix-shell or a buildEnv / nix expression to build it
<calvertvl> (when I say not installed, I mean not available in the user's environment - they exist in the nix store)
<nix_n00b> calvertvl: In hindsight I should've installed these things during the talk yesterday. Ok, I will look at what those mean. I'm unfamiliar with the vast majority of this, but does buildEnv happen in the configuration.nix?
<calvertvl> it seems to be user-specific, in your config.nix, but I'd have to google for links
<nix_n00b> calvertvl: where can I read about these? cntrl+f buildEnv didn't pull up anything in both Nix Manual and NixOS manual
fresheyeball has joined #nixos
<fresheyeball> hello out there
<fresheyeball> how can I control my etc/hosts file?
<calvertvl> nix_n00b: here's what seems to be a good summary with examples: https://dzone.com/articles/isolated-development-environment-using-nix
<fresheyeball> I'm on nixos
<Sonarpulse> is there any ideom for regenerated a config script?
<Sonarpulse> I need to patch it
<nix_n00b> calvertvl: Thank you! Reading now
<Sonarpulse> so i patched configure.in
<Sonarpulse> (I think should be .ac but that's another issue)
<nix_n00b> Is there some sort of NixOS-wiki I can contribute to?
<nix_n00b> because this https://nixos.org/nixos/wiki.html is pretty barebones
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] winniequinn opened pull request #26366: slack: 2.5.2 -> 2.6.2 (master...slack-2.6.2) https://git.io/vH2rP
NixOS_GitHub has left #nixos []
<nix_n00b> Nice! thanks
roconnor has quit [(Quit: Konversation terminated!)]
<calvertvl> clever: do you have any suggestions why the udev rules defined in the virtualbox-host module don't get applied?
phI||Ip has quit [(Quit: ZNC 1.6.1 - http://znc.in)]
<calvertvl> (that's what seems to be breaking virtualbox for me)
<fresheyeball> clever: do you know if host updates require a reboot?
phI||Ip has joined #nixos
<calvertvl> fresheyeball: I would think that hosts file updates should be available on switch or test
<clever> yeah
ted_ has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]
ted_ has quit [(Read error: Connection reset by peer)]
phinxy has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] winniequinn opened pull request #26367: iosevka: 1.12.5 -> 1.13.0 (master...iosevka-1.13.0) https://git.io/vH2oT
NixOS_GitHub has left #nixos []
deba5e12 has quit [(Ping timeout: 260 seconds)]
<ogleb> :q!
<ogleb> exit
ogleb has left #nixos ["WeeChat 1.7"]
deba5e12 has joined #nixos
markus1199 has joined #nixos
markus1219 has joined #nixos
markus1209 has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 240 seconds)]
Mateon1 has joined #nixos
<yorick> is cache.nixos.org down for anyone else?
<yorick> (of course it starts working now)
fnljk has joined #nixos
<yorick> nope, not working again
fresheyeball has quit [(Quit: WeeChat 1.7.1)]
Mateon1 has quit [(Quit: Mateon1)]
Mateon1 has joined #nixos
Mateon1 has quit [(Client Quit)]
Mateon1 has joined #nixos
elehack_ has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
justanotheruser has quit [(Ping timeout: 260 seconds)]
justanotheruser has joined #nixos
phinxy has quit [(Quit: Leaving)]
takle has quit [(Remote host closed the connection)]
sitwon has quit [(Ping timeout: 240 seconds)]