<clever>
how will it deal with amazon being weird?, i ordered 4 sticks of ram, 3 arrived at the post office, 1 turned up leaning against my back door
pxc has quit [(Ping timeout: 255 seconds)]
JagaJaga has joined #nixos
eschnett has quit [(Quit: eschnett)]
zraexy has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
ison111_ has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<jasom>
is there any way to get fetchurl to allow md5 (just to speed up some testing?)
<taktoa>
1. I thought fetchurl _did_ support MD5
<taktoa>
2. MD5 is not that much faster than SHA256
takle has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
romildo has joined #nixos
<disasm>
Hey gchristensen sorry didn't get in touch at 4:30, crazy day.
<taktoa>
hmm according to the nixos phd thesis section on the intensional store it's not possible to have multiple outputs with the extensional store... I'm guessing that turned out to be false?
<taktoa>
(beginning of the last paragraph on page 161)
<romildo>
Can wrapProgram wrap a program from a different package in the store?
<romildo>
Or can wrapProgram receive the paths of the input and the output files?
<clever>
romildo: makeWrapper takes a path to the real program, and the output path
<clever>
romildo: and wrapProgram just renames the path you give it, then runs makeWrapper
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v7hcp
<NixOS_GitHub>
nixpkgs/master efc9533 Michael Raskin: Do an ASDF build of StumpWM in quicklisp-converted version
NixOS_GitHub has left #nixos []
Wizek__ has joined #nixos
<jasom>
taktoa: no, I have ~2000 tgz files that I already have md5 sums for in a nice database
boomshroom has joined #nixos
<boomshroom>
Hello!
<jasom>
I don't care about hash speed
<taktoa>
ah
<jasom>
"error: fetchurl does not support md5 anymore, please use sha256 or sha512" is what I get when trying to build a nix expression with md5 in a fetchurl
JagaJaga has quit [(Ping timeout: 240 seconds)]
<taktoa>
jasom: you should rehash them anyway, MD5 is insecure
Wizek_ has quit [(Ping timeout: 248 seconds)]
joehh has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<viaken>
This software apparently requires you enter data during its build process.
<romildo>
clever, ok. I am writing the package cajaWithExtensions, a wrapper for caja. I want to wrap binaries from ${caja}/bin into ${cajaWithExtensions}/bin. In this case wrapProgram will not work, because it renames the original binary and makes a new one in the same directory. I would have to symlink the binaries from the original package to wrapped package and then wrap the symlinks, right?
<clever>
romildo: you can just use makeWrapper directly
<boomshroom>
I figured it's about time to try getting my printer up and running with NixOS. Cups was able to detect the printer (more than I could do before with Arch) and now I have to select the driver / make and model. Which driver should I use for a Brother DCP 7020?
<romildo>
caja, yes, it is be too much work with wrapProgram. Then I am going to use makeWrapper directly.
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<romildo>
And I have a list of packages in the attribute 'extensions'. How can I get a search path from them that looks at a given subdir in each one?
<clever>
romildo: lib.concatMapStringsSep
pxc has joined #nixos
<boomshroom>
If I choose the Generic "Make", what should I use for the "Model"? Postscript?
gnuhurd has joined #nixos
<romildo>
For instance, if extensions is [pack1 pack2 pack3], I want the string "${pack}/subdir:${pack2}/subdir:${pack3}/subdir".
eacamero_ has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
<jasom>
taktoa: I know; but it will take me a while to untangle every place I use md5, and the script I'm about to run takes 20 hours and I want to do it before I go to bed
<clever>
you can also give it a list of attrsets, and then apply a more complex function
<clever>
as long as that function returns a string
<jasom>
so I repeat my question: is there a flag I can set to cause fetchurl to not complain about md5 as the hash?
<taktoa>
jasom: if you have the files in a database, why can't you just run sha256sum on them? in any case, maybe you could write your own fetchurl with a fixed output derivation and `curl`? I don't know if FO derivations still support MD5 though. The chromium build used to take advantage of that to make a nondeterministic derivation (using MD5 collision) but maybe it's been removed
<jasom>
taktoa: and I replaced the database entry with the sha256 sum and my script broke
<clever>
jasom: any derivation that defines outputHashAlgo, outputHash, and outputHashMode, is fixed-output
pxc has quit [(Ping timeout: 255 seconds)]
<clever>
jasom: so you could apply a .overrideDerivation to fetchurl (after giving it a fake sha256) to change the outputHashAlgo and outputHash
eacameron has quit [(Ping timeout: 240 seconds)]
<clever>
i believe nix still supports md5, and its just nixpkgs that dis-allows it
eacameron has joined #nixos
<jasom>
clever: thanks
<boomshroom>
Good news. NixOS was able to tell the printer to print. The bad news is 1 test page = infinite blank pages. How would I install the specific driver for this printer? Nixpkgs doesn't seem to have many Brother drivers. AUR had the driver for the 7030, but not the 7020. Brother has the driver for this machine, but only in DEB or RPM.
<clever>
boomshroom: do you have a filename for a brother driver from the AUR?
<boomshroom>
clever: The deb contains brcupsconfig3 and cupswrapperDCP7020-2.0.1, both in usr/local/Brother/cupswrapper/. (and some docs)
eacameron has joined #nixos
<clever>
boomshroom: and what about the LPR printer driver?
<boomshroom>
clever: A lot more. 2 executables, a shared library, something in /var/spool, and a bunch of stuff in /usr/local/Brother/
<clever>
boomshroom: what are some of the names under /usr/local/Brother?
eacameron has quit [(Ping timeout: 240 seconds)]
<boomshroom>
clever: 2 folders, inf and lpd. inf has braddprinter, brDCP7020rc, paperinf, brDCP7020func, and setupPrintcap. lpd has rawtobr2, filterDCP7020, and psconvert2.
<clever>
hmmm, still not finding anything in nix-locate
tempay has joined #nixos
eacameron has joined #nixos
<boomshroom>
Cups also accepts a single ppd file, but it doesn't seem like either of the downloads have one.
<tempay>
Hi - is 100% of the necessary documentation for contributing packages to NixPkgs in the manual? I've been trying to contribute and running into conventions that don't seem like their in the manual..
<boomshroom>
According to Brother's website, the Cups driver requires the LPR driver to be installed.
hanslo-W has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
gnuhurd has quit [(Remote host closed the connection)]
<boomshroom>
Brother also provides a "Source Codes" download that seems to contain shell scripts to install the drivers manually.
<tempay>
are there any other sources of documentation for contributing I should know about, or just the manual?
<romildo>
runCommand with makeWrapper "${caja}/bin/caja $out/bin/caja" --set CAJA_EXTENSION_DIRS "${dirs}" fails with the error: Cannot wrap /nix/store/0pvar495l9xpfq0c2wg65ync6cii5fkr-caja-1.18.3/bin/caja /nix/store/xq8z045km71p1dyygnja1yss4z7r9q8g-cajaWithExtensions-1.18.3/bin/caja because it is not an executable file
<romildo>
/nix/store/0pvar495l9xpfq0c2wg65ync6cii5fkr-caja-1.18.3/bin/caja has already been wrapped in the caja package.
<romildo>
Is this a problem for makeWrapper?
<adelbertc>
tempay: there are some linked in the wiki on GitHub iirc
<clever>
romildo: you quoted it too much
<clever>
romildo: that is passing 2 files as a single argument
eacamero_ has quit [(Ping timeout: 240 seconds)]
sigmundv_ has quit [(Ping timeout: 248 seconds)]
<boomshroom>
I extracted the ppd file from the script and tried using it directly. Unsuprisingly, I'd depends on other files. Interestingly, it looks for them in the /nix/store/...cups-progs/ tree.
<clever>
boomshroom: if we have the name of the ppd, we can check to see if its already been packaged
<boomshroom>
The script outputs it to /usr/share/cups/model/DCP7020.ppd. I just copied it as ~/Downloads/brother-2070.ppd.
<clever>
nope, still not found
<boomshroom>
If it's not in <nixpkgs>/pkgs/misc/cups/drivers, then it's probably not in nixpkgs. If it's not in the AUR, then it's unlikely that nixpkgs doesn't have it.
<viaken>
Is there a way to define a string in configuration.nix and reference it during a package build?
<boomshroom>
unlikely that nixpkgs *does* have it. sorry
<clever>
viaken: what are you trying to do?, only packages defined in the nixos side of things can refer to nixos config
<clever>
romildo: only thing missing that i can think of is man pages
LysergicDreams has quit [(Ping timeout: 240 seconds)]
ben has quit [(Ping timeout: 240 seconds)]
<romildo>
I am not sure the caja wrapper should be named cajaWithExtensions or caja-with-extensions. Any guidelines regarding naming?
Wizek__ has quit [(Ping timeout: 240 seconds)]
pmeunier has quit [(Ping timeout: 240 seconds)]
pmeunier has joined #nixos
Rotaerk has quit [(Ping timeout: 240 seconds)]
<clever>
romildo: gimp for example has: gimp gimp-with-plugins gimpPlugins
<clever>
gimpPlugins being a set of all possible plugins
viaken[m] has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
ben_ has joined #nixos
LysergicDreams has joined #nixos
ben_ is now known as Guest66412
<romildo>
clever, it seems that emacs, vim, haskell, eclipse, etc. uses camelCase. Maybe there is no guidelines for that.
<clever>
yeah
<viaken[m]>
clever: This software I was trying to package requires an email address as part of it's build process. I was trying to figure out a way to give it one
filterfish has quit [(Quit: Leaving)]
<clever>
viaken[m]: and you cant just provide it at runtime or hard-code it?
eschnett has joined #nixos
<viaken[m]>
I'm still not 100% on what it does with it, but it is required at build time.
<clever>
viaken[m]: try just giving it a dummy email and see what happens
<clever>
olejorgenb[m]: --delete-older-than will delete gc roots in nix-env and nixos-rebuild
<clever>
which then allows normal nix-collect-garbage to delete more things
<clever>
but you can still delete a lot of things without --delete-older-than
<olejorgenb[m]>
clever: yeah, I know
<olejorgenb[m]>
but at first I thought nix somehow tracked usage of derivations
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm has joined #nixos
Wizek_ has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 240 seconds)]
<romildo>
clever, do you think the man pages from the base package should be symlinked to the wrapped package?
brynedwardz has joined #nixos
brynedwards has quit [(Disconnected by services)]
brynedwardz is now known as brynedwards
sellout- has quit [(Quit: Leaving.)]
<clever>
romildo: yeah, that would help users a lot
<romildo>
The caja package that I am wrapping with extensions has no provision for dynamically finding the extensions. But a search directory can be configured at build time. I have patched the source code to use an environment variable (CAJA_EXTENSION_DIRS) to fix that. Is it a good approach?
Guest621 has quit [(Remote host closed the connection)]
zeus has joined #nixos
zeus is now known as Guest91432
<romildo>
clever, and there are other executables in the base package, besides the main 'caja' command. I am not sure whether they should be wrapped too. What do you think?
taktoa has quit [(Remote host closed the connection)]
<clever>
romildo: can those things run the original caja?
Guest91432 has quit [(Ping timeout: 240 seconds)]
<romildo>
clever, I do not think so. But I am not sure. Caja is the mate file manager. The other executables are named caja-autorun-software, caja-connect-server, and caja-file-management-properties.
ison111_ has quit [(Quit: WeeChat 1.7.1)]
<clever>
romildo: should probably symlink them at the least, so they are still available
ison111 has joined #nixos
<romildo>
clever, there is also subdirectories include, lib and share. In share there are things like desktop menu entries, icons, glib schemas, locales, ...
<romildo>
clever, some extensions have executables too. They may be implicitly used by the extension.
yrashk has quit [(Ping timeout: 276 seconds)]
<clever>
romildo: a buildEnv with a post hook may also be better
<romildo>
clever, buildEnv will combine the stores with symlinks, right?
<clever>
romildo: use buildEnv with ignoreCollisions=true; to merge caja, and every extension into a single directory tree
yrashk has joined #nixos
<clever>
yeah
<clever>
then use postBuild to replace $out/bin/caja with a wrapper
<romildo>
clever, it seems that symlinkJoin can also be used for this, right? How does it differ from buildEnv?
<clever>
not sure, ive only ever used buildEnv
<adelbertc>
what are the tradeoffs between using packageOverrides to do overrides for a project vs. using something like `fix'` and `extend`. one thing i've noticed is `forceSystem` doesn't seem to like `fix'` and `extend`, but on the other hand `packageOverrides` uses `config` when importing `nixpkgs` which means config you have in `~/.config/nixpkgs/config.nix` won't get picked up
pxc has joined #nixos
drakonis has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
proteus-guy has joined #nixos
proteusguy has quit [(Ping timeout: 246 seconds)]
pxc has joined #nixos
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
<ison111>
Why does there need to be a nix-daemon for multi-user installs? Couldn't just a script with the right permissions do the trick?
<clever>
ison111: you would need to arrange for every user to have write access to /nix/store for one
<clever>
ison111: and its simpler to just make nix-daemon root, and have it manage that for them
<clever>
second main point, is that nix-daemon enforces the rules, and stops users from doing nasty things in the store
<ison111>
well you could always have the suid bit set, but I guess that's kind of scary
<clever>
setuid isnt allowed in the store
<ison111>
the install script I mean
<clever>
and the builds are triggered from inside a library, so things like nix-repl can directly spawn the build
<clever>
which means nix-repl would have to be setuid root
ebzzry_ has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
schoppenhauer has quit [(Ping timeout: 264 seconds)]
schoppenhauer has joined #nixos
<adelbertc>
speaking of multi-user install, it seems with multi-user each user doesnt have a channel set, i assume because of the whole nix-daemon-does-everything thing
<adelbertc>
in that case how do you do a channel update?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] romildo opened pull request #28362: mate.caja-extensions: init at 1.18.1 (master...mate) https://git.io/v7hzf
NixOS_GitHub has left #nixos []
c74d has left #nixos []
<romildo>
clever, maybe you want to take a look at the PR I have just submitted to add caja-extensions to nixpkgs.
rootnode has joined #nixos
<romildo>
clever, and let me thank you for the tips regarding wrapping executables in NixOS.
ebzzry_ has joined #nixos
<clever>
romildo: looks good
takle has joined #nixos
seanparsons has quit [(Remote host closed the connection)]
seanparsons has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
leat has quit [(Ping timeout: 240 seconds)]
leat has joined #nixos
zeus has joined #nixos
zeus is now known as Guest5284
<rootnode>
I should not have updated my system...
<rootnode>
the new postfix config screwed me royally
<clever>
you can always nix-channel --rollback to undo the change in nixpkgs
reinzelmann has joined #nixos
romildo has quit [(Quit: Leaving)]
eacameron has joined #nixos
cpennington has quit [(Remote host closed the connection)]
MP2E has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] tnias opened pull request #28363: nixos/usbguard: create package and module (master...usbguard) https://git.io/v7h2C
NixOS_GitHub has left #nixos []
Wizek has quit [(Quit: Connection closed for inactivity)]
tnias has joined #nixos
Mateon2 has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Remote host closed the connection)]
Mateon1 has joined #nixos
ladams has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
stepcut has joined #nixos
stepcut has quit [(Remote host closed the connection)]
rpifan has quit [(Quit: Leaving)]
the-kenny has quit [(Ping timeout: 264 seconds)]
the-kenny has joined #nixos
drakonis has quit [(Quit: Leaving)]
tmaekawa has joined #nixos
newhoggy_ has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
NightTrain has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
Gohla has quit [(Ping timeout: 246 seconds)]
nixy has quit [(Quit: WeeChat 1.7)]
nixy has joined #nixos
Gohla has joined #nixos
MercurialAlchemi has joined #nixos
nixy has quit [(Client Quit)]
joehh has joined #nixos
nixy has joined #nixos
ryantm has quit [(Quit: Connection closed for inactivity)]
<joehh>
hi, I have got automounting for an smb share working, but only root can write to the share
<joehh>
how do I do something similar but for a regular user?
oida_ has quit [(Ping timeout: 240 seconds)]
Guest5284 has quit [()]
roberth has joined #nixos
stivo has joined #nixos
<rauno>
back with my yesterday issue, somewhy nixos config doesn't activate some sysctl parameters defined in configuration.nix, they are even added to /etc/sysctl.d/nixos.conf but still some of them are not activate after reboot
jellowj has joined #nixos
dylanjust[m] has joined #nixos
<dylanjust[m]>
Hi. I'm wondering what the current best practice is for "pinning" a specific nixpkgs version. I want to build a package, and basically fix the nixpkgs version so that each build is built against the same nixpkgs state.
<ronny>
dylanjust[m]: typically its based on fetching a specified version from github (which will be cached in the store, then injecting that)
<NixOS_GitHub>
[nixpkgs] gebner pushed 2 new commits to master: https://git.io/v7ho5
<NixOS_GitHub>
nixpkgs/master 9a67c8e Gabriel Ebner: perlPackages.TextBibTeX: do not hardcode gcc...
<NixOS_GitHub>
nixpkgs/master f1666a3 Gabriel Ebner: perlPackages.ExtUtilsLibBuilder: 0.04 -> 0.08
NixOS_GitHub has left #nixos []
rauno has quit [(Ping timeout: 240 seconds)]
ShalokShalom_ has joined #nixos
ShalokShalom has quit [(Ping timeout: 240 seconds)]
<dylanjust[m]>
Anyone know what I could be doing wrong? Do I need to log a github issue?
endformationage has quit [(Quit: WeeChat 1.9)]
gnuhurd has joined #nixos
kuznero has joined #nixos
<kuznero>
Hi All! I just happened to install jupyter notebook and related packages (including ipykernel) from python35Packages. But then when I start jupyter-notebook and try to start Python 3 notebook it fails to start the kernel (even though I have ipykernel installed). Please help!
MoreTea has joined #nixos
pie__ has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 24 new commits to master: https://git.io/v7h6T
<NixOS_GitHub>
nixpkgs/master 1c4171c Matthew Bauer: cryptop: https
<NixOS_GitHub>
nixpkgs/master 20b9c32 Matthew Bauer: amarok: use https for homepage
<NixOS_GitHub>
nixpkgs/master 99c868c Matthew Bauer: use https://github.com for all homepages...
NixOS_GitHub has left #nixos []
ertes has quit [(Ping timeout: 246 seconds)]
MoreTea has quit [(Ping timeout: 248 seconds)]
<sphalerite>
kuznero: try running jupyter from a nix-shell like nix-shell -p 'python.withPackages (ps: with ps; [ jupyter ])'
<kuznero>
sphalerite: trying it out, I guess I will also need to include notebook and ipykernel there?
<kuznero>
sphalerite: nix-shell -p 'python3.withPackages (ps: with ps; [ jupyter ])' worked for me :) Thanks! But looks a bit inconvenient calling it all the time to start a notebook... Is there any way to make my systemPackages have everything such that I can start julyter-notebook without going into this nix-shell?
phdoerfler has joined #nixos
phdoerfler has quit [(Client Quit)]
ertes-w has joined #nixos
takle has joined #nixos
<sphalerite>
kuznero: there certainly is but I'm not sure there's a simple one. Personally I'd probably just add a shell function like jupyter() { nix-shell -p 'python.withPackages (ps: with ps; [ jupyter ])' --run 'jupyter notebook' ; } to my bashrc or similar
ebzzry_ has quit [(Ping timeout: 248 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<adisbladis>
I'm doing something similar for ipython, dont want my profile polluted with python deps
<kuznero>
sphalerite: thanks for the tip, never saw this before
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 7 new commits to staging: https://git.io/v7hX5
<NixOS_GitHub>
nixpkgs/staging f660f58 Tuomas Tynkkynen: Revert "binutils: add missing patches..."...
<NixOS_GitHub>
nixpkgs/staging 23547ac Tuomas Tynkkynen: Revert "binutils: patch bugs in 2.29"...
<NixOS_GitHub>
nixpkgs/staging f9b2d7b Tuomas Tynkkynen: Revert "binutils: 2.28 -> 2.29"...
NixOS_GitHub has left #nixos []
boomshroom has quit [(Ping timeout: 260 seconds)]
pxc has quit [(Ping timeout: 255 seconds)]
FRidh has joined #nixos
joehh has quit [(Ping timeout: 248 seconds)]
MoreTea has joined #nixos
<rauno>
does anyone know why some sysctl settings dont activate after reboot ?
Infinisil has joined #nixos
<kevincox>
rauno: No reason I am aware of. What settings are you trying to set and how are you setting them?
<kuznero>
What is generally the difference of when I install pythong35Packages.jupyter and (python35.withPackages (ps: with ps; [ jupyter ]))? The later works, the former does not let me run notebook... Why is that?
takle has joined #nixos
<FRidh>
kuznero: the python interpreter looks for modules in the site-packages folder
<FRidh>
with Nix we do not have a shared site-packages folder
<FRidh>
that means we need to somehow tell the i nterpreter where to find modules
<FRidh>
The former just gives you the package, and wraps any executables it may come with, whereas the latter wraps the interpreter so that it can find all included modules.
NightTrain has quit [(Quit: Lost terminal)]
takle has quit [(Ping timeout: 240 seconds)]
vandenoever has quit [(Ping timeout: 255 seconds)]
slyfox has quit [(Ping timeout: 240 seconds)]
<kuznero>
FRidh: thanks! Does the same principle apply to haskell packages?
takle has joined #nixos
elurin has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
kiloreux has joined #nixos
slyfox has joined #nixos
<simpson>
Is there a documented recipe for using the nixos/nix Docker image? I found one of offlinehacker[m]'s slide decks, but otherwise not much.
<FRidh>
kuznero: I think so
<FRidh>
but I'm not sure, I don't use Haskel
<kuznero>
FRidh: thanks
<srhb>
kuznero: Yes, it does. withPackages will make sure ghc-pkg finds it
<srhb>
kuznero: ghcWithPackages, rather
<srhb>
We really ought to get the naming scheme in order...
<kuznero>
srhb: thanks, now it all starting to make more sense :)
<bitonic>
it fails quite quickly with `error: derivation ‘/nix/store/y9iqpb9ws9f85zsf983zkk6ymw1qw45s-bash-4.4-p5.drv’ may not be deterministic: output ‘/nix/store/6azzdah0darxs5fg5jzlq6vksg45pfxx-bash-4.4-p5-dev’ differs`
<goibhniu>
just the package you specify ... e.g. from the root of a nixpkgs clone: `nix-build --check -A hello`
<bitonic>
goibhniu: that is what i'm doing, and it fails with that error 🤔
<goibhniu>
which package?
<bitonic>
goibhniu: one i have locally defined
<goibhniu>
can you check that it works with one in nixpkgs?
<bitonic>
goibhniu: yep, one sec
<ij>
Can you cache things if you're building something with nix-build? I'm building haskell+docker on top and the haskell part's always recompiling.
<Infinisil>
ij: nix-shell?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v7hjH
<NixOS_GitHub>
nixpkgs/master cc1c817 Franz Pletz: libmspack: 0.5alpha -> 0.6alpha...
NixOS_GitHub has left #nixos []
<bitonic>
goibhniu: i'm trying with `-A nixpkgs.xorg.libXrandr` (first package that i happened to see...) and it fails the same way
<ij>
Infinisil, No, nix-build.
* goibhniu
doesn't recognize that error
<bitonic>
goibhniu: maybe i should just reset my store
<bitonic>
i think there's something deeply messed up
<bitonic>
is there a "right" way to do that?
<Infinisil>
ij: nix-shell can keep the intermediate build results, nix-build doesn't
jellowj has joined #nixos
<goibhniu>
bitonic: try it with a revision of nixpkgs that successfully created a channel ... e.g. the hash at the end of `nixos-version` (if you're using nixos)
<Infinisil>
ij: I don't know much about your build pipeline though, so not sure what's the problem
ylwghst has joined #nixos
ThatDocsLady has joined #nixos
hotfuzz_ is now known as hotfuzz
McLovin_ has quit [(Quit: Leaving)]
ison111 has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
pxc has joined #nixos
<LnL>
ij: are you using src = ./.;
babic has quit [(Quit: No Ping reply in 180 seconds.)]
NightTrain has joined #nixos
babic has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
MoreTea has joined #nixos
Infinisil has quit [(Read error: Connection reset by peer)]
Infinisil has joined #nixos
eacameron has joined #nixos
<ij>
LnL, src ./..
<LnL>
then the result symlink might be causing the rebuilds you are talking about
<LnL>
try nix-build --no-out-link
ylwghst has quit [(Quit: Lost terminal)]
xd1le has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
mounty has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
rtjure has quit [(Ping timeout: 240 seconds)]
ericsagn1 has joined #nixos
mounty has joined #nixos
avn has joined #nixos
xd1le has quit [(Quit: Toodaloo padawans! 👣)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
gspia_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
adeohluwa has quit [(Quit: Connection closed for inactivity)]
MoreTea has quit [(Ping timeout: 240 seconds)]
slack1256 has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
<betaboon>
can i somehow print the value of a set during evaluation ?
oahong has quit [(Ping timeout: 240 seconds)]
<sphalerite>
betaboon: builtins.trace
JandJim has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/v7jTG
<NixOS_GitHub>
nixpkgs/staging 7320fa9 Tuomas Tynkkynen: Revert "stdenvs: Distinguish between `extraBuildInputs` and `extraNativeBuildInputs`"...
NixOS_GitHub has left #nixos []
<gchristensen>
sphalerite: hey, how is #7 coming?
erictapen has quit [(Ping timeout: 255 seconds)]
<betaboon>
sphalerite: thank you
eacameron has joined #nixos
Infinisil has quit [(Quit: leaving)]
thblt has joined #nixos
xd1le has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<JandJim>
Hi, I am considering using Nix but there are still things that I do not fully understand... Let's say I want to install OpenMPI for instance. It should be linked to an external, vendor provided, library present in a custom path. Is there a mechanism to consistently add the required configuration flag for both installation AND updates other than having to fork the default.nix file? (It might be very basic, I'm sorry)
<xd1le>
How can I build a project that uses cmake?
<xd1le>
(as in, in a nix expression)
<betaboon>
sphalerite: when trace shows a set as { key = <CODE>; }, does that mean that value is a function ?
<michaelpj_>
xd1le: you probably need cmake in buildInputs, though
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
<xd1le>
michaelpj_: yeah maybe that's what I missed, :| (cause I already tried assuming it would pick up it's a cmake project by default but it complained about no Makefile, etc.)
<thblt>
gchristensen: I have networkmanager enabled, but nmtui only shows wired connection.
<xd1le>
JandJim: yw!
<gchristensen>
thblt: does ifconfig list any wlp* interfaces?
iyzsong has joined #nixos
<thblt>
gchristensen: No, only the USB ethernet adapter and loopback
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jamtrott opened pull request #28368: petsc: init at 3.7.6 (master...petsc) https://git.io/v7jky
NixOS_GitHub has left #nixos []
MoreTea has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<xd1le>
michaelpj_: that worked, thanks!
<gchristensen>
thblt: try pressing the "PtrScr" button in the top-right area of your on-board laptop keyboard
eacameron has joined #nixos
<thblt>
gchristensen: No effect (and xev detects the keypress, so I guess it's not handled by the firmware like fn-f10 is)
<srhb>
Is anyone else having trouble visiting nixcon2017.org ?
<srhb>
Actually I can't even ping it. Weird.
<brynedwards>
Fine for me
<srhb>
Hm. guess my vpn is screwy.
<gchristensen>
thblt: hmm pressing F10 w/out Fn is handled by the firmware for me
<gchristensen>
thblt: so, maybe, press Fn-PtrScr
<gchristensen>
thblt: and indeed pressing that radio tower button kills wifi for me
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<thblt>
gchristensen: I tried both, no effect.
andymandias has joined #nixos
<thblt>
I configured the machine to require fn for the media key, so your f10 is probably my fn-f10.
ThatDocsLady has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
<thblt>
but "rfkill list" also reports only the bluetooth controler, no wifi. I really suspect a driver issue.
<gchristensen>
thblt: unforutanetyl I can't help further right now, but could later. hopefully someone else can now :)
oahong has quit [(Ping timeout: 240 seconds)]
peacememories has joined #nixos
<thblt>
gchristensen: Thank you very much :)
eacameron has joined #nixos
nwuensche has joined #nixos
sellout- has joined #nixos
<nwuensche>
Hi! I installed oh-my-zsh on my system. However, I want to use it with my modified version of the agnoster theme. How can I do this? Can I use a path for programs.zsh.ohMyZsh.theme?
eacameron has quit [(Ping timeout: 248 seconds)]
thblt has quit [(Remote host closed the connection)]
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
NightTrain has quit [(Quit: Lost terminal)]
ThatDocsLady has joined #nixos
jellowj_ has joined #nixos
jellowj has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<MoreTea>
has anyone else tried `openshift cluster up`?
<thblt>
Sorry to ask again, but does anybody here use NixOS (preferably 17.03) on a Dell XPS 15" (9560) and has got wifi working? I'd love to see your config!
gspia_ has joined #nixos
<goibhniu>
hi thblt, what wifi chip have you got? Maybe you need to enable some firmware?
<gspia_>
Hi, anybody with problems with sshd (17.03, listenAddresses) & solutions?
<joepie91>
gspia_: "problems" is very vague. if you describe what exactly the problems are (what does it do? what is it *supposed* to do? what have you tried, and in what way did it not resolve the issue?) then somebody may recognize the issue and know the answer
<goibhniu>
thblt: is ath10k loaded?
MoreTea has quit [(Ping timeout: 248 seconds)]
<gchristensen>
joepie91: nice!
<gspia_>
ok: on configuration.nix, if I add listenAddresses = [ {addr = "my addr"; port=myport;} ];, rebuild,
<gspia_>
and try systemctl status sshd
<gspia_>
it says failed to start ssh daemon
<thblt>
goibhniu: yes, it seems so.
<gspia_>
but without that line, ssh daemon starts
<joepie91>
gspia_: what does `journalctl -eu sshd` show at the end?
<joepie91>
gspia_: sorry, `journalctl -exu sshd`
<joepie91>
of specific interest are any errors relating to ports being in use
<gspia_>
ok, wait a sec (suspecting links, since now it could find the sshd while with that address line it wasn't finding - I'll recheck this after trying journalctl)
<goibhniu>
thblt: ah, but he says it works out of the box?
<thblt>
goibhniu: on the installer, yes. I think it worked on the installer for me too.
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #28370: Make UEFI installer test release critical (master...uefi-release-critical) https://git.io/v7jYp
NixOS_GitHub has left #nixos []
<gchristensen>
thblt: try adding hardware.enableRedistributableFirmware = true; to your config and rebuilding / rebooting
<betaboon>
is there a builtin method for merging a list of sets ?
<gspia_>
joepie91: it says: Unit sshd.service has failed.
<gspia_>
joepie91: start request repeated too quickly.
<thblt>
gchristensen: thank you, rebooting now :)
thblt has quit [(Remote host closed the connection)]
<gspia_>
joepie91: and with systemctl status sshd
thblt has joined #nixos
<thblt>
gchristensen: it works, thank you!
<gchristensen>
oh! :)
<gchristensen>
I'll update my post. I didn't have to add that, because hardware-configuration.nix imports nixpkgs/nixos/modules/installer/scan/not-detected.nix which has it
<gchristensen>
I'll update my post. I didn't have to add that, because my hardware-configuration.nix imports nixpkgs/nixos/modules/installer/scan/not-detected.nix which has it
<gspia_>
joepie91: systemctl msg is similar (failed to start ssh daemon)
<joepie91>
gspia_: you'll want to scroll up until the first failure in the chain
<joepie91>
gspia_: the 'start request repeated too quickly' just means that the sshd refused to start several times and eventually it ran out of tries
<gchristensen>
thblt: I'm glad it worked :D
<joepie91>
ie. what you're interested in, is the error that *led* to those retries
<thblt>
gchristensen: It's my fault it didn't work, to be honest. I tried to make the configuration from scratch by just copy-and-pasting the essential bits from the generated hardware-configuration.nix, so I dropped this import.
<sphalerite>
betaboon: re <CODE>, I think it's just something that hasn't been evaluated
nh2 has joined #nixos
jellowj_ has joined #nixos
<sphalerite>
betaboon: re set merging, I don't think there is but you can use one of the folds and mergeAttrs from lib in nixpkgs to make it yourself
mog has quit [(Ping timeout: 240 seconds)]
<gspia_>
joepie91: ok, did the following: rebuild switch without listenAddresses (starts ok, checked with that journalctl), then rebuild switch with listenAddress
<sphalerite>
Thing is that there's no "one true way" of merging sets
<sphalerite>
When it comes to several sets having the same key
<gspia_>
joepie91: and after the previous "sshd.servive has finished shutting down"
nwuensche has joined #nixos
<betaboon>
sphalerite: thank you for the answers. on the <CODE> you seem to be right.
nh2 has quit [(Client Quit)]
<betaboon>
sphalerite: on the merging, just decided to change my implementation to not require set-merging
<gspia_>
joepie91: it says "sshd.service has begun starting up"
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gspia_>
joepie91: "systemd[1]: Started SSH Daemon".
<joepie91>
gspia_: can you pastebin the last 50 lines or so of that journalctl output when it has failed?
<gspia_>
joepie91: then "subject ... finished start-up", "defined-by: systemd", then couple of lines "start-up result is done." and after that starts several "systemd[1]: sshd.service" failure-lines
<disasm>
gspia_: yeah, i think if you uncomment ports it will work
<disasm>
cause if you look at your config it has Listen 22 and then ListenAddresses with the port you want
<disasm>
I'm guessing it's crashing because it can't listen to an interface on a port it doesn't have open.
<gspia_>
disasm: ok, I'll try it - btw is nixos-rebuild switch enough (no reboot) when I change sshd-settings?
<gspia_>
disasm: ok
<disasm>
yup
<gspia_>
disasm: here we go -> systemctl time stamps got updated but says it is failing
<gspia_>
disasm: I'll try to start it manually
erictapen has quit [(Ping timeout: 248 seconds)]
hotfuzz_ is now known as hotfuzz
<disasm>
gspia_: add the -d flag as well
<disasm>
gspia_: when you run manually your running as root or with sudo right?
<gspia_>
disasm: "sudo bash" and then as a root
<gspia_>
disasm: "ps ax" shows that sshd is running
MoreTea has joined #nixos
<gspia_>
disasm: three debug1-lines, version line, private host key #0 and #1
Wizek_ has quit [(Ping timeout: 255 seconds)]
Myrl-saki has joined #nixos
<disasm>
ok, ctrl-c, sudo systemctl start sshd
erictapen has joined #nixos
<gspia_>
disasm: the starting line returned -> have to kill the processes first -> and then I'll get out of sudo bash and try that sudo syst.. (2 secs)
<gspia_>
disasm: the sudo systemctl cmd didn't start the sshd
jtojnar has quit [(Ping timeout: 246 seconds)]
goibhniu1 has joined #nixos
peacememories has joined #nixos
goibhniu has quit [(Ping timeout: 248 seconds)]
<domenkozar>
am I going crazy? nixos assertions don't work in nixops
mog has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v7jCi
<NixOS_GitHub>
nixpkgs/master 8d53bfe Franz Pletz: libmspack: fix hash...
NixOS_GitHub has left #nixos []
Wizek_ has joined #nixos
symphorien has joined #nixos
<disasm>
gspia_: but it runs if you run the command output from systemctl cat sshd manually?
<gspia_>
disasm: is it possible to bypass the ssh-attributes at configure.nix and give it the sshd_config directly as a text (e.g. by copying a one that works on my other machine into it)?
<disasm>
gspia_: you still have port 22 in there
<disasm>
you changed the nix config and ran rebuild switch, right?
<gspia_>
disasm: yes
<gspia_>
disasm: but let me try again
<disasm>
did you get any errors during rebuild switch?
<gspia_>
disasm: no errors and the port number from address line vanished (that 33333)
<gspia_>
disasm: i'll try to disable this service, rebuild, then enable and rebuild it
<gspia_>
disasm: 2 secs
<disasm>
can you try without the listen address and just the port and rebuild?
<disasm>
it should be services.openssh.ports = [ 33333 ];
<gspia_>
disasm: yes, 2 secs to that too
<gspia_>
disasm: switch tells about collisions between some png's and R and Rscript but that should not affect sshd?
<disasm>
nope
<gspia_>
disasm: ok, so now there is now sshd-service and in way the system should be clean (systemctl cat sshd -> "No files found for sshd.service.")
<disasm>
did you set services.openssh.enable = false?
<gspia_>
disasm: yes
vandenoever has quit [(Ping timeout: 240 seconds)]
<gspia_>
disasm: and now I started it with "enable = true" but nothing else. "ps ax" -> sshd is running
<gspia_>
disasm: when I cat /nix/store/6b90hc1b2h9n9rw9h95sv50qbdld2xfh-sshd_config
<gspia_>
disasm: there is a line "Port 22" visible
<Turion>
Weird... I just installed cabal, and trying to build a project gives: /usr/bin/ghc-pkg: createProcess: runInteractiveProcess: exec: does not exist
<Turion>
(No such file or directory)
<Turion>
Why is it looking for that path?
magnetophon has quit [(Ping timeout: 255 seconds)]
<gspia_>
disasm: ok (I had to move some other services into the outer curlies), after switch, the sshd is running
<gspia_>
disasm: and sshd_config has a line "Port 33333"
<disasm>
yay :) no idea what the problem was before!
ncl28 has joined #nixos
<disasm>
can you ssh to the server on port 33333 now?
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gspia_>
disasm: locally, yes
<gspia_>
disasm: next I'll try it from my other machine
<disasm>
awesome, you should be good to go then. If you want you can try adding the listenAddresses now if you have multiple nic's and only want it listening on one.
<disasm>
but if you have one nic, there really isn't a point
moredhel1 has joined #nixos
sigmundv_ has quit [(Ping timeout: 240 seconds)]
oever has joined #nixos
reinzelmann has quit [(Ping timeout: 240 seconds)]
<gspia_>
disasm: ah, I may have done it again (remembered wrongly), so this listenaddress means the ip of the machine I'm configuring now
<gchristensen>
disasm: sure are :) should be done soon
JandJim has quit [(Quit: Page closed)]
vandenoever has quit [(Ping timeout: 276 seconds)]
<disasm>
gchristensen: awesome, I'm debating on tackling pill 20 :)
oever is now known as vandenoever
<gchristensen>
disasm: yes absolutely :)
Sonarpulse has joined #nixos
<disasm>
gspia_: listen address is the IP/port combination that the process will bind to
sellout- has quit [(Quit: Leaving.)]
pxc has joined #nixos
<disasm>
gspia_: so for example if you have the IP's 10.40.33.20, 127.0.0.1 and 19.168.35.4 on a machine and you only want to listen on 10.40.33.20 you'd add listen address 10.40.33.20:33333 to the config and then it would only accept connections connecting to that IP/port.
felipedvorak has joined #nixos
<gspia_>
disasm: ok & thanks
<disasm>
gspia_: you could also specify multiple ports, say 22 on 192.168.35.4:22 and 10.40.33.20:33333 with Port 22 and Port 33333 in the config.
<moredhel1>
Hi all, I'm currently experimenting with building docker images using nix and am curious about one aspect of the Dockerfile which doesn't seem to have an equivalent in the Nix files, namely ADD/COPY. I'm looking at the docs specified here: https://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools.
vandenoever has quit [(Ping timeout: 240 seconds)]
TheAppleMan has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
<disasm>
moredhel1: I think that's because it's expected you would put anything you want to use in the container in the nix store
<gspia_>
disasm: just one more thing (if you have still time, you have been most helpful already): just to be sure: I copy the pub-key made in machine A to .ssh/authorized_keys in this machine B and then ssh from A should B doable
<moredhel1>
ah, so I would build a nixpkg of my project, then transform that into an image which I can then import into Docker?
<disasm>
gspia_: you can... recommended way to do it though is users.extraUsers.<username>.openssh.authorizedKeys.keys = [ "your key goes here" ];
<catern>
hey #nixos
<catern>
have we figured out how to hardcode locations of Python modules?
<disasm>
moredhel1: yup!
<gspia_>
disasm: ok, I'll try that one as the .ssh/a..keys didn't seem to work
<gspia_>
disasm: thanks so much this far!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/v7juH
<catern>
we could do that resolution at build time
<dash>
ah, in that sense. No, you can't really fix that
revtintin has joined #nixos
<FRidh>
catern: wrapPythonPrograms inserts paths to site-packages folders in scripts
revtintin has quit [(Client Quit)]
<FRidh>
other than that, its not really possible with a dynamic language like python
pxc has joined #nixos
radvendii has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
revtintin has joined #nixos
thblt has quit [(Ping timeout: 240 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
radvendii has quit [(Ping timeout: 255 seconds)]
rauno has joined #nixos
magnetophon has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
ylwghst has joined #nixos
vandenoever has quit [(Ping timeout: 240 seconds)]
<dash>
fridh: it's possible, you use something like pex/cx_freeze/py2exe to bundle everything together
babic has joined #nixos
<dash>
but that's not a win for nix
ylwghst has quit [(Quit: leaving)]
FRidh has joined #nixos
thblt has joined #nixos
<FRidh>
dash: that creates executables. It won't allow you to import Python code. Nuitka or Cython would be better options then. Furthermore, the idea is not to bundle all modules of different packages into a single store path
<dash>
fridh: nuitka is never a good idea, and cython isn't python :)
<dash>
anyway, I'm saying that's a way to bundle everything together to avoid searching, i'm /not/ saying it's a good idea for nix
<FRidh>
dash: you can import cythonized python code.
<Ankhers>
I think node version reserve odd numbers for test builds or something, don't they?
ladams has joined #nixos
stepcut has quit [(Read error: Connection reset by peer)]
stepcut has joined #nixos
erictapen has joined #nixos
SOO7 has quit [(Ping timeout: 240 seconds)]
<moredhel1>
I'm looking to build a nixpkg from a local directory. In my case, I have a single 'index.js' that needs to be run with node. It's similar to the example in the manual, except instead of a fetchurl I would like to specify a list of files in the cwd. Is this possible? or do I need to upload to a git server before I can build?
erictapen has quit [(Ping timeout: 240 seconds)]
drakonis_ has quit [(Read error: Connection reset by peer)]
SOO7 has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
goibhniu has quit [(Ping timeout: 240 seconds)]
SOO7 has quit [(Excess Flood)]
<kriztw>
moredhel1: you can do src = ./.;
dbmikus has joined #nixos
radvendii has joined #nixos
ylwghst has joined #nixos
<moredhel1>
ah, thanks :)
<moredhel1>
can I pass in a list?
<moredhel1>
such as `src = [./server.js ./node_modules];`
fresheyeball has quit [(Quit: WeeChat 1.9)]
dbmikus has quit [(Client Quit)]
pxc has joined #nixos
kuznero has joined #nixos
<kriztw>
moredhel1: I don't think so, but I haven't tried :P
<kriztw>
moredhel1: if you don't need all the files you can just not copy them in the install stage though
<Filystyn>
cpy the file
<Filystyn>
;-)
<dash>
moredhel: you use `builtins.filterSource`
SOO7 has joined #nixos
<moredhel1>
ah, perfect! thank you :)
Jake_Smith has joined #nixos
<sphalerite>
@moredhel:m.aoeu.me: there's also lib.cleanSource in nixpkgs which will filter out commonly unwanted stuff
<moredhel1>
ah, is that a wrapper around the above? I'm currently trying to find docs on filterSource to see how I can call it
dbmikus has joined #nixos
Infinisil has joined #nixos
phdoerfler has joined #nixos
<moredhel1>
actually, cleanSourceFilter is a good example
Infinisil has quit [(Client Quit)]
<kuznero>
Does anybody have any success installing NVidia drivers on NixOS by any chance?
endformationage has joined #nixos
stepcut_ has joined #nixos
stepcut has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #28373: stdenvs: Distinguish between `extraBuildInputs` and `extraNativeBuildInputs` (staging...stdenv-extra-inputs) https://git.io/v7jyD
ladams has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Unode has quit [(Read error: Connection reset by peer)]
SOO7 has quit [(Ping timeout: 255 seconds)]
Unode has joined #nixos
sellout- has quit [(Quit: Leaving.)]
<kuznero>
I was trying to see if it is possible to use my GPU with NixOS :) if I will get some games working - nice :)
<kuznero>
Any success stories on that?
freusque has quit [(Quit: WeeChat 1.7.1)]
<ylwghst>
how to flush dns cache?
k2s has joined #nixos
ladams has joined #nixos
radvendii has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #28374: binutils: Pass --build --host on non-arm (staging...binutils-arm) https://git.io/v7j9B
NixOS_GitHub has left #nixos []
<disasm>
kuznero: I believe your looking for services.xserver.videoDrivers = [ "nvidia" ];
<disasm>
although depending on how old your card is, you may need one of the legacy drivers
<disasm>
kuznero: you'll also need nixpkgs.config.allowUnfree = true;
<disasm>
and hardware.opengl.driSupport32Bit = true;
<ylwghst>
kuznero: which nvidia card?
cpennington has quit [(Ping timeout: 248 seconds)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
python476 has joined #nixos
<kuznero>
ylwghst: disasm: I have trouble trying to figure out the exact model. Do you know how is it possible without having drivers installed? Tried lshw and lspci....
<kuznero>
It is one of the cards using NVidia Optimus technology. I am using Lenovo Y50-70///
<octalsrc[m]>
Can `nix-env` perform a package's setup hooks?
<gchristensen>
nix doesn't have setup hooks
<kuznero>
disasm: this is what I see: "00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)"
<kuznero>
can it be that I need to turn it on in bios first?
<disasm>
you don't see a 2nd VGA?
<kuznero>
nope, just a single one.
<octalsrc[m]>
gchristensen: I mean things that go in `$out/nix-support/setup-hook`
takle has quit [(Remote host closed the connection)]
<kuznero>
disasm: is that ok I restart - have a feeling I need to enable it in bios first...?
<disasm>
possibly
<gchristensen>
octalsrc[m]: nix-support/setup-hook is for when building packages depending on your package, not general usage
kuznero has quit [(Quit: leaving)]
<octalsrc[m]>
Okay, that was my question; I expected that `nix-env` would evaluate it as well
<gchristensen>
octalsrc[m]: (in short, no)
<octalsrc[m]>
:(
cpennington has joined #nixos
Turion has quit [(Remote host closed the connection)]
takle has joined #nixos
k2s has quit [(Quit: Leaving)]
<gchristensen>
octalsrc[m]: what are you trying to do?
Ivanych has joined #nixos
<octalsrc[m]>
I'm trying to export a variable pointing to a library path, that would be visible to anything running in your environment
<ylwghst>
kuznero: enable it in bios and send us gist of lspci
<gchristensen>
octalsrc[m]: that sounds like the answer to "how are you trying to do it?" whereas I'd specifically curious in what you're trying to accomplish
kuznero has joined #nixos
<octalsrc[m]>
AH
<kuznero>
disasm: It is "3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)"
<octalsrc[m]>
We're trying to use Intellij for developing on a project
<octalsrc[m]>
And it needs to load jars from a system installed dir
<gchristensen>
oohh yikes and/or ouch :( I don't know how to help :/ trying to work with java stuff always makes my brain hurt :/
<octalsrc[m]>
ghchristensen: The best way we've come up with is the put the hard-links to the nix store into Intellij's runtime config
<octalsrc[m]>
so maybe that could be automated in some way
kuznero_ has joined #nixos
tokudan has joined #nixos
<earldouglas>
How do I specify the channel to use for a NixOps deployment? I could swear I used to know this...
kuznero has quit [(Remote host closed the connection)]
kuznero_ has quit [(Remote host closed the connection)]
kuznero has joined #nixos
ebzzry_ has quit [(Ping timeout: 240 seconds)]
hlavaty has quit [(Remote host closed the connection)]
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<kuznero>
disasm: thanks for links... trying "intel nvidia" driver now...
<octalsrc[m]>
@earldouglas I'm not sure how to work with `nix-channel`-installed channels, but you can choose a specific nixpkgs tree that you've git-cloned with `nixops ... -I nixpkgs=/path/to/your/particular/nixpkgs`
takle has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
sary has quit [(Remote host closed the connection)]
<makefu>
not tried it but they have a 100gig free sale right now
kuznero has joined #nixos
Infinisil has joined #nixos
<ylwghst>
makefu: only osx/win
<kuznero>
disasm: it worked! Thanks! There is only one issue now - it seems that it now know only one screen resolution with right formfactor - maximum. All smaller resolutions are old-school factor for some reason. On 4K monitor on Xfce it all looks pretty weird :)
<disasm>
kuznero: yeah, not sure what others do, but I use full res all the time and then scale. That's why my i3 runs in a gnome shell.
<ylwghst>
btw. to that own i should say im thinking of it a long time but i do not have time to take care of my own server but its the best idea id rather has own then store my own files somewhere in "dropbox or any other inc.
<ylwghst>
have own cloud*
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/v7jN7
<NixOS_GitHub>
nixpkgs/staging 0a4d102 John Ericson: gcc 5: Don't quote `propagatedBuildInputs` in ?-check for consistency...
NixOS_GitHub has left #nixos []
magnetophon has joined #nixos
SOO7 has quit [(Ping timeout: 240 seconds)]
DutchWolfie has joined #nixos
ison111 has joined #nixos
hellrazor has joined #nixos
<pxc>
I upgraded to the 17.09 pre-release of NixOS (just the unstable channel) yesterday and so far there are no issues except for one ( https://github.com/NixOS/nixpkgs/issues/27050 )
<pxc>
so thanks, everyone! :-D
michaelpj has quit [(Ping timeout: 264 seconds)]
bfrog has quit [(Ping timeout: 255 seconds)]
revtintin has quit [(Quit: WeeChat 1.9)]
katyucha has joined #nixos
Sonarpulse has quit [(Ping timeout: 240 seconds)]
michaelpj has joined #nixos
rauno has quit [(Quit: Lost terminal)]
<betaboon>
is there a builtin function like containsSubString ?
Filystyn has quit [(Quit: Konversation terminated!)]
Sonarpulse has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
FRidh has joined #nixos
hanslo-Wesson has joined #nixos
Sonarpulse has quit [(Ping timeout: 240 seconds)]
hanslo-W has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Remote host closed the connection)]
MoreTea has quit [(Remote host closed the connection)]
michaelpj has quit [(Ping timeout: 248 seconds)]
Sonarpulse has joined #nixos
eacameron has joined #nixos
jbaum98 has joined #nixos
justbeingglad has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #28375: perl-ExtUtils-LibBuilder: Use the C compiler to link (master...perl-ld-cc) https://git.io/v5eJs
NixOS_GitHub has left #nixos []
nh2 has quit [(Read error: Connection reset by peer)]
<the-kenny>
betaboon: nix-repl has tab-completion :)
rpifan has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<gchristensen>
" Return the substring of s from character position start (zero-based) up to but not including start + len. If start is greater than the length of the string, an empty string is returned, and if start + len lies beyond the end of the string, only the substring up to the end of the string is returned. start must be non-negative." though
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v5eIE
<NixOS_GitHub>
nixpkgs/master 7209ed6 Tim Steinbach: linux-copperhead: 4.12.7.a -> 4.12.8.a
NixOS_GitHub has left #nixos []
mounty has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
hellrazor has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
bennofs1 has joined #nixos
<betaboon>
Ankhers: thanks. i will report back if it works
bennofs has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
cpennington has quit [(Read error: Connection reset by peer)]
cpennington has joined #nixos
<betaboon>
Ankhers: seems to work
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ma27 opened pull request #28378: programs.zsh: move evlauation of `${zshAliases}` after `cfg.interactiveShellInit` (master...fix-zshrc-eval-order) https://git.io/v5eLz
NixOS_GitHub has left #nixos []
ona has joined #nixos
DutchWolfie has quit [(Quit: Konversation terminated!)]
Ivanych has joined #nixos
stepcut has joined #nixos
stepcut_ has quit [(Ping timeout: 248 seconds)]
stepcut__ has joined #nixos
<sziszi>
hey, anyone experiencing problems with avrgcclibc derivation? I'm on unstable channel, and I can't compile the toolchain
stepcut has quit [(Ping timeout: 248 seconds)]
<sziszi>
it gave me an error: "configure: error: Wrong assembler found; check the PATH!" I found mentioning this on github, tried that but didnt work (or i'm a dumbass) https://github.com/NixOS/nixpkgs/issues/28220
<LnL>
Sonarpulse: ^ I think documenting it in the manual like you mentioned is probably a good idea :)
<Sonarpulse>
LnL: ok :)
<Sonarpulse>
there should be stuff on cc-wrapper in general
<Sonarpulse>
will write while my big build goes
nh2 has quit [(Quit: Leaving.)]
<LnL>
yeah, that would be nice
stepcut__ has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<LnL>
oh wow, I thought there was atleast something in there about NIX_CFLAGS_COMPILE and such
gnuhurd has quit [(Remote host closed the connection)]
justanotheruser has quit [(Ping timeout: 240 seconds)]
ShalokShalom has quit [(Remote host closed the connection)]
Ankhers has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
bpa has joined #nixos
Ankhers has joined #nixos
<jasom>
what do I add to buildinputs for a package that will link with libegl.so? It looks like that's handled differently from other libraries; do I just add mesa to buildInputs or do something else?
<simpson>
jasom: Practically, I'd just add mesa and see if that makes it happy. There are other EGL providers, but I don't know if we support many of them in nixpkgs. Maybe there's something specific if you need Darwin support?
<jasom>
reading the nix expression for mesa, it looks like depending on mesa is sufficient because mesa is patched to look in /run
<jasom>
so if another EGL provider were installed, it would get found
<simpson>
Ah, yeah, that might be needed for nVidia to work right.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 2 new commits to master: https://git.io/v5eY1
<NixOS_GitHub>
nixpkgs/master 2bbd1d8 John Ericson: perl-ExtUtils-LibBuilder: Use the C compiler to link
<NixOS_GitHub>
nixpkgs/master d8b02ef John Wiegley: Merge pull request #28375 from obsidiansystems/perl-ld-cc...
NixOS_GitHub has left #nixos []
<jasom>
I'm actually excited that this project is working. I had it about 90% done six months ago but life happened. I had forgotten about it until someone asked me, and things are proceeding at a good pace now.
eacameron has quit [(Remote host closed the connection)]
<thoughtpolice>
makeFlagsArray passes the flags to all Make invocations. buildFlagsArray only does it when buildHook is run, i.e. when it's compiled, but not when you run, say, 'make install'
sary has joined #nixos
eacameron has joined #nixos
construct has joined #nixos
ison111 has quit [(Ping timeout: 240 seconds)]
<mg>
thoughtpolice: thanks!
takle has quit [(Ping timeout: 240 seconds)]
<construct>
Hi, I was on here a couple days ago. I mentioned I was on alpine-linux. Well now I'm on NixOS :D . How big should my boot partition be? I've never had to partition a hard drive before except in and A+ certification class, so googled it and to make sure I had enough space, I followed the highest suggestion I could find: 16 GB. Once I booted up, I could see I outdid it. So how big should the boot partition really be?
<ylwghst>
construct: its totally up to you
<ylwghst>
depends how you will use the system and how much data you will store on it in future
<construct>
ylwghst: but isn't 16 GB way too much?
<ylwghst>
Ankhers: sry Im going sleep
<ylwghst>
construct: not at all
<Wizek>
is anyone working on making stack lts resolver version-sets of haskell packages available through nix? e.g. something this could be nice: `nix-shell -p "haskell.packages.stack.lts-7.19.ghcWithPackages (p: with p; [(haskell.lib.dontCheck compose-ltr) uncertain lens diagrams])" --run ghci`
<construct>
ylwghst: Okay thanks, then I won't resize it.
<ylwghst>
construct: i have started testing nixos with 32gb
<construct>
Another question, my KDE flickers when I log in, and after I unlock my screen parts of windows only appear after I hover my mouse over them. What should I do?
bfrog has joined #nixos
<ylwghst>
construct: 8gb swap 700mb /boot and root 23,3Ggb
<construct>
ylwghst: wow, what kind of files or programs go in the boot directory, so I'll know when to check gparted to see if I need to make it bigger?
<ylwghst>
construct: nope it could less about 200mbs will be ok
<ylwghst>
could be*
Ivanych has quit [(Ping timeout: 248 seconds)]
<ylwghst>
gn
<construct>
ylwghst: ok, does installing packages increases the size of the size of the boot folder? What increases the size? I need to know when I might need to resize the boot partition to make it bigger.
sary has quit [(Ping timeout: 248 seconds)]
m0rphism has joined #nixos
<construct>
ylwghst: can I shrink the boot partition to how big it is now, or should I leave how many extra MB for new nixos-rebuilds?
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #28381: doc: Describe CC Wrapper in more detail (master...cc-wrapper-docs) https://git.io/v5eBP
<simpson>
hodapp: Have that nix-shell activated while collecting garbage.
<mbrgm>
humm... seems like the nix-dev list is offline...
<mbrgm>
has someone pulled an archive download before?
<dash>
hodapp: alternately, use nix-build on the expr so it gets set as a root
<hodapp>
dash: if it's something I need to interact with at the shell, I'm not sure how I'd be able to do that via nix-build
hiratara has joined #nixos
<mbrgm>
ahh, it moved to nixos.org/nix-dev. great :)
hamishmack has joined #nixos
eacameron has quit [(Remote host closed the connection)]
phdoerfler has joined #nixos
phdoerfler has quit [(Client Quit)]
phdoerfler has joined #nixos
Sonarpulse has quit [(Ping timeout: 276 seconds)]
hanslo-Wesson has quit [(Ping timeout: 255 seconds)]
eacamero_ has joined #nixos
taktoa has joined #nixos
phdoerfler has quit [(Ping timeout: 240 seconds)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
nevermin_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
thblt has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
sary has joined #nixos
bkchr has joined #nixos
rpifan has quit [(Read error: Connection reset by peer)]
rpifan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] alunduil opened pull request #28383: remove collection-json from dont-distribute-packages (master...remove-collection-json-from-dont-distribute) https://git.io/v5ezk
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
takle has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] chaseadamsio opened pull request #1527: update MD5 to SHA-256 in expression-syntax (master...master) https://git.io/v5ez6
NixOS_GitHub has left #nixos []
tokudan has quit [(Quit: Leaving)]
takle has quit [(Ping timeout: 240 seconds)]
bkchr has quit [(Ping timeout: 240 seconds)]
rpifan has quit [(Read error: Connection reset by peer)]
rpifan has joined #nixos
eacameron has quit [(Remote host closed the connection)]
bennofs1 has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
radvendii has joined #nixos
sellout- has joined #nixos
pxc has joined #nixos
rpifan has quit [(Read error: Connection reset by peer)]
eacameron has quit [(Remote host closed the connection)]
erictapen has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
erasmas has quit [(Quit: leaving)]
ison111 has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
digitus has quit [(Quit: digitus)]
radvendii has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 248 seconds)]
<sphalerite>
construct: the only thing that will really be kept there is kernels and corresponding initrds
<sphalerite>
construct: so what will use up space there is upgrading the kernel — but only if you keep the old generations around
radvendii has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
<sphalerite>
iirc a kernel+initrd will usually be less than 100MB so if you have 2GB for the partition and don't share it with another OS you can keep 20 generations with older kernels around, which is probably quite a few months' worth
ryantm has joined #nixos
<ryantm>
Who is in charge of or capable of backporting to 17.03 ?
<sphalerite>
Depending on how much history you want to keep for rolling back to, 500 or even 200M could be enough
<clever>
-rw-r--r-- 1 root root 3.5M Aug 10 23:16 kzb60ynf7zvq543hf2l1rpnnhp4gr8sa-linux-4.9.39-bzImage
<clever>
-rw-r--r-- 1 root root 8.7M Aug 10 23:16 flrij28yp0l94afy1mfmsj07py8w9500-initrd-initrd
<clever>
on my machine, they come in at ~12mb for the pair
eacameron has joined #nixos
<sphalerite>
ryantm: everyone with commit access to nixpkgs can