<pxc>
Infinisil: reinitialized my shell, lollllllll
<pxc>
what I don't get is why I haven't hit this earlier
<Infinisil>
lol, well
JagaJaga has quit [(Quit: WeeChat 1.7.1)]
<Infinisil>
A diff of the shell env would've been nice to see
mudri has quit [(Ping timeout: 240 seconds)]
admin123 has joined #nixos
<admin123>
Hi guys, NixOS seems cool but I can't install it on VirtualBox on UEFI, I'm trying now with BIOS
<admin123>
Anyone could install it on VirtualBox?
<pxc>
Infinisil: it was just one variable: NIX_SSL_CERT_FILE
<admin123>
right now NixOS manual says to do "mount /dev/disk/by-label/nixos /mnt" but there is nixos1, nios2, 3, 4 and NIXOS_ISO
justanotheruser has joined #nixos
Troupal has quit [(Ping timeout: 255 seconds)]
<pxc>
admin123: you're responsible for creating the partition and labeling it 'nixos'
<admin123>
will go with nixos 4, but really I dont know
kalebo1 has quit [(Quit: WeeChat 1.0.1)]
<admin123>
pxc: will do
<pxc>
admin123: what I'm saying is you need to make a partition, in gdisk or gparted if you're doing UEFI, then create the filesystem on it with the appropriate label, e.g., `mkfs.ext4 -L nixos /dev/sda2` or whatever
<pxc>
ah, you got it :-)
_ris has quit [(Ping timeout: 255 seconds)]
joehh has joined #nixos
thc202 has quit [(Ping timeout: 255 seconds)]
<simpson>
Just tried to run a JAR and the fonts were hideous. Is there a trick to it?
<Infinisil>
And if that doesn't work and you still get the error that ipykernel isn't there, you should add a package override for notebook and add ipykernel to propagatedBuildInputs (which will be put into $PYTHONPATH then, probably)
<Infinisil>
Or better yet, fix the package upstream
pxc has quit [(Ping timeout: 240 seconds)]
<Infinisil>
ipykernel does seem to be in propagatedBuildInputs for notebook already in master though. Not sure which version you're using
alphor has quit [(Quit: Bye!)]
sellout- has joined #nixos
<andy__>
hmm
mkoenig has quit [(Ping timeout: 240 seconds)]
alphor has joined #nixos
<andy__>
ok that didn't help, but you're saying that notebook should include the ipykernel?
<Infinisil>
andy__: I mean, according to that config, it seems to be a dependency of it, right? If so then yes, notebook should include that
jellowj has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
<andy__>
ok i see what you're saying and i now see it in the propagatedBuildInputs. I didn't think to look there
Radivarig_ has quit [(Remote host closed the connection)]
Radivarig has quit [(Remote host closed the connection)]
Radivarig has joined #nixos
Radivarig_ has joined #nixos
MarcelineVQ has quit [(Ping timeout: 248 seconds)]
MarcelineVQ has joined #nixos
sellout- has joined #nixos
mpcsh has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Moredread opened pull request #29343: Better example path for fileSystems.*.encrypted.keyFile (master...fix/encrypted-devices-example) https://git.io/v593d
NixOS_GitHub has left #nixos []
Wharncliffe has quit [(Quit: Lost terminal)]
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Moredread opened pull request #29344: Fix issue where boot fails when all encrypted fs have keyfiles config… (master...fix/fileystem-encrypted-keyfile-missing-initrd-support) https://git.io/v59sf
Wizek has quit [(Quit: Connection closed for inactivity)]
<fearlessKim[m]>
I've some trouble connecting to a vpn service using networkmanager (over l2tp). can't find NetworkManager.log. Where am I supposed to look at ? is there any good tutorial for that ?
proteusguy has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
<Moredread>
wow, that was a lot of work, for a small fix XD
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
stepcut has quit [(Ping timeout: 240 seconds)]
jsgrant_ has quit [(Remote host closed the connection)]
jsgrant_ has joined #nixos
Jacoby6000h has joined #nixos
<Jacoby6000h>
Anybody here had issues with neovim not picking up installed python packages?
drakonis has quit [(Read error: Connection reset by peer)]
orivej has quit [(Ping timeout: 264 seconds)]
LnL has quit [(Ping timeout: 246 seconds)]
kiloreux_ has joined #nixos
odi has joined #nixos
<fearlessKim[m]>
Jacoby6000h: initially I installed them systemwide which worked great but I am not sore sure it's the solution now
<Jacoby6000h>
I tried to install my packages via "pyhton27.withPackage(ps: with ps; [ ... ])" in my system packages inside of /etc/nixos/config.nix
<Jacoby6000h>
neovim still can't detect them for some reason :/
<Jacoby6000h>
They're definitely installed though.. it's just like, sys.path inside python doesn't have the package paths.
dibblego[m] has quit [(Ping timeout: 276 seconds)]
maralorn[m] has quit [(Ping timeout: 276 seconds)]
Geeky[m] has quit [(Ping timeout: 276 seconds)]
WinterFox[m] has quit [(Ping timeout: 276 seconds)]
Dezgeg has quit [(Ping timeout: 276 seconds)]
Dezgeg has joined #nixos
maralorn[m] has joined #nixos
Geeky[m] has joined #nixos
dibblego[m] has joined #nixos
WinterFox[m] has joined #nixos
<disasm>
Jacoby6000h: yeah, I think that's my problem. youcompleteme has been broken since I switched to unstable.
<Jacoby6000h>
I don't think I'm on unstable.. I recently started trying nixos, and just used what was advertised on the nixos site
<Jacoby6000h>
hyper_ch: I just dedicated 3 weeks to being about 1/4th as productive as normal, and now i spend most of my time being at least 50% more productive (when writing code anyway)
MarcelineVQ has quit [(Ping timeout: 240 seconds)]
<disasm>
hyper_ch: neovim is a fork of vim that uses msgpack API so plugins run as co-processes that communicate with neovim safely and asynchronously. or in other words, aren't slow as molasses.
<hyper_ch>
Jacoby6000h: my actual job is not really computer related :)
<hyper_ch>
disasm: could you translate this to standard english? :)
DavidEGrayson has joined #nixos
<disasm>
hyper_ch: it makes things fast :)
<hyper_ch>
see, wasn't that complicated :)
<rotaerk>
My main issue with vim key controls is having to hit escape so much. That key is too far away for it's frequency of use
<srhb>
I think there's a compromise
MarcelineVQ has joined #nixos
<srhb>
hyper_ch: Other programs can run alongside Neovim to provide extra functionality inside Neovim
<Jacoby6000h>
disasm: i think your suyggestion work! lots of new words on the screen (seems to be rebuilding with python support)
<hyper_ch>
rotaerk: you can remap keyboards
<Jacoby6000h>
wow I fat fingered that.
<fearlessKim[m]>
rotaerk: swap caps lock and escape
<srhb>
fearlessKim[m]: Butbut control
<rotaerk>
My caps is swapped with ctrl
<srhb>
ctrl ctrl + ] is ESC
<srhb>
er
<srhb>
ctrl + ] is esc
<srhb>
And control is more useful than escape, I feel
<rotaerk>
Ah
<disasm>
rotaerk: I did that for a while at one point... got tired of the caps lock light toggling on off all the time though.
hamishmack has quit [(Quit: hamishmack)]
<srhb>
(But I have a chord-like thing provide a means to escape by pressing j and k at the same time in insert mode)
<fearlessKim[m]>
you can do Ctrl C to mimic escape most of the time
hamishmack has joined #nixos
<Jacoby6000h>
I've got a 61 key keyboard, so capslock as escape is nice.
<srhb>
Jacoby6000h: O_o
<disasm>
ooh, capslock as escape, that's genius :)
<rotaerk>
My caps lock light is toggled by the logical caps, not physical
<disasm>
back in the day when caps lock was a light at the top of the keyboard instead of embedded in the key itself...
<rotaerk>
I don't think I've ever seen a keyboard with it embedded into the key itself
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to release-17.03: https://git.io/v59cF
<NixOS_GitHub>
nixpkgs/release-17.03 446f185 John Ericson: darwin-stdenv, cc-wrapper: Fix eval on darwin...
NixOS_GitHub has left #nixos []
<disasm>
Jacoby6000h: that looks better... what's it doing now?
<Jacoby6000h>
Same error as before. Whenever I run a rebuild, I see neovim being rebuilt with python support though.
MercurialAlchemi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29349: treewide: Do not limit hardenging because gcc 4.9 in bootstrap (staging...harden-bootstrap) https://git.io/v59CR
NixOS_GitHub has left #nixos []
reinzelmann has joined #nixos
<disasm>
Jacoby6000h: if you run nvim-python and print sys.path, do you see your python modules in the path?
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<Jacoby6000h>
disasm: doesn't look like it.
<disasm>
Jacoby6000h: so... haven't used these python modules before... what should I expect when I open neovim?
<Jacoby6000h>
disasm: I only have them installed because a plugin I use uses them :p
<disasm>
what plugin is that?
<Jacoby6000h>
ensime
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<disasm>
Jacoby6000h: I think I'd suggest just putting your entire vim config in nix :)
eacameron has quit [(Ping timeout: 246 seconds)]
<Jacoby6000h>
I've been thinking about it... I just don't want to because I have systems that aren't on nix, and I have a vimrc repo which I just clone and symlink when I get on a new system.. If I shove it all in .nix files I lose that ability :/
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v598O
<NixOS_GitHub>
nixpkgs/master addfb83 Peter Hoeg: neomutt: 20170907 -> 20170912
NixOS_GitHub has left #nixos []
kiloreux__ has joined #nixos
kiloreux_ has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<fearlessKim[m]>
Jacoby6000h: do you plan to send that email ? Actually I develop a neovim python which relies on external python libraries and I am not sure how to do it. I like vim-plug and use many plugins so not too keen on handling the whole neovim config to nixos
<Jacoby6000h>
fearlessKim[m]: I was actually digging in to the neovim nix package to see if I could figure out what the deal was.
<Jacoby6000h>
Can't figure it out though :/
<fearlessKim[m]>
same
eacameron has quit [(Ping timeout: 252 seconds)]
<Jacoby6000h>
I assume there's an __init__.py somewhere that isn't getting the modules added, because I don't see anything about pythonpath anywhere.
<fearlessKim[m]>
Jacoby6000h: there seems to be a extraPython3Packages that can be used to add libraries to the env without specifying in nix the plugin themselves
<fearlessKim[m]>
if you remove all the neovim python plugins from the system else it can choke on import I believe
eacameron has joined #nixos
<sphalerite>
hyper_ch: was just looking at your configuration.nix you posted earlier, just a suggestion — if you use androidenv.platformTools rather than androidsdk you get adb without several gigs of android SDK, in case you don't need the full SDK
<makefu>
hyper_ch: it's something! :D unfortunately this can mean anything. you may need to create a fhsUserEnv for this package
* hyper_ch
requests translation from tech to proper english :)
__Sander__ has joined #nixos
eacameron has joined #nixos
<makefu>
hyper_ch: your tool is super dependent on how a "normal" linux looks like (/usr /bin , whatever). sometimes it is necessary to re-create this structure by preparing an environment just like this
<makefu>
in nixos this is called FHS environment. the basic idea is to copy everything at the correct place and then do a chroot
<makefu>
this for example is being done for the steam environment, because a lot of games just expect libraries are somewhere special
<hyper_ch>
that sounds like a lot of work
<hyper_ch>
it's not "my" tool :)
<makefu>
in nixos this is actually quite easy
<makefu>
you can check out https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
athan has joined #nixos
<makefu>
for certain proprietary packages it is a must-do unfortunately
<makefu>
if you do not want to set up an fhsuserenv, you could try to trace the segfault with strace. but this might be even more work
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler opened pull request #29360: ws4py: add git to checkInputs (master...ws4py) https://git.io/v592Z
NixOS_GitHub has left #nixos []
eacameron has quit [(Ping timeout: 248 seconds)]
Boomerang has joined #nixos
<disasm>
FRidh: for mwlib, it's already it's own pyparsing library... could I do the same thing for odfpy in the module? Or should it just be marked as broken?
mudri has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
lhart has joined #nixos
<hyper_ch>
makefu: or I could give up :9
<makefu>
hyper_ch: what is the current state with your segfault?
<makefu>
i will have a quick look
<hyper_ch>
it's just segfault
<hyper_ch>
no idea what you mean with current state
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/v59ra
<NixOS_GitHub>
nixpkgs/master f49b7d3 Domen Kožar: vm: remove trusty-updates hash as it changes too often
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to release-17.09: https://git.io/v59rw
<NixOS_GitHub>
nixpkgs/release-17.09 71fb657 Domen Kožar: vm: remove trusty-updates hash as it changes too often...
NixOS_GitHub has left #nixos []
<makefu>
hyper_ch: okay i've got it running (by hand right now) by setting the rpath to qtbase,qtsvg and gcc
<hyper_ch>
cool :)
<hyper_ch>
I nominate makefu for being masterpdfeditr maintainer on nixos :)
* hyper_ch
hides
<makefu>
!
<hyper_ch>
how did you set the paths by hand? got a new .nix?
<FRidh>
disasm: thanks for your effort on fixing these python packages. Unfortunately, we can't have multiple versions of packages as they may cause collisions
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 2 new commits to master: https://git.io/v59K4
<NixOS_GitHub>
nixpkgs/master d35e443 Robert Helgesson: cloc: 1.72 -> 1.74
<NixOS_GitHub>
nixpkgs/master a3a8887 Robert Helgesson: cloc: add myself as maintainer
<NixOS_GitHub>
[nixpkgs] qknight opened pull request #29365: opendkim: automated key generation (no manual changes for service ini… (master...master_mailserver_PRs-opendkim) https://git.io/v5966
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 2 new commits to master: https://git.io/v596A
<NixOS_GitHub>
nixpkgs/master fd4d957 Robert Helgesson: josm: 12545 -> 12712
<NixOS_GitHub>
nixpkgs/master 2a36c6c Robert Helgesson: josm: minor cleanups...
NixOS_GitHub has left #nixos []
LnL has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Neo-- has quit [(Ping timeout: 260 seconds)]
richerVE has joined #nixos
eacameron has joined #nixos
LnL has joined #nixos
Viaken2 has joined #nixos
LnL is now known as Guest59834
<Viaken2>
Why doesn't `nix-shell -p python36Packages.virtualenv` put virtualenv in my path?
pie_ has quit [(Ping timeout: 240 seconds)]
<richerVE>
Hi everyone. I want to add nix packages for Mongodb 3.4 and soon 3.6 and maintain support for 3.2, what will be the best approach to add multiple versions? As apache that has 2.4.nix, for example?
<Viaken2>
Never mind. direnv was breaking my .bashrc
eacameron has quit [(Ping timeout: 240 seconds)]
bkchr has quit [(Ping timeout: 246 seconds)]
<richerVE>
Viaken2: you can use nix with direnv also, is included in stdlib "use nix"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v59ih
<NixOS_GitHub>
nixpkgs/master 68764d5 Peter Hoeg: mtr: 0.87 -> 0.92
NixOS_GitHub has left #nixos []
Wizek has quit [(Quit: Connection closed for inactivity)]
<Viaken2>
richerVE: I need to spend some time with that, but it'd be yak shaving right now.
<richerVE>
what it does is basically calling nix-shell but automatically on entering the directory. You can even pass custom arguments as you do with nix-shell
eacameron has joined #nixos
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/v59PD
<NixOS_GitHub>
nixpkgs/master 94dc132 Jörg Thalheim: perlPackages.HTTPDAV: init at 0.44
<NixOS_GitHub>
nixpkgs/master 9b96068 Jörg Thalheim: perlPackages.ProtocolHTTP2: init at 1.08
NixOS_GitHub has left #nixos []
justbeingglad has joined #nixos
justbeingglad has left #nixos []
eacameron has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] qknight opened pull request #29366: nixcloud.email: a simple yet powerful abstraction for a basic mailser… (master...master_mailserver_PRs-nixcloud.email) https://git.io/v59Xv
<guillaum1>
Hi. There is something which is still unclear for me. Which channel is used by default when I install nix on any computer? On nixos? Can I have a nixos computer using nixos-stable AND, in the user session, the same channel as the one used by nix users on any other distribution?
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v59Mt
<NixOS_GitHub>
nixpkgs/master e477fa9 Jörg Thalheim: vimPlugins.vim-devicons: init at 2017-05-29
<NixOS_GitHub>
nixpkgs/master 5c544b8 Jörg Thalheim: vimPlugins.nvim-completion-manager: init at 2017-09-05
NixOS_GitHub has left #nixos []
<guillaum1>
woffs: thank you
zraexy has quit [(Ping timeout: 248 seconds)]
<phdoerfler>
stupid newb question: What's the yum update or apt-get upgrade in nixos? Does nixos-rebuild switch upgrade suffice?
<phdoerfler>
or whatever the exact syntax of that command is
<makefu>
hyper_ch: i was at lunch :)
<hyper_ch>
makefu: :)
nix-gsc-io`bot has joined #nixos
<Viaken2>
phdoerfler: `nixos-rebuild switch` suffices as `apt-get upgrade`. `nix-channel --update` is your `apt-get update`. Make sure you're running those as root, as the user channel is different, as guillaum1 just found.
<phdoerfler>
Viaken2: I am just used to have at least one package updated each day coming from other distros, that's all.
<phdoerfler>
Viaken2: Also I am extra paranoid since I got a VPS running in the interwebs with nixos and I really want that machine to have no security loopholes
<Viaken2>
NixOS is fairly "stable" as far as package updates go. They only make security updates once a release is made.
Boomerang has quit [(Quit: Lost terminal)]
<Viaken2>
If/when you upgrade to 17.09 (once it drops), you'd see a lot more.
<phdoerfler>
is 17.09 not out yet?
<Viaken2>
Not that I've seen.
jellowj has quit [(Ping timeout: 240 seconds)]
<Viaken2>
The news feed from nixos.org and the download page still list 17.03.
<Viaken2>
phdoerfler: If you want newer packages than release, you can use nixpkgs-unstable as your user channel.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v59yx
<NixOS_GitHub>
nixpkgs/master d29a8f2 Peter Hoeg: pdf2odt: 20141217 -> 20170207
NixOS_GitHub has left #nixos []
<Viaken2>
Or go whole hog and use nixos-unstable
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v59Se
<NixOS_GitHub>
nixpkgs/master 4b78d44 Peter Hoeg: mtr nixos module: wrap the proper binary
NixOS_GitHub has left #nixos []
<makefu>
hyper_ch: and this is how you would put it to upstream: http://paste.krebsco.de/Gqh7XQ94/+inline , build via nix-build -E '((import <nixpkgs> {}).callPackage (import ./default.nix) { })' --keep-failed --no-out-link
<hyper_ch>
wow
<hyper_ch>
error: attempt to call something which is not a function but a set, at /nix/store/ysdsqg6kchxgq1ajr5nss1zm58abhyyh-nixos-18.03pre115166.1b1fc65505/nixos/lib/customisation.nix:74:12
<phdoerfler>
Viaken2: thank you :) It's all clear now
<hyper_ch>
makefu: I have no idea what that second ist you just posted
<makefu>
hyper_ch: if you want to put the package into upstream (nixpkgs) then it will be called via callPackage instead of the import <nixpkgs> {}
nh2 has joined #nixos
<hyper_ch>
makefu: btw, the maintainer is wrong ;)
<makefu>
everybody has to start somewhere
<hyper_ch>
I don't feel comfortable standing out so much in public ;)
<hyper_ch>
my profession requires discretion
<makefu>
i found out! who else but a document forger requires a pdf editing tool
<woffs>
upgrading via nix-rebuild switch --upgrade seems the most consistent way to me, because it is based on the attributes in environment.systemPackages, contraty to nix-env -u, where you would update firefox-esr to firefox without wanting it.
<hyper_ch>
makefu: you haven't seen my other tools :)
<hyper_ch>
I need it to remove confidential information when required
<makefu>
cosmic top secret!
<hyper_ch>
I need them because I prefer to work with digial documents and also submit things electronically to courts etc
<hyper_ch>
makefu: ok, the .nix worked without problems
Neo-- has joined #nixos
<hyper_ch>
IT WORKS!!!
<makefu>
i tried to save a pdf, this also worked
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v599f
<NixOS_GitHub>
nixpkgs/master 3f5f208 Samuel Leathers: ws4py: add git to checkInputs
<NixOS_GitHub>
nixpkgs/master aff5ef6 Frederik Rietdijk: Merge pull request #29360 from disassembler/ws4py...
NixOS_GitHub has left #nixos []
<makefu>
i also updated the FAQ in the wiki with the new way to set the interpreter
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/v599t
<NixOS_GitHub>
nixpkgs/release-17.09 c6eb5fb Samuel Leathers: ws4py: add git to checkInputs...
NixOS_GitHub has left #nixos []
<hyper_ch>
makefu: you're awesome
<hyper_ch>
how did you figure out that sane was missing?
<hyper_ch>
and that you just need qtbase and qtsvg?
<hyper_ch>
and why do you use 2-space indents instead of the normal 4-space indents ;) /me hides
<hyper_ch>
back, when I was young, I also used 2-space indents.. .but with age, I switched to 4-space
<WinchellsM>
Is it possible to install nvidia drivers, or in particular nvidia's libEGL.so, with just nix (running on another distro besdies NixOS)?
<makefu>
hyper_ch: i am not that old yet!
<makefu>
i found out about the others via "ldd <executable>" after patching the interpreter
timor has joined #nixos
<makefu>
you can also use patchelf --print-needed
<srhb>
WinchellsM: Is nvidia_x11 installable?
<srhb>
WinchellsM: Er, linuxPackages.nvidia_x11
<timor>
I am currently using exwm, and want to override it with a version from GitHub. I already have an overlay in place which fetches a newer version from melpa, but I cannot get the build directly from GitHub working. I tried with the trivialBuilder, but itg complains about not finding xcb.el, although xelb is in buildInputs. Can anyone help?
<srhb>
timor: paste it somewhere. :)
<hyper_ch>
makefu: but honestly, what insane person prefers 2-space indents over sane 4-space indents?
<makefu>
who said i am a sane person? :D
<hyper_ch>
that was an absolutely unbiased, un-suggestive question
<phdoerfler>
speaking of normal: While setting up my server I noticed I need a lot of extraConfig = '' things in my nix files. I feel like the proper way would be to add these functions to the nix module and file a pull request. Is there some documentation somewhere regarding this?
<WinchellsM>
Is there a way to add allowUnfree = true; to a `mkDerivation`?
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
vandenoever has joined #nixos
<srhb>
WinchellsM: Not afaik, but equivalently you could override it to be free. Why not just allowUnfree if you're using unfree stuff?
<srhb>
In your user config, I mean.
<vandenoever>
is anyone else having problems with firefox on nixos? i regularly have dead tabs that just have a throbber in the middle of the page
eacameron has quit [(Ping timeout: 246 seconds)]
Wizek_ has joined #nixos
<WinchellsM>
@srhb is this ~/.nixpkgs/config.nix ?
<WinchellsM>
I'm not using NixOS
pie__ has joined #nixos
<WinchellsM>
Just Nix
<WinchellsM>
so this is an empty file
pie_ has quit [(Ping timeout: 240 seconds)]
<srhb>
WinchellsM: That's the old location (whether on NixOS or Nix) -- I think the newer is ~/.config/nixpkgs/config.nix
<srhb>
I think they're both still valid though
newhoggy has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<WinchellsM>
What do I add to this empty file?
takle has joined #nixos
zarel has joined #nixos
<WinchellsM>
nixpkgs.config.allowUnfree = true;
<WinchellsM>
?
<WinchellsM>
Or I guess it starts with { config, pkgs, ...}
<srhb>
WinchellsM: pkgs : { allowUnfree = true; }
<WinchellsM>
Ok, now it's building.
pie___ has joined #nixos
<WinchellsM>
So this is literally installing the full nvidia drivers to my nix-store?
<srhb>
WinchellsM: afaik yes.
<WinchellsM>
If this works it will be crazy
<WinchellsM>
And awesome
<srhb>
WinchellsM: At least, it has lib/libEGL_nvidia.so
<srhb>
I assume that's what you're looking for
pie__ has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Remote host closed the connection)]
<WinchellsM>
@srhb nvidia-x11 provides
<WinchellsM>
./lib/libEGL_nvidia.so
<Mic92>
Why do I have to use explicit outputs like boost and boost.dev, when using overrideDerivation?
<WinchellsM>
in the nix-store
<Mic92>
That's weird
<Dezgeg>
don't use overrideDerivation, use overrideAttrs
<WinchellsM>
But I need a ./lib/libEGL.so -> ./lib/libEGL_nvidia.so
ShalokShalom_ has quit [(Ping timeout: 252 seconds)]
<srhb>
WinchellsM: Isn't that just a symlink?
<WinchellsM>
Like on my Arch build
<WinchellsM>
Yes
<WinchellsM>
But is there a way to get that in nix?
<Mic92>
Dezgeg: ah, i did not get the memo.
<srhb>
WinchellsM: Not outside the Nix Store.
<srhb>
WinchellsM: You need NixOS for that.
ShalokShalom has joined #nixos
<pie___>
hey guys, for some reason my system switches TTYs with the alt-f# hotkey instead of ctrl-alt-f#, and that messes with all my hotkeys, anyone have any idea how to fix this?
<srhb>
WinchellsM: Not sure if that's expected to be the path in Nix alone, but you could just symlink it in place...
<WinchellsM>
What do you mean?
<srhb>
WinchellsM: I am a bit surprised that it doesn't try to find it in Nix store directly, but the OpenGL stuff is impure in ways I don't understand.
<WinchellsM>
I should symlink what to what?
newhoggy has joined #nixos
<srhb>
WinchellsM: I meant for you to symlink the libEGL down there, but I'm guessing I'm missing some complications here related to OpenGL. Someone more knowledgeable can perhaps step in.
zarel has quit [(Quit: Leaving)]
<pie___>
apparently it may have something to do with how grub sets up stuff, or im misunderstanding something
iyzsong has joined #nixos
<makefu>
how was the new command-not-found tool called? it was sometime on the mailinglist but i forgot
<hyper_ch>
makefu: so, should master pdf editor be submitted upstream?
<makefu>
i am not sure if all the icons work as expected, can you check this?
<pie___>
apparently a bunch of people have this issue but i havent found a solution yet
eacameron has joined #nixos
<hyper_ch>
makefu: dekstop entry isn't working either
<hyper_ch>
I just look at where debian puts all those things and tried to emulate that :)
<makefu>
i am currently at writing a tutorial on how to patch a binary blob for nixos
<hyper_ch>
bascially - I have no idea what I'm doing and am just guessing :)
mattcode has joined #nixos
<makefu>
everybody does
<makefu>
try to find working .desktop entries in nixpkgs and emulate :D
<makefu>
i will write down what needed to be done
<hyper_ch>
no, there are smart people like domenkozar, clever, sphalerite and others who actually know what they're doing
bennofs has joined #nixos
<hyper_ch>
makefu: I'll get there...
<pie___>
i bet this is some systemd bullshittery
eacameron has quit [(Ping timeout: 240 seconds)]
<clever>
hyper_ch: pkgs.makeDesktopItem
<clever>
hyper_ch: as an example: jvisualvm = makeDesktopItem { name = "jvisualvm"; exec = "${oraclejdk}/bin/jvisualvm"; desktopName = "JVisualVM"; genericName = "jvisualvm"; categories = "Development;Debugger;"; };
<clever>
it auto-creates a package, containing just a .desktop file
<hyper_ch>
clever: I have a desktop file... but in the nix expression it's not getting put to the proper place
<clever>
hyper_ch: $out/share/applications/
<hyper_ch>
clever: I know :)
<WinchellsM>
@srhb If my nix compiled program says it's looking for /run/opengl-driver/lib/dri/swrast_dri.so but can't initialize it, and I have a symlink on my system from /run/opengl-driver/lib/dri/swrast_dri.so -> /usr/lib/dri/swrast_dri.so, then do I need to scrub my swrast_dri.so somehow so that nix can consume it?
<clever>
hyper_ch: what is your nix expression?
<WinchellsM>
Running patchelf swrast_dri.so or something like that?
<hyper_ch>
working on it
<srhb>
WinchellsM: That sounds possible, but sorry, I'm out of my depth here.
<hyper_ch>
but it seems cp -R usr/share $out/ does not actually copy the share folder to $out/share but only the files/folders inside to $out/
<clever>
hyper_ch: add -v to that cp
<hyper_ch>
why v?
<clever>
cp can be very unpredictable if you dont know the state of both sides
<hyper_ch>
using bash it works fine
<hyper_ch>
state of both sides?
<WinchellsM>
@srhb Ok thanks for your help though
<clever>
hyper_ch: if $out does exist, it puts share inside $out
<clever>
hyper_ch: if $out doesnt exist, it puts the contents of share in $out
hke has quit [(Ping timeout: 248 seconds)]
<hyper_ch>
ah, then first run mk $out ?
<hyper_ch>
mkdir $out ?
<clever>
teag
<hyper_ch>
mkdir $out/share
<clever>
yeah
<hyper_ch>
cp -R usr/share $out/share
<hyper_ch>
iiek
<clever>
now you broke it again
<clever>
that puts the files in $out/share/share
<hyper_ch>
I'm so much better at breaking things ;)
<clever>
adding -v makes it tell you what it did
<clever>
then you can see if its right or not, and adjust
<hyper_ch>
real men don't need -v :)
<clever>
real men know the state and can type this with the display removed from the laptop :P
<clever>
ive brought the wifi up before, with no networkmanager or wpa_supplicant
<clever>
and without a display
<hyper_ch>
awesome :)
<Infinisil>
clever: How???
<clever>
Infinisil: knowing the exact state of the system after every command i type in
<clever>
and how it will react to each one
<Infinisil>
how do you set up wifi without wpa_supplicant?
<clever>
that only works for wep and open networks
<clever>
iwconfig wlan1 essid foo
<clever>
ip link set wlan1 up
<clever>
ip addr add 192.168.1.100/24 dev wlan1
<Infinisil>
ohh fancy
<clever>
ip route add 192.168.1.0/24 dev wlan1
<clever>
ip route add via 192.168.1.1 dev wlan1
<clever>
for wep, iwconfig can also accept up to 4 keys
<octe>
i can't find a reference to the sonarr package in it, but i assume it's installed if i add services.sonarr.enable = true
<prietoj>
Hello! I'm just strating with NixOs. I've been trying to build a haskell package but the build fails because I am missing a C library called Crypto as part of the configuration step for hopenssl. I thought that I would install openssl and so I ran: 'nix-env -f "<nixpkgs>" -iA pkgs.openssl.dev' but even after that the compiler fails to find Crypto. What am I missing?
python476 has quit [(Ping timeout: 246 seconds)]
ShalokShalom has joined #nixos
<clever>
octe: line 34 refers to the sonarr package in the systemd unit by absolute path
<clever>
octe: so nix will download it, but only the service will be able to use it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/v59Ny
<NixOS_GitHub>
nixpkgs/master 232fc6a Tim Steinbach: linux: 4.13.1 -> 4.13.2
<NixOS_GitHub>
nixpkgs/master 537da6c Tim Steinbach: linux: 4.12.12 -> 4.12.13
<NixOS_GitHub>
nixpkgs/master 43b3029 Tim Steinbach: linux: 4.9.49 -> 4.9.50
NixOS_GitHub has left #nixos []
<pie___>
turns out i may have been the culprit: "Switch the keyboard from raw mode, the mode used by programs such as X11 and svgalib, to XLATE mode" this is what sysrq r does
<pie___>
the thing is after coming back from sleep mode the login screen is frozen sometimes till i do that
<clever>
pie___: ah
ShalokShalom has quit [(Remote host closed the connection)]
ShalokShalom has joined #nixos
<pie___>
so its not lennarts fault after all :P
<pie___>
PEBKAC
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/v59Ac
<NixOS_GitHub>
nixpkgs/master eab8124 Tuomas Tynkkynen: pythonmagick: Fix sha256
<NixOS_GitHub>
nixpkgs/master 14b833e Tuomas Tynkkynen: awesomebump: Yet another RPATH-contains-TMPDIR hack...
NixOS_GitHub has left #nixos []
Myrl-saki has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 2 new commits to release-17.09: https://git.io/v59A4
<NixOS_GitHub>
nixpkgs/release-17.09 058cb60 Tuomas Tynkkynen: pythonmagick: Fix sha256...
<NixOS_GitHub>
nixpkgs/release-17.09 6baffd9 Tuomas Tynkkynen: awesomebump: Yet another RPATH-contains-TMPDIR hack...
NixOS_GitHub has left #nixos []
Olgierd has quit [(Quit: WeeChat 1.5)]
odi has quit [(Ping timeout: 240 seconds)]
lhart has joined #nixos
<clever>
prietoj: installing dev packages wont make builds work, you must add them to the nix-shell args
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/v59AS
<hyper_ch>
makefu: you seem to be under the impression that I have some clue :)
<makefu>
you are new to this, so you are the perfect target
<hyper_ch>
I don't wanna be a victim
hke has joined #nixos
<makefu>
it is written tutorial-style (should work without any issues to repeat)
<hyper_ch>
makefu: clever: so fixed things up, removed unnecessary second binary (by default it gets put into /opt....)... also fixed the indenting: https://paste.simplylinux.ch/view/18c42ad6
<makefu>
hyper_ch: nice, i did the same :D
<makefu>
see the wiki entry
<hyper_ch>
there's still 2-space indenting...
odi has joined #nixos
<clever>
hyper_ch: a few minor things, line 19 defines libpath as a derivation attribute
<hyper_ch>
oh, you symlinked from opt to bin?
<clever>
hyper_ch: but line 48 reads it via the rec {
<hyper_ch>
no idea what rec does :)
<clever>
so it didnt need to be on the derivation itself
<clever>
rec allows you to refer to other attributes in the set
<clever>
you can either move libpath to a let block, or use $libPath without {}
<clever>
and have the identical effect
<clever>
hyper_ch: also, you want to do the --set-rpath BEFORE the fixup phase, or you loose the fixups
<hyper_ch>
yours is now like 13 lines shorter
tsm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 6 new commits to master: https://git.io/v5Heb
<NixOS_GitHub>
nixpkgs/master f59bcb6 Peter Simons: LTS Haskell 9.4
<NixOS_GitHub>
nixpkgs/master 9aa82d7 Peter Simons: haskell-pandoc: bump version to pandoc-1.19.2.4 to fix the build with GHC 8.2.x
<NixOS_GitHub>
nixpkgs/master c59c53b Peter Simons: hackage-packages.nix: automatic Haskell package set update...
NixOS_GitHub has left #nixos []
newhoggy has quit [(Remote host closed the connection)]
<disasm>
hyper_ch: the 4 space indenting looks weird :)
<hyper_ch>
disasm: you should get your eyes checked...
<hyper_ch>
they're defective ;)
<gchristensen>
Nix standard is 2 *shrug*
<makefu>
clever: why setting the rpath before the fixup? wouldn't it be overwritten by any other fixes?
<clever>
makefu: one of the things the fixup phase does, is run shrink rpath, to remove anything that you dont need
<clever>
makefu: but if you set the rpath afterwards, it wont shrink, and your runtime closure can be larger then it needs to be
<hyper_ch>
gchristensen: can I petition to make it 4 spaces?
<gchristensen>
no
<disasm>
ooh patchelf --print-needed is that new? I always did readelf -d
<hyper_ch>
well, how about to compromise on 3 spaces
<steveeJ>
I'm having trouble understanding the texlive packages. I want to upgrade a single one. so after regenerating pkgs.nix I cherry-pick a few lines into the original pkgs.nix. when building it, nix expects a sha512 which is not in any file in the git repo. how does this happen?
<clever>
steveeJ: are you sure you dont have the 2 hashes backwards?
Myrl-saki has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] wizzup opened pull request #29374: nodePackages.pulp : init at 11.0.2 (master...add/nodePackages.pulp) https://git.io/v5HJc
NixOS_GitHub has left #nixos []
Myrl-saki has joined #nixos
<makefu>
clever: ok i've added your remarks to the wiki derivation
MercurialAlchemi has quit [(Ping timeout: 255 seconds)]
<disasm>
makefu: yeah, I haven't used that one. I would guess that's the reason your indenting isn't working as expected.
<makefu>
okay, which one is the correct one and how to enable it?
Wizek has joined #nixos
<makefu>
this looks better
<hyper_ch>
makefu: "We can use patchelf to show set the library path and dynamic linker appropriately:"
<hyper_ch>
s/to show set/to show and set/ ?
<makefu>
disasm: but why does it indent 'in\n {' instead of 'in\n{' it seems to be not very common in the nixpkgs modules
<makefu>
hyper_ch: yes true :)
ShalokShalom has quit [(Remote host closed the connection)]
<hyper_ch>
makefu: # after we've patched --> better to use "we have" because then the markup doesn't break
<hyper_ch>
didn't know about nix-index this far
<steveeJ>
clever: would you happen to know if it's even possible to diverge from versions which are in the currently static texlive mirror?
<makefu>
i also only remembered, it is fantastic
<clever>
steveeJ: not sure, i havent looked into the nix expressions for tex much
sauyon has joined #nixos
pxc has joined #nixos
<gchristensen>
fpletz: great work getting noticed and called out by Alexander :D
<hyper_ch>
makefu: nice write up
odi has quit [(Ping timeout: 240 seconds)]
<makefu>
now we have something to reference to if new users have a similar problem
<disasm>
makefu: works for me...
pxc has quit [(Ping timeout: 246 seconds)]
odi has joined #nixos
<disasm>
makefu: although I like my braces on the same line instead of the next, but I tested both ways, and the syntax generated without any manual indentation came as expected.
<hyper_ch>
makefu: why did you use /applications/misc and not applications/office ?
<makefu>
disasm: mh weird, anyways, the indentation works MUCH better than the one i used before
<makefu>
hyper_ch: i did `find nixpkgs/pkgs | grep pdf` and just added it there
<hyper_ch>
I see
<makefu>
there does not seem to be any special design where to put stuff in the folders ... also the information is not used anywhere
<hyper_ch>
the .desktop files say Categories=Office;Graphfics
<makefu>
okayokay :D next time you edit the wiki entry
<hyper_ch>
wikis are too complicated for my simple brain
<makefu>
pfff
<makefu>
but thinking about /misc instead of /office
<WinchellsM>
Can I not put an override statement in a `buildInputs = [pkg1 pkg2 pkg3.override { att = true; } ]
<hyper_ch>
I was just inquiring about your train of thought.... maybe I can learn something from it ;)
<clever>
WinchellsM: wrap it with ( and )
<clever>
WinchellsM: what you typed, is a list containing 2 packages, a function, and a set
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/v5HtK
<NixOS_GitHub>
nixpkgs/master 3b94239 Thomas Tuegel: kdeFrameworks: 5.37 -> 5.38.1...
NixOS_GitHub has left #nixos []
odi has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #29349: treewide: Do not limit hardenging because gcc 4.9 in bootstrap (staging...harden-bootstrap) https://git.io/v59CR
NixOS_GitHub has left #nixos []
<WinchellsM>
I get "attribute override is missing" error
<WinchellsM>
buildInputs = with pkgs; [ (mesa.override {driDrivers = true;})
<WinchellsM>
libglvnd
<WinchellsM>
freeglut
<WinchellsM>
]
bennofs has quit [(Ping timeout: 252 seconds)]
<clever>
WinchellsM: mesa is a buildEnv, it doesnt have .override
<clever>
WinchellsM: you probably want mesa_glu
<clever>
or mesa_drivers
prietoj has quit [(Remote host closed the connection)]
joehh has quit [(Ping timeout: 260 seconds)]
rotaerk has joined #nixos
<WinchellsM>
Ok
<steveeJ>
clever: my suspicion is unfortunately true. there's no (current) way to escape the mirror'ed versions for texlive packages
<clever>
tilpner: what would .override even override on a buildEnv?
<clever>
ah, paths cant be changed with overrideAttrs
<clever>
yeah, i see how that can help
<clever>
i dont have push, but i can give it a thumbs up
<tilpner>
It's just been sitting there, and I didn't ask anyone because I fixed it locally :/
bkchr has quit [(Remote host closed the connection)]
nh2 has quit [(Ping timeout: 240 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
<steveeJ>
can I get a store path from a hash on the command line somehow?
rauno has quit [(Ping timeout: 240 seconds)]
<clever>
steveeJ: nix-hash can do it
<clever>
i believe
<clever>
but its not in the manpage
peacememories has quit [(Client Quit)]
dieggsy has quit [(Remote host closed the connection)]
dieggsy has joined #nixos
<sphalerite>
I have a 62MB HTML document that Firefox doesn't seem too keen on rendering. Anyone know of a tool I could use to view it?
tmaekawa has quit [(Quit: tmaekawa)]
newhoggy has quit [(Remote host closed the connection)]
<sphalerite>
pandoc also refuses to process it, just eats all my RAM trying
peacememories has joined #nixos
Olgierd has joined #nixos
Olgierd has quit [(Changing host)]
Olgierd has joined #nixos
<vandenoever>
sphalerite: dillo?
<woffs>
lynx
<sphalerite>
Dillo… doesn't seem to be doing anything
<mbrock>
htmltidy with the indent flag and then just read the source code in your editor, if that's not too awful
<sphalerite>
lynx seems to be managing
peacememories has quit [(Client Quit)]
newhoggy has joined #nixos
pxc has joined #nixos
<sphalerite>
I'll try htmltidy as well, thanks mbrock, because it's actually structured data that I'd like to extract into a more manageable format
* mbrock
wonders which thingy to set up in Emacs to get GHCi integration for convenient Haskell hacking
iyzsong has quit [(Ping timeout: 252 seconds)]
bennofs has joined #nixos
<sphalerite>
specifically, it's the messages.html in a facebook data dump from when I left Facebook in January…
<mbrock>
hah, ok! do you have a plan for parsing/restructuring the HTML? I was doing some stuff with the HXT library for Haskell a while ago, it's pretty cool
simendsjo has joined #nixos
Myrl-saki has quit [(Quit: WeeChat 1.9)]
<simendsjo>
Wow! pdf-tools finally installs out-of-the-box without a lot of manual hacking! Not sure who I should thank for this, but it's much appreciated!
Myrl-saki has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Ping timeout: 246 seconds)]
<sphalerite>
mbrock: I don't have a precise plan. That's good to know and I'll keep it in mind for my experiments :)
pie___ has quit [(Ping timeout: 246 seconds)]
<gchristensen>
simendsjo: must be Michael Alan Dorman <mdorman@ironicdesign.com> maybe :)
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 3 new commits to master: https://git.io/v5HGZ
<NixOS_GitHub>
nixpkgs/master c01e064 Bastian Köcher: kdeTelepathy: Remove, because it is not maintained anymore
<NixOS_GitHub>
nixpkgs/master 4bfb9e3 Bastian Köcher: kde4Workspace: Remove, because it is not maintained anymore
<NixOS_GitHub>
nixpkgs/master 815135f Thomas Tuegel: Merge pull request #29369 from bkchr/remove_kde4_workspace_kde_telepathy...
NixOS_GitHub has left #nixos []
Radivarig__ has quit [(Ping timeout: 240 seconds)]
erasmas has joined #nixos
Radivarig has quit [(Ping timeout: 248 seconds)]
newhoggy has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
<hyper_ch>
makefu: well, looks good now that howto
darlan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v5HZX
<NixOS_GitHub>
nixpkgs/master c8c82a6 Tuomas Tynkkynen: swfmill: Fix build on GCC 6...
NixOS_GitHub has left #nixos []
ixxie has joined #nixos
darlan has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/v5HZ7
<NixOS_GitHub>
nixpkgs/release-17.09 4215b39 Tuomas Tynkkynen: swfmill: Fix build on GCC 6...
NixOS_GitHub has left #nixos []
richerVE has quit [(Ping timeout: 260 seconds)]
Radivarig has joined #nixos
Radivarig__ has joined #nixos
LysergicDreams has quit [(Ping timeout: 248 seconds)]
<kuznero>
gchristensen: I was asking here before, are there any books written about Nix/NixOS?
<gchristensen>
I.... doubt it?
<gchristensen>
:)
<Ankhers>
Time to start writing on.
sellout- has quit [(Ping timeout: 260 seconds)]
<domenkozar>
nixpills could be a book
<gchristensen>
get crackin' Ankhers! :D
<Ankhers>
I can write it in docbook!
<kuznero>
Just noticed there was a discussion about effectiveness of existing documentation. So, a book could address that I believe...
<gchristensen>
yes you can
<kuznero>
:D
<Ankhers>
I don't really like books for documentation. Stuff generally changes too fast. A book is nice to complement documentation, or to give someone a high / mid level overview of a technology.
<Ankhers>
I would rather just write documentation.
<kuznero>
Ankhers: it is not about putting documentation into a book, it is about delivering knowledge to people. Current documentation is not effective in this as I see it. So, a book might be different...
<maurer>
Ankhers: A counterpoint is that a book on a topic usually means it's stabilized enough to have one :P
<gchristensen>
there could be a book on the nix language
<disasm>
I think this goes back to the age old problem, everyone would rather talk about how to fix documentation rather than just writing better documentation :) (says the hypocritical person doing a nixcon hackday on brainstorming how to fix documentation)
<gchristensen>
!m disasm
<[0__0]>
You're doing good work, disasm!
<Ankhers>
maurer: While I don't disagree, there are cases when that still isn't true.
newhoggy has quit [(Remote host closed the connection)]
<Ankhers>
I don't know if anyone is in the Elixir world, but the Phoenix 1.2 book came out, it was a great intro to the framework. Then the 1.3 RC came out. The book was not updated. Everyone was complaining that the documentation and book were not officially updated during an RC release.
<disasm>
kuznero: let me know if you need someone to copy edit/peer review your book on nix :)
goibhniu has quit [(Ping timeout: 248 seconds)]
<Ankhers>
Is there currently a good way to find functions in nix that does not involve looking through the code?
<kuznero>
:) it might be an idea. I would write it simply to learn it!
<Ankhers>
I would buy it.
alphor has quit [(Quit: Bye!)]
<kuznero>
Let me have it in my mind for a week and I will get back saying if challenge is accepted ;)
<Ankhers>
disasm: Let me know if you come up with anything for fixing documentation. I would be glad to help.
<Ankhers>
Or anyone else for that matter.
alphor has joined #nixos
<disasm>
Ankhers: are you going to be at nixcon?
<Ankhers>
I wish. It isn't possible for me to make it this year.
<kuznero>
Do you think the format of Real World Haskell is appropriate? I feel it can be a very good way to collect feedback...
newhoggy has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
<Ankhers>
I'm hoping to make it to the next one though. Or we should just setup one in Canada.
<catern>
someone with commit privs to the website should make a friends page :)
<Infinisil>
Ankhers: to find functions I mostly search for 'functionName = '
digitus has joined #nixos
<catern>
or, if someone with commit privs says that they will merge it, maybe I can do it??
alphor has quit [(Client Quit)]
<pxc>
I would be really grateful for an American conference. I want to go to NixCon2017 but I'm still not sure if I can because I might not be able to afford it
<pxc>
and I do mean the American continent although I'm a US-ian
<Ankhers>
pxc: How about Canada?
<pxc>
:-)
<Ankhers>
Cool.
<catern>
Maybe we can get printed copies of the Nix manual?
<Ankhers>
Is there some way to gauge interest in an NA located conference?
alphor has joined #nixos
<catern>
How big is it?
Ivanych has joined #nixos
<catern>
I really like my printed copy of the Emacs manual :)
<catern>
it's a nice thing to have :)
<Ankhers>
But you can just look at the manual IN emacs...
<catern>
yes, but it's fun to have :)
<Ankhers>
Conversation piece?
<catern>
(in general I would prefer improving the Nix manual over writing books or wikis though)
<catern>
sure, and to leaf through idly, and for fortune-telling :)
<Infinisil>
I feel like the wiki is a much better format for knowledge though
<Infinisil>
So I'm rooting for improving the wiki
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29380: bcachefs-tools: Make eval more robust (master...eval-fix) https://git.io/v5HVr
NixOS_GitHub has left #nixos []
<pxc>
I like wikis too. The truth is that if Nix continues to grow people will be writing books about it for big tech doc publishers anyway
<Ankhers>
I think a problem with a Nix book would be content. Do you explain in the book how to use it as a daily driver? What about the Python people, Haskell people, etc. We would want to see how it can benefit our particular language(s).
<Infinisil>
Hmm, but that's like ever changing
<Ankhers>
Or do I write five books with the same content but for different languages?
Mateon3 has joined #nixos
Guest59834 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Ankhers>
I guess you could say, I'm doing it in Haskell, but in this online repo you can find the code for various languages.
<kuznero>
Ankhers: that is true, it is wide... but then plan it to cover the core first, I bet it is now getting more or less stable. Then move to the other parts.
hotfuzz has joined #nixos
<Infinisil>
Can you really write a book about just the Haskell part of nixpkgs? There's not much to say I feel
<Ankhers>
I'm just saying that I would like to see a book that shows me the "proper" way to work in a given language.
Mateon3 is now known as Mateon2
Mateon1 has quit [(Ping timeout: 260 seconds)]
<Ankhers>
I don't know if it would fill a full book. But it would be nice to have a best practices guide per language.
Mateon2 is now known as Mateon1
<Ankhers>
*up to date
<fpletz>
gchristensen: yeah, pretty awesome :) the tcpdump devs might regret putting us on their embargo list though
<pxc>
I wish we had better Haskell documentation for contributors
<disasm>
I think a lot of what we have in the manuals is great, the problem is the edge stuff. For example, things like cmake, libcxxStdenv, qt hooks, etc... could and should have their own sections in the manual. There's one reference to cmake in the nixpkgs manual: "These include C(++) headers, pkg-config, cmake and aclocal files. They go to dev or out by default." yet there's over 3000 uses in nixpkgs :) That's a
<disasm>
problem. (and one I'm hoping we can solve at NixCon)
<pxc>
all we have in the manual is mostly about how to _use_ the Haskell packaging stuff, not how to add to it for addition to Nixpkgs
<pxc>
it's not that hard to figure out but it would be nice if the contributor's guide had more stuff for _contributors_ in the Haskell section
<Ankhers>
I'm struggling through figuring out how to fix up the BEAM ecosystem with a couple other people.
LnL has joined #nixos
<disasm>
but there I go again talking about how to fix things instead of fixing them, lol :)
newhoggy has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
<kuznero>
At some point I was quite impressed with how it must have been effective gathering feedback with something like Real Worl Haskell. That let people who barely scratching the surface to ask a question and potentially guide the content into a different direction to make it more accessible.
erictapen has quit [(Ping timeout: 260 seconds)]
xdelv has joined #nixos
<kuznero>
Currently though I bet documentation is written and maintained by people who are deeply involved already. Is that fare assessment?
Filystyn has quit [(Ping timeout: 246 seconds)]
<Ankhers>
If someone can come up with a way to gauge interest in an NA based NixConf, let me know. I would love to see one here.
<pxc>
same
<mbrock>
kuznero: you mean with how RWH had a per-paragraph comment box?
sellout- has joined #nixos
<kuznero>
yes
marusich has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #29380: bcachefs-tools: Make eval more robust (master...eval-fix) https://git.io/v5HVr
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/v5Hok
<NixOS_GitHub>
nixpkgs/master f96f3f7 John Ericson: bcachefs-tools: Make eval more robust...
<NixOS_GitHub>
nixpkgs/master d2f4084 John Ericson: Merge pull request #29380 from obsidiansystems/eval-fix...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/v5Hor
<xdelv>
mbrock: OK, I can get all of the nix-shell commands to work with ghc7103, but nix-env -qaP shows only ghc-8.0.1. Do I need to switch channels to actually install ghc 7?
<mbrock>
xdelv: no, I think that's because of how the packages are laid out in the hierarchy, where only the default version is at the "top level"
timjrd has joined #nixos
<mbrock>
I don't actually know if there's a way for `nix-env -q` to show all the things, but I suspect not
newhoggy has quit [(Ping timeout: 248 seconds)]
<xdelv>
that's fine, don't necessarily need a full listing
<xdelv>
just confused about how to translate the 'haskell.compiler.ghc7103' that nix-shell likes, into something that nix-env likes
<xdelv>
(or a .nix config file would like, for that matter)
<mbrock>
yeah, you need to use the `-A` flag to `nix-env` to specify that you want to install by an "attribute" rather than a "name"
<mbrock>
so you could try `nix-env -iA haskell.packages.ghc7103`
<xdelv>
tried that, but it errored and I wasn't aware that it was supposed to work lol
<xdelv>
thanks for the confirmation, let me see what I can find now that I know that needs to work
cpennington has joined #nixos
Radivarig__ has joined #nixos
Radivarig has joined #nixos
<mbrock>
I find nix-env kind of confusing myself. These CLI tools are being redesigned to be easier, and I think that'll be in the upcoming Nix version (as a new command just called `nix`)
<mbrock>
someone here can probably help you but I have to run :)
<xdelv>
mbrock: No worries, thank you so much for all the help!
<xdelv>
(figured it out, it wanted a -f '<nixpkgs>')
<sphalerite>
yep, -f '<nixpkgs>' makes nix-env's behaviour fairly consistent across different ways in which nix might be installed
erictapen has quit [(Ping timeout: 240 seconds)]
timjrd has quit [(Quit: Page closed)]
pie_ has joined #nixos
stanibanani has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/v5H1q
<NixOS_GitHub>
nixpkgs/staging 1055c43 John Ericson: yabar: pkg-config should be a native build input
NixOS_GitHub has left #nixos []
<xdelv>
sphalerite: would it be safe to just alias nix-env="nix-env -f '<nixpkgs>'"?
<sphalerite>
Sure, although that might interfere if you want to install nix expressions from a different file
<sphalerite>
For instance, I update my profile by doing nix-env -f ~/dotfiles -ir
ixxie has joined #nixos
<xdelv>
OHHH. <nixpkgs> is a variable that points to the nixpkgs repo. Makes a lot more sense now
kuznero has quit [(Quit: Page closed)]
<catern>
pls release 1.12 already :(
pxc has quit [(Quit: WeeChat 1.9)]
<catern>
I guess it won't happen before NixCon :(
<hyper_ch>
NixCon?
<catern>
I really want it released so that I can deploy it
cpennington has quit [(Remote host closed the connection)]
<jsgrant>
Btw, the "Has Nix A Future" talk synopsis has a bunch of <p> tags in it.
<jsgrant>
Whoever maintains that.,
<jsgrant>
Only one I've seen thusfar.
<hyper_ch>
sphalerite keeps ignoring me :(
<jsgrant>
Oh, "Typesystem for Nix" is the same.
hc has joined #nixos
newhoggy has joined #nixos
<hyper_ch>
NixCon - near Munich... not too far away though
<gchristensen>
Profpatsch, _c_: the "Has Nix A Future" talk synopsis has a bunch of <p> tags in it.
odi has joined #nixos
<Infinisil>
somebody's been writing too many docs :P
<jsgrant>
Profpatsch: _c_: So does "A type-system for Nix"
hc_ has quit [(Ping timeout: 246 seconds)]
<jsgrant>
Latter, all sort of formatting tags.
newhoggy has quit [(Ping timeout: 248 seconds)]
hc_ has joined #nixos
hc has quit [(Ping timeout: 240 seconds)]
mmts has joined #nixos
<mmts>
new to NixOS, have setup a host with channel 17.03, can anyone give me hints on how to transform it to a XEN dom0 server ?
<hyper_ch>
what's a xen dom0 server?
<mmts>
it's a virtual host like vmware or KVM
pie_ has quit [(Ping timeout: 240 seconds)]
<woffs>
"man configuration.nix" mentions it
<hyper_ch>
why not use kvm?
<hyper_ch>
kvm/qemu
adeohluwa has left #nixos []
<Infinisil>
"How do I do X?" "Why don't you use Y?"
hc has joined #nixos
<joepie91>
that's honestly not an unreasonable response, if Y provides roughly the same featureset as X and is better supported by tooling
<Infinisil>
Fair enough
<disasm>
ugh... there's a package in python top level "3to2", there's no way to get that into callPackage, is there?
<joepie91>
there may still be reasons to need X of course, but so long as it's a question rather than a "no go use Y", I wouldn't see a problem with it :P
pie_ has joined #nixos
<mmts>
hyper_ch: I'd prefer XEN, 'cause I think it performs better...
_ris has joined #nixos
<hyper_ch>
that's what they want to make you believe
<sphalerite>
disasm: what do you mean?
<hyper_ch>
I heard qemu performs really good but I use vbox because of portability
<sphalerite>
oh right, as a parameter to a function?
Troupal has joined #nixos
<disasm>
sphalerite: "3to2" = callPackage ../development/python-modules/3to2 { }; I need that as a parameter in another package.
<sphalerite>
yeah I don't see a way to do that :/
hc_ has quit [(Ping timeout: 252 seconds)]
<joepie91>
mmts: sample size of one, but somebody I know runs a VPS provider and has always used Xen, and he's looking into moving to KVM because according to him there's no meaningful performance difference and Xen support from tooling and so on is not great
<sphalerite>
disasm: all I can think of is taking in pythonPackages and getting the 3to2 attr from that
<joepie91>
don't have any first-hand data on that though
hc_ has joined #nixos
hc has quit [(Ping timeout: 240 seconds)]
<mmts>
hyper_ch: joepie91: 2nd reason, I'm used to it for years now...
<Infinisil>
disasm: You could take the argument "pkg3to2" instead and use callPackage path { pkg3to2 = pkgs."3to2"; } or something like that
<joepie91>
mmts: right, that makes sense
<hyper_ch>
mmts: it's ok :) just seems that mose in here run kvm/qemu :)
<hyper_ch>
what I found out when there were issues with vbox :)
<disasm>
ah, that's probly better than my solution I just did, renaming it as threeto2 :)
<joepie91>
mmts: no idea whether you can use Xen kernels on NixOS though, or how
<joepie91>
mmts: I don't use Xen so I don't know anything specifically about it, but to enable Xen it should be sufficient to just set the virtualisation.xen.enable setting to `true`, and appropriately configure the remaining virtualisation.xen options where needed to satisfy your requirements; it seems to also just use whatever the latest Linux kernel version is; https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L12443
<disasm>
it's not a rec attr set :(
<disasm>
I guess I just add it and have both call the same package
<xdelv>
Infinisil: Hah yeah, same architecture. Would I just copy the manifest.nix over then? Or do I need the full dir?
<Infinisil>
disasm: pythonPackages?
jellowj has quit [(Ping timeout: 260 seconds)]
<Infinisil>
xdelv: Probably, have never done anything like this though
<xdelv>
Cool, I'll give it a shot. Thanks!
<Infinisil>
xdelv: So you want to share the packages installed with nix-env?
<xdelv>
not really switching systems or anything, just trying to make my nix-env changes reproducible in case I start from a clean NixOS install in the future
<xdelv>
Basically yep
<Infinisil>
Hmm, you might want to look into nix-env -r or home-manager instead then
<Infinisil>
with both of those you can define your packages in a nix expression and then build the profile declaratively
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler opened pull request #29388: arelle: add py3to2 as a buildInput (master...arelle) https://git.io/v5HQv
NixOS_GitHub has left #nixos []
simendsjo has quit [(Remote host closed the connection)]
<xdelv>
Infinisil: that sounds exactly like what I want
<Infinisil>
I personally use home-manager (and sometimes contribute), can recommend it
simendsjo has joined #nixos
uwx-100 has joined #nixos
<xdelv>
Sweet, thanks for the help
hc has joined #nixos
newhoggy has joined #nixos
<xdelv>
Will definitely give home-manager a try. Curious though, the only '-r' I can find in the nix-env manpage is an alias for '--remove-all' under the --install command. Is that what I'm looking for or am I overlooking something else?
<Infinisil>
Yep that's it
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hotfuzz_ has joined #nixos
<xdelv>
Ah so basically just making it start from a clean slate before evaluating the profile?
<Infinisil>
which means it's declarative
<xdelv>
awesome that makes a lot of sense. thank you!
justbeingglad has joined #nixos
hc_ has quit [(Ping timeout: 264 seconds)]
hotfuzz has quit [(Ping timeout: 240 seconds)]
justbeingglad has left #nixos []
peacememories has joined #nixos
hc_ has joined #nixos
simendsjo has quit [(Remote host closed the connection)]
peacememories has quit [(Client Quit)]
peacememories has joined #nixos
hc has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rickynils pushed 1 new commit to release-17.03: https://git.io/v5H7F
<NixOS_GitHub>
nixpkgs/release-17.03 53b9546 Rickard Nilsson: libarchive: Patch for CVE-2017-14166
NixOS_GitHub has left #nixos []
hc_ has quit [(Ping timeout: 246 seconds)]
hc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rickynils pushed 1 new commit to release-17.03: https://git.io/v5H5q
<NixOS_GitHub>
nixpkgs/release-17.03 5ae9420 Rickard Nilsson: Revert "libarchive: Patch for CVE-2017-14166"...
NixOS_GitHub has left #nixos []
<sphalerite>
cache.nixos.org giving me 500s/503s :(
<Infinisil>
url to test?
pxc has joined #nixos
erictapen has joined #nixos
slyfox_ is now known as slyfox
michas has joined #nixos
acowley_away is now known as acowley
<acowley>
cache is down for me, too
<domenkozar>
cache.nixos.org is DOWN
hc has quit [(Ping timeout: 248 seconds)]
<bennofs>
isn't that s3?
hc has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ee1943 has joined #nixos
<ee1943>
anyone else having trouble fetching binaries from the cache?
<Infinisil>
Is down indeed
Radivarig__ has quit [(Remote host closed the connection)]
Radivarig has quit [(Remote host closed the connection)]
<sphalerite>
Also, has anyone got Agda to work in any way? I'm starting a class that involves Agda next week and it would be good to get it working
peacememories has joined #nixos
<ee1943>
Infinisil: ok, thought it was just me. thanks
Radivarig__ has joined #nixos
Radivarig has joined #nixos
<Infinisil>
Man, I really want IPFS integration..
<Infinisil>
Wouldn't happen if the cache was IPFS backed
<Infinisil>
Especially with filecoin coming
<acowley>
Anyone know what the plans for rustc in nixpkgs are?
<gchristensen>
acowley: what do you mean?
oida_ has joined #nixos
Filystyn has joined #nixos
hc has quit [(Ping timeout: 252 seconds)]
<gchristensen>
the Cache issue is an issue with the backing store, S3
hc has joined #nixos
sellout- has quit [(Quit: Leaving.)]
<mmts>
joepie91: thanks for your tip on the xen options page, just have to work myself into the details, but seems to be the right way to go on
<sphalerite>
I think once rust itself becomes more stable I imagine some of the structure in nixpkgs-mozilla will be imported to nixpkgs and rustc will be maintained better
<sphalerite>
I don't actually know, but that seems like the obvious thing to do
<acowley>
gchristensen: The one in nixpkgs is fairly old.
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
sellout- has joined #nixos
<acowley>
sphalerite: Thanks, that sounds like a good plan
<acowley>
It's a shame we don't yet have binaries for newer versions
<sphalerite>
I believe the nixpkgs-mozilla stuff comes from the official binary distribution
<edef>
I rely on nightly features, though
<sphalerite>
edef: how is that different from the nightly channel provided by nixpkgs-mozilla?
sellout- has joined #nixos
<edef>
uncertain, I don't use nixpkgs-mozilla
hc_ has joined #nixos
<acowley>
I just noticed that nixpkgs-mozilla says that binary channel is a TODO as is darwin support
lonokhov has joined #nixos
<acowley>
As a darwin user and big fan of binary caches, I
<acowley>
am wary
<acowley>
:P
kans has joined #nixos
kans is now known as kanshazan
hc has quit [(Ping timeout: 240 seconds)]
<michas>
Hi, after installing nix I have only one unstable nixpkgs channel. After I add a stable nixos channel, how do I install a tool exactly from that channel?
pie_ has quit [(Ping timeout: 264 seconds)]
<michas>
Is there an easy way to install nix from a different channel in the beginning?
<kanshazan>
New to NixOS: How do I turn off the touchpad on my laptop? I have synaptics.enable = false, but after rebuilding withour errors the touchpad is still working.
<schoppenhauer>
hi. i want to slowly migrate my server from debian to nixos. the thing is … I am not a friend of doing this all at once. does anyone have an idea of how to "smoothly" migrate to nixos, not all at once? (like, have a debian-vm or something)
pie_ has joined #nixos
nckx has joined #nixos
hc has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
no
hc has joined #nixos
peacememories has joined #nixos
<Infinisil>
Can't install a program because cache is down :(
<michas>
schoppenhauer, You could give cubesOS a try. This way you can use multiple OS at the same time.
<hedning[m]>
Can't install nixos on new laptop because the cache is down :((
<ToxicFrog>
Infinisil, hedning[m]: it would be nice if it could fall back to local builds when that happens rather than just giving up on life entirely
peacememories has quit [(Client Quit)]
<Infinisil>
ToxicFrog: This might be viable for small packages
stepcut_ has joined #nixos
<hedning[m]>
true, but I'm thinking it would take while since I'm importing my old config
<Infinisil>
definitely
<hedning[m]>
would've been nice having the option to easily use another pc as cache though
<Infinisil>
and add use-binary-caches false to options to fallback to local builds
<LnL>
I didn't know about ssh-substituter-hosts
<Infinisil>
Also just found out a few days ago
<ToxicFrog>
Infinisil: in my case I want to install a single small package without changing anything, and in fact the package is already in local store!
<ToxicFrog>
But nixos-rebuild switch wants the latest stage-2-init.sh and falls over.
sauyon has quit [(Ping timeout: 255 seconds)]
<Infinisil>
ToxicFrog: Just try with --option use-binary-caches false
tsm has quit [(Ping timeout: 260 seconds)]
<joepie91>
mmts: please let me know whether it ends up working :) would be good for me to take mental notes in case somebody else asks Xen questions in the future
<Infinisil>
It's suprisingly simple
<ToxicFrog>
Hmm
uwx-100 has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
Bug report: --option use-binary-caches false appears to be working, but --option use-binary-caches=false exits with no output at all.
<Infinisil>
that's just not the supported syntax
<Infinisil>
[--option name value] is the man page
<Infinisil>
in*
<schoppenhauer>
michas: no, I don't want to have both run at the same time on the long run.
hc_ has joined #nixos
<ToxicFrog>
Infinisil: to be clear, the bug isn't "it doesn't support this"
<schoppenhauer>
michas: just at a transition phase
LnL_ has joined #nixos
<ToxicFrog>
The bug is "when I type this because I'm used to it from other programs, it calls exit(1) with no output of any kind, not even an error message"
<Infinisil>
ToxicFrog: Ah
<disasm>
haha, I've burned through almost 100 GB fixing broken packages :)
LnL_ has quit [(Client Quit)]
andrewmcveigh has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Will using stack (the haskell package manager) like on imperative OSes work fine? I need to get Agda working and the nix package is apparently broken
<lonokhov>
it's like gentoo...
hc has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
<schoppenhauer>
hm. ok. is there any recommended way of installing nixos into a linux container? I only found https://github.com/NixOS/nixpkgs/issues/9735 and it seems kind of strange
peacememories has joined #nixos
newhoggy has joined #nixos
<schoppenhauer>
ah, maybe it is possible to run NixOps with debian
hc has joined #nixos
hc_ has quit [(Ping timeout: 240 seconds)]
<lonokhov>
schoppenhauer: I think it should be possible with nixos-container, I think it just creates nspawn container. never tried outside of nixos though
<schoppenhauer>
hm.
odi has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v5HAv
<NixOS_GitHub>
nixpkgs/master cd97211 Daiderd Jordan: rtags: use clang-unwrapped
NixOS_GitHub has left #nixos []
<schoppenhauer>
NixOps seems to only require Nix
pie_ has quit [(Read error: Connection reset by peer)]
<acowley>
LnL: What's the thinking behind that rtags commit?
takle has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<disasm>
schoppenhauer: yes, it is possible to run nixops from any linux system. What I would suggest for a transition would be install nix in debian and start playing with it, getting familiar. You won't have all the services/config layer of nixos, but you can start playing with nix-shell to get the things working you care most about, then when you go nixos, you'll at least know most of the stuff you use is ready to
newhoggy has quit [(Read error: Connection reset by peer)]
<Lisanna_>
The build for nix-prefetch-git appears to be failing ):
<Lisanna_>
can someone else try?
<schoppenhauer>
disasm: I am familiar with nixos, and most of the services should be easily configurable in nixos.
hc has quit [(Ping timeout: 255 seconds)]
<Lisanna_>
nix-shell -p nix-prefetch-git
newhoggy has joined #nixos
<Infinisil>
Lisanna_: Cache is down
<acowley>
LnL: The build log is not available :()
<disasm>
not quite 100 GB: 54324 store paths deleted, 75047.59 MiB freed
<schoppenhauer>
disasm: but it seems to me that nixops is a good way to start.
<LnL>
or right, because the cache is down :/
hc has joined #nixos
<acowley>
LnL: I'm just curious because I've not had any issues that would suggest a clang problem
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Infinisil>
But nix-prefetch-git just got downloaded from the cache for me
<Infinisil>
I think it's only part of it that's down
<acowley>
LnL: The biggest pain (and it is big) is digging out dependency paths and feeding them into an .rdmrc
newhoggy has quit [(Read error: Connection reset by peer)]
<Lisanna_>
How long has it been down?
newhoggy_ has joined #nixos
<LnL>
acowley: the libstdc++ hook I added recently causes issues if you include a cc-wrapped clang if the build still uses gcc
kanshazan has quit [(Ping timeout: 260 seconds)]
<mmts>
joepie91: it seem to have installed and booting fine, just needed to add "xen" and "bridge-utils" packages to be installed via configuration.nix; I'll have to play with it the next days to see if it's stable and functional as a virtual host, thanks
<Infinisil>
Lisanna_: 45 minutes age it was first reported here
<Infinisil>
ago*
<acowley>
LnL: Oh, I see! I guess that wouldn't typically affect me on darwin.
<LnL>
yeah exactly
<joepie91>
mmts: it didn't add those packages automatically?
<joepie91>
mmts: if they are required for correct functioning of Xen, that might be a bug in nixpkgs
grantwu has joined #nixos
<acowley>
LnL: Do you have any suggestions for helping rdm find dependencies? My method is to run make with NIX_DEBUG=1, then copy-paste paths into an .rdmrc. This works, but is manual and breaks whenever nixpkgs updates.
<joepie91>
mmts: (modules in NixOS/nixpkgs are expected to add all dependencies needed for their functioning)
takle has joined #nixos
<grantwu>
I'm having a bunch of issues with downloads not completing
<catern>
how long has the cache been down?
<LnL>
acowley: not sure what you mean, are there dependencies that won't break the build?
<Infinisil>
grantwu: Cache down
<grantwu>
catern: Ah, is that the problem
<catern>
it sure is :)
<Infinisil>
catern: 45 minutes at least
<catern>
wasn't it down yesterday too?
<Infinisil>
But some downloads work, not sure why
newhoggy_ has quit [(Ping timeout: 240 seconds)]
hc_ has joined #nixos
<acowley>
LnL: Say you have a project that depends on eigen. You add it to your shell.nix, and now you can invoke clang to compile your thing. But if rdm tries to load your code, it won't be able to find the eigen include paths.
<acowley>
LnL: So what I do is have an .rdmrc that includes those paths for each project.
<LnL>
sounds like you'd want something similar to the cc-wrapper for that
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/v5HxC
<NixOS_GitHub>
nixpkgs/master d27f710 Maarten Hoogendoorn: mount is in utillinux
NixOS_GitHub has left #nixos []
<acowley>
LnL: Given that rdm is using libclang to load the source files, where could one inject a wrapper?
<LnL>
the stdenv puts buildInputs in NIX_CFLAGS_COMPILE and the cc-wrapper makes clang/gcc know about it
<acowley>
I see
takle has quit [(Remote host closed the connection)]
<acowley>
So I should have rdm grab NIX_CFLAGS_COMPILE
<mmts>
joepie91: "bridge-utils" is possibly not a dependency, but usefull; "xen" might be one, since I didn't have necessary "xl" command before installing it
takle has joined #nixos
hc has quit [(Ping timeout: 264 seconds)]
Viaken2 has quit [(Ping timeout: 260 seconds)]
<joepie91>
mmts: right, probably worth opening an issue on nixpkgs to include that
<joepie91>
would be reasonable to expect `xl` to be available
<LnL>
acowley: yeah basically, you might be able to use wrapCC rtags but I'm not sure how that figures out what binaries it should wrap
spear2 has joined #nixos
sauyon has joined #nixos
newhoggy has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
<LnL>
looks like it's hardcoded
<acowley>
Where is wrapCC defined?
<sauyon>
hrm
<sauyon>
I'm getting 503s from cache.nixos.org
takle has joined #nixos
<acowley>
sauyon: You are not alone
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/v5Hxh
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v5Hjn
<NixOS_GitHub>
nixpkgs/master 3c70ed9 Daiderd Jordan: rtags: fix darwin build
NixOS_GitHub has left #nixos []
<Yaniel>
oh, so the cache was actually down
<Yaniel>
I was worried I'd broken my system channels completely
<catern>
hey #nixos
<catern>
how big is the current Nix build farm and how long does it take to do a mass rebuild?
<Infinisil>
Hey catern :)
<catern>
it's several days, right? anything more specific?
<sphalerite>
hyper_ch: other random unsolicited input on your configuration.nix: rather than typing :l <nixpkgs> into nix-repl you can just run nix-repl '<nixpkgs>' right away and get nixpkgs in scope already. Or even more convenient, use the nix tab completion for zsh :) (I think there might be one for bash too)
<sphalerite>
as for how long a mass rebuild takes, I believe it depends on the channel. the -small channels will obviously not take as long, but I don't think it takes several days for a mass-rebuild
<Infinisil>
?*
erictapen has quit [(Ping timeout: 240 seconds)]
<acowley>
LnL: I don't understand cc-wrapper enough to do it, but it looks like the `rc` executable takes likely looking flags and sends them along to rdm.
nslqqq has joined #nixos
<Yaniel>
for restoring nix-env to a working state, is anything else needed besides symlinking the channels_root to .nix-defexpr?
<sphalerite>
Yaniel: depends on how it was broken :D but if it was just .nix-defexpr going missing, then yes
simukis has quit [(Ping timeout: 240 seconds)]
<Yaniel>
okay
<Yaniel>
I apparently managed to mess up my move to unstable which caused a clash in .nix-defexpr/channel* so I may have removed the channels_root symlink
<Yaniel>
and now it bit me when apparently my user profile was at a completely different version of the unstable channel than the rest of the system
<Mic92>
sphalerite: do you already have plans for later?
<sphalerite>
Probably leaving the UK, I want to stay in the EU :D
<sphalerite>
Germany's more or less at the top of my list ATM, partly because I'm German but have never lived there and that seems like something to catch up on
pie_ has quit [(Ping timeout: 264 seconds)]
<sphalerite>
Also because opportunities there seem good and there seem to be a few companies doing nix stuff over there
<Mic92>
sphalerite: well I keep my German passport. It is also not yet decided, what Scotland will do.
takle has quit [(Ping timeout: 240 seconds)]
<Mic92>
sphalerite: do you go to nixcon?
<sphalerite>
Yep!
<Mic92>
sphalerite: me too
<Infinisil>
Am going too :D
<Infinisil>
Am a bit confused though
<sphalerite>
And yeah, the whole leaving-the-UK thing isn't set in stone
eacamero_ has quit [(Remote host closed the connection)]
<sphalerite>
I've got another 10 months or so to decide, including nixcon
Viaken2 has joined #nixos
<Infinisil>
I got a mail saying "You are confirmed for NixCon 2017" a day after registering. I thought it would take a while to decide who gets to go
jellowj has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
<sphalerite>
Mic92: so are you managing to understand the Scottish? :p
<Mic92>
Infinisil: I suppose first come, first serve.
<sphalerite>
"Please note that we will give preference to people from underrepresented groups in tech and people who have written blog posts, code or given talks related to NixOS. "
<Mic92>
sphalerite: in university there not too many native Scottisch and I have not been in the countryside too much so far
<Infinisil>
Well I'm glad I get to go :D
<Infinisil>
Ahh, there I am, on the participants page
<sphalerite>
Infinisil: your activity on here can't have harmed your chances of getting included ;)
jellowj has joined #nixos
<Infinisil>
^.^
<Infinisil>
same for you sphalerite
eacameron has quit [(Remote host closed the connection)]
<sauyon>
Infinisil: how do you enable optdepends anyway
<sphalerite>
Mic92: hehe. It just depends on the people really, I'm a native speaker of English and I've been living here for 3 years and I couldn't understand a guy asking me a question on the street a couple of weeks ago :p
<sphalerite>
sauyon: using .override generally
dieggsy` has joined #nixos
<sauyon>
bleargh
<sphalerite>
So if the package has an sdlSupport option as an input, you can do something like ffmpeg.override {sdlSupport = false;}
<sauyon>
is it on by default?
<Mic92>
sauyon: you can look into the header of ffmpeg/default.nix
eacameron has joined #nixos
dieggsy has quit [(Ping timeout: 240 seconds)]
<Infinisil>
But, if an optional dependency is done with { fooSupport ? false, foolib ? null }, won't you have to also provide a foolib?
<sphalerite>
Depends on the package, the package specifies the default generally
<sauyon>
I mean
<sauyon>
if it's false by default it's probably just pkgs.whatever right
<sauyon>
it's just a bit ugly but yeah makes sense
<sphalerite>
Infinisil: usually it's with { fooSupport ? true, libfoo } and if fooSupport is false it's just not included in the buildInputs
<sphalerite>
Would be nice to have more consistent naming though
<Infinisil>
Oh right
<sphalerite>
Sometimes it's fooSupport, sometimes it's withFoo, sometimes it's enableFoo, sometimes it's fooEnabled...
<symphorien>
I have seen { libfoo ? null } and libfoo is added to buildInputs only if it is non null
<Infinisil>
Also I feel like having a single attribute for both build configuration and packages is a bit weird
<sauyon>
I think that's what the old quodlibet package did lemme check
<sauyon>
oh I see
<LnL>
yeah those options are all over the place
<sauyon>
no it had an argument
<sphalerite>
symphorien: yeah that's also an option. In fact you don't even need to make the inclusion conditional iirc, stdenv is ok with buildInputs containing null
<sauyon>
and included packages based on it
<sauyon>
should I?
<Infinisil>
I would use something like { fooSupport ? false, enableBar ? false }: { bazlib, cmake }: stdenv.mkDerivation ...
<sauyon>
should we pick something :P
<sphalerite>
So that way is nice for brevity, and you don't need to think about the naming :D
<sauyon>
so you do have pkgs in override?
<sphalerite>
Infinisil: the problem with that is that .override only applies to the outer layer. In fact I'm not sure it would work with callPackage at all
sigmundv__ has joined #nixos
<Infinisil>
symphorien: Looks like ffmpeg does this
<sphalerite>
Because callPackage expects a function or a path to a function expression that's Set -> Set
eacameron has quit [(Ping timeout: 240 seconds)]
<Infinisil>
sphalerite: Yeah, the override setup would have to change a bit, but it would be cleaner imo
<sphalerite>
(And not Set -> Set -> Set)
<sphalerite>
I don't think so
<sphalerite>
I think keeping just one layer of inputs which are treated equally is cleaner and simpler
<Infinisil>
Hmm
<Infinisil>
Yeah I guess these options can be considered input too
<sphalerite>
And I like the setup symphorien mentioned because it's short and avoids the need for a naming convention
andrewmcveigh has joined #nixos
<sphalerite>
Of course it still makes sense to have flags for a package but it's nicer if they're not redundant with the dependencies
<Infinisil>
But why not { fooSupport ? false, foolib, ...}: ... buildInputs = [] + optional fooSupport foolib
<Infinisil>
What's the problem there
<sauyon>
naming
<sphalerite>
It's more complex and you need a naming convention
<Infinisil>
hmm okay
<sauyon>
honestly I'm tempted to just not do optdepends for, like, some gst plugins
<Infinisil>
the <x>Support thing, right?
<sphalerite>
And then you have multiple ways of achieving the same thing
takle has joined #nixos
<sphalerite>
sauyon: gst plugins are generally passed at a wrapping level anyway
<sauyon>
I mean I still need them as deps no
pie_ has joined #nixos
<sphalerite>
Infinisil: like with the example you said, bar.override {fooSupport = false;} would be practically equivalent to bar.override {libfoo = null; }
<sphalerite>
Might even evaluate to the same thing, not sure about that though
<sphalerite>
sauyon: if you don't wrap your program such that it will reference them, I don't think they'll be used
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29396: Binutils wrapper: Init by refactoring out of cc-wrapper (master...binutils-wrapper) https://git.io/v5QTV
NixOS_GitHub has left #nixos []
<sphalerite>
sauyon: ah right. Then yes, I believe it will make a difference
<sauyon>
though I'm really not sure whether that's the best way to do it
takle has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Neither do I. Maybe just grep for GST_.*_PATH (I think there's something like GST_1_0_STUFF as well) in nixpkgs and see how/where else it's done
anderslundstedt has quit [(Quit: leaving)]
<Infinisil>
Quite a bunch of results
<sphalerite>
Sounds like a refactoring opportunity :p
<sauyon>
yeah it's used by a bunch of stuff in a bunch of wayr
<sauyon>
wee
dieggsy` has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Ping timeout: 240 seconds)]
<sauyon>
wrapping it with the prefix seems most common though
mattcode has quit [(Quit: Leaving)]
sary has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
sary has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar opened pull request #29397: gnome3: only maintain single GNOME 3 package set (master...single-gnome) https://git.io/v5QIJ
LysergicDreams has quit [(Ping timeout: 240 seconds)]
<sauyon>
btw I'm making an argument "xineBackend" for using the xine backend instead of the gst one
LysergicDreams has joined #nixos
<mbrock>
sphalerite: I used the Agda from haskellPackages a while back and it seemed to work fine
<mbrock>
sphalerite: iirc I just had to set a path to the stdlib source
JosW has quit [(Quit: Konversation terminated!)]
<sphalerite>
mbrock: neat. I got it to the point where I could run "agda" and got a help message, but also discovered it's marked as broken in 17.09 and unstable
<jbyler>
I'm also having problems accessing https://cache.nixos.org/. Chrome gives a vague "net::ERR_INVALID_RESPONSE" error. curl shows a 404 error coming back with Content-Type binary/octet-stream, and header "X-Cache: Error from cloudfront"
justan0theruser has joined #nixos
<sphalerite>
mbrock: if you have any further details I'd love to hear them :l
<jbyler>
Sounds like an AWS issue, though whether it's an outage or a configuration problem I can't say.
<sphalerite>
:) *
<sphalerite>
jbyler: yeah, outage
<sphalerite>
Been affecting S3 generally, apparently mostly in the US
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<sauyon>
that was strange
<sauyon>
anyway
<sauyon>
is there a boolean for building on osx
phinxy has joined #nixos
<sauyon>
ie, how do I check if a package is being built on osx
<disasm>
ooh, sphalerite and Infinisil are going to NixCon :) Looking forward to meeting ya!
phinxy has left #nixos []
<disasm>
sauyon: not quite sure what your question is
<sphalerite>
:) likewise
<sauyon>
disasm: the package I'm writing has a dependency that's only required on os
<sauyon>
x
sary has joined #nixos
<mbrock>
sphalerite: dunno, a comment in nixpkgs mentions some segfault when building on hydra as the reason for marking it broken...
<sphalerite>
mbrock: alright, I'll hunt through the git logs
<samueldr>
sauyon: there's stdenv.isDarwin
<sauyon>
thanks
<sphalerite>
For now though, sleep :D gnight all!
<samueldr>
not sure the where is the canonical documentation for this
lonokhov has quit [(Remote host closed the connection)]
<Lisanna_>
samueldr: that section specifically references linux_3_4 though. Going out on a limb here and saying that's probably not completely correct anymore?
<samueldr>
it should still work, the example text must not have been updated
<Lisanna_>
I mean, I'm otherwise not specifying what version of the kernel to use, I'm just using NixOS default. So should I say "linux" instead, since I'm pretty sure that's the nixpkg that I'm on?
<samueldr>
sorry Nobabs27[m], couldn't tell, I was wrongly assuming it wasn't in 17.03 since I didn't check properly
anderslundstedt has joined #nixos
mudri has quit [(Ping timeout: 248 seconds)]
<Nobabs27[m]>
samueldr: mk
<Nobabs27[m]>
:P
<samueldr>
Lisanna_: the fun thing is that if the kernel can't boot, you're one trip into your boot manager away from the previous generation
<Lisanna_>
Yep
<samueldr>
(shouldn't even go as far as not booting if something goes wrong)
<Lisanna_>
(by "safe" I meant foolproof against the whims of the NixOS maintainers monkeying with the default values for those options, but it's also safe in that way ^^)
<samueldr>
Nobabs27[m]: I've grepped around the nixpkgs repo, and it looks like it's `qtx11extras`, not `qt5.qtx11extras`
Denommus has joined #nixos
<Denommus>
hey
<Denommus>
I'm trying nixops out
<Denommus>
but I'm getting time outs in the ssh connection, during deploy
<Denommus>
this looks like a common problem, but I can't seem to find a solution
<Denommus>
yes, I have a host-only network configured
<Lisanna_>
Denommus: I've been using nixops pretty extensively recently, maybe I can help
<Nobabs27[m]>
Denommus: well if its host to VM then virtualbox doesn't give the VM real IPs.
<Nobabs27[m]>
The "bridged adapter" thing fixes that. (if thats what your issue is)
<jbyler>
So the AWS Service Health Dashboard shows the S3 incident as having been resolved over 2 hours ago, and cache.nixos.org is still returning errors. How confident are "we" that whatever outage is affecting cache.nixos.org is known by Amazon and being worked on? I'm concerned that this might not go away on its own...
Viaken2 has quit [(Ping timeout: 240 seconds)]
MarcelineVQ has quit [(Ping timeout: 260 seconds)]
MarcelineVQ has joined #nixos
<Denommus>
I did it
<Denommus>
I deleted and recreated the host-only network and changed the address bounds, now it works
snikkers has quit [(Ping timeout: 246 seconds)]
<Lisanna_>
error: attribute ‘override’ missing :(
<Lisanna_>
is package overriding not possible with just any package?
<Nobabs27[m]>
should I file a bug report on nixpkgs about qtx11extras?
nadley has quit [(Ping timeout: 252 seconds)]
<yrashk>
I am trying to get around a problem with the `tilix` derivation. It is in unstable only and it depends on `dmd` which is marked as broken in unstable. I've been trying to use overrideDerivation to make it use stable dmd instead, but to no avail, it still tries to build unstable dmd as a dependency. Any hints on how can this be approached? Thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29402: treewide: Fix some references to binutils (master...binutils-output-ref) https://git.io/v5QsM
NixOS_GitHub has left #nixos []
<Lisanna_>
yrashk: does tilix support overrideDerivation?
darlan has joined #nixos
darlan has quit [(Client Quit)]
<Lisanna_>
oh, never mind, it probably does
<yrashk>
I am still learning. What can be used as an indicator of this support?
<jbyler>
Oops, it turns out cache.nixos.org is OK. There's just nothing at the root URL. But https://cache.nixos.org/nix-cache-info works fine. Feature request: a static file at the root URL to keep the crazies from reporting an outage when there isn't one... =)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/v5Qcm