<sheenobu> yeah where does this firewall entry come from?
<Dezgeg> I guess it looks better with iptables -vL: 500 35450 nixos-fw-accept all -- lo any anywhere anywhere
<sheenobu> OH. Thanks Dezgeg
eacameron has quit [(Ping timeout: 252 seconds)]
eacameron has joined #nixos
herzmeister has quit [(Quit: Leaving)]
<sheenobu> ech chromium is a 400mb download
eacameron has quit [(Ping timeout: 248 seconds)]
<clever> -r-xr-xr-x 1 root root 179M Dec 31 1969 /nix/store/f6r0xahj842q7b2kkg4rlcjnxl8a1lw6-chromium-53.0.2785.143/libexec/chromium/chromium
herzmeister has joined #nixos
<clever> sheenobu: the correct statement is, ech chromium is a bloody 179mb binary
<sheenobu> woooow T_T
<clever> and thats WITH dynamic linking
<sheenobu> my system usually forces a compilation of chromium
<clever> sheenobu: one of the plugin options causes a recompile
<sheenobu> yes. not sure if i'm downloading the source or the binary yet. I do use widevine and flash which causes it
vandenoever has quit [(Ping timeout: 258 seconds)]
pi3r has quit [(Ping timeout: 250 seconds)]
<sheenobu> huh. nix-prefetch-url is /much quicker/ than nixos-rebuild build for this URL. I'm guessing nixos-rebuild build has some option to limit bandwidth?
<clever> it shouldnt
<clever> but nix builds sometimes cheat and use tarballs.nixos.org
<k11`> clever: I have same problem... It seems my configuration is bad :\
<sheenobu> I just grabbed the cache.nixos.org URL that nixos-rebuild was reporting
<sheenobu> (and it doesn't accept it)
pi3r has joined #nixos
thc202 has quit [(Ping timeout: 246 seconds)]
<clever> sheenobu: the cache.nixos.org url's are NAR files, which need to be unpacked to the correct location in /nix/store, so nix-prefetch-url wont like them
<clever> k11`: out of ideas and i need sleep, nearing 24 hours uptime
* clever heads to bed
<k11`> clever: thx, bye
<k11`> I fail understand that happened with my system :(
glines has quit [(Ping timeout: 258 seconds)]
c0bw3b has left #nixos []
<rotaerk> what's the standard location for a user-specific bin folder? just ~/bin or ~/.local/bin, or what
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v1oJU
<NixOS_GitHub> nixpkgs/master f928160 zimbatm: afl: 2.23b -> 2.35b
<rotaerk> or is there no "standard"
pi3r has quit [(Ping timeout: 265 seconds)]
markus1199 has joined #nixos
stepcut has joined #nixos
markus1189 has quit [(Ping timeout: 265 seconds)]
stepcut has quit [(Ping timeout: 264 seconds)]
lverns has quit [(Ping timeout: 258 seconds)]
anelson_ has quit [(Remote host closed the connection)]
anelson_ has joined #nixos
<Ralith> if you're on nix, you don't need such a thing
systemfault has joined #nixos
filterfish has quit [(Remote host closed the connection)]
glines has joined #nixos
slack1256 has joined #nixos
evck has quit [(Ping timeout: 240 seconds)]
Fare has quit [(Ping timeout: 265 seconds)]
stepcut has joined #nixos
bfrog has quit [(Quit: WeeChat 1.6)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
mudri has quit [(Quit: WeeChat 1.6)]
evck has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
FrozenCow has quit [(Remote host closed the connection)]
[0x4A6F] has quit [(Ping timeout: 256 seconds)]
[0x4A6F] has joined #nixos
glines has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
glines has joined #nixos
rotaerk has quit [(Quit: Leaving)]
Rotaerk has joined #nixos
filterfish has joined #nixos
evck has quit [(Ping timeout: 250 seconds)]
Shell has quit [(Remote host closed the connection)]
TimePath has quit [(Remote host closed the connection)]
bennofs has quit [(Remote host closed the connection)]
Ralith has quit [(Remote host closed the connection)]
offlinehacker[m] has quit [(Remote host closed the connection)]
chattered has quit [(Read error: Connection reset by peer)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
mizu_no_oto has joined #nixos
derjohn_mobi has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
glines has quit [(Ping timeout: 260 seconds)]
evck has joined #nixos
gfixler has joined #nixos
regnat[m] has joined #nixos
evck has quit [(Ping timeout: 258 seconds)]
glines has joined #nixos
iyzsong has joined #nixos
evck has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
xwvvvvwx has joined #nixos
CMCDragonkai has left #nixos []
CMCDragonkai has joined #nixos
SShrike has joined #nixos
nhooyr has joined #nixos
bachp has joined #nixos
masia[m] has joined #nixos
jack[m] has joined #nixos
mythmon- has joined #nixos
M-wkennington has joined #nixos
zimbatm[m] has joined #nixos
flo[m] has joined #nixos
Shell has joined #nixos
av[m] has joined #nixos
M-roblabla has joined #nixos
primeos[m] has joined #nixos
ntninja has joined #nixos
davidar has joined #nixos
Guest77172 has joined #nixos
MrAxilus[m] has joined #nixos
guanjian[m] has joined #nixos
rsynnest[m] has joined #nixos
org-rubo78[m] has joined #nixos
chexxor_web[m] has joined #nixos
offlinehacker[m] has joined #nixos
rycee[m] has joined #nixos
M-Shrike has joined #nixos
Grill[m] has joined #nixos
M-jackal has joined #nixos
musicmatze[m] has joined #nixos
Kiko[m] has joined #nixos
bendlas has joined #nixos
prose[m] has joined #nixos
saintaquinas[m] has joined #nixos
unlmtd[m] has joined #nixos
Guest61891 has joined #nixos
ArdaXi[m] has joined #nixos
aspiwack[m] has joined #nixos
Ralith has joined #nixos
cornu has joined #nixos
baldo[m] has joined #nixos
icetan has joined #nixos
eqyiel[m] has joined #nixos
Yaniel has joined #nixos
M41px[m] has joined #nixos
bennofs has joined #nixos
lfont[m] has joined #nixos
regnt[m] has joined #nixos
citizenziggy[m] has joined #nixos
M-schneeflocke has joined #nixos
M-manveru has joined #nixos
jcl[m] has joined #nixos
danielrf[m] has joined #nixos
cinderfish[m] has joined #nixos
M-appservice_irc has joined #nixos
CMCDragonkai has quit [(Remote host closed the connection)]
CMCDragonkai has joined #nixos
glines has quit [(Ping timeout: 265 seconds)]
evck has quit [(Ping timeout: 245 seconds)]
<k11`> $ ls -al /nix/var/nix/profiles/system-14-link/etc/systemd/system
<k11`> lrwxrwxrwx 1 root root 1 Jan 1 1970 /nix/var/nix/profiles/system-14-link/etc/systemd/system -> '='
<gchristensen> clever: "[root@kexec:~]# " :)
justan0theruser has quit [(Ping timeout: 250 seconds)]
mbrgm has quit [(Ping timeout: 244 seconds)]
mbrgm has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
ericsagnes has quit [(Ping timeout: 245 seconds)]
alx741 has quit [(Quit: alx741)]
alx741 has joined #nixos
filterfish has joined #nixos
nh2_ has quit [(Ping timeout: 265 seconds)]
evck has joined #nixos
<gchristensen> hrm. this is turning in to a difficult project.
PragCyph1 has quit [(Read error: Connection reset by peer)]
PragCyphr has joined #nixos
gfixler has quit [(Ping timeout: 265 seconds)]
mizu_no_oto has joined #nixos
evck has quit [(Ping timeout: 252 seconds)]
mizu_no_oto has quit [(Client Quit)]
systemfault has quit [(Quit: Bye!)]
<gchristensen> nathan7: do you have any tips on getting a nixos install working over there?
gfixler has joined #nixos
hexagoxel has quit [(Ping timeout: 264 seconds)]
Fare has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
hexagoxel has joined #nixos
mguentner2 has quit [(Quit: WeeChat 1.6)]
evck has joined #nixos
mguentner has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
viric_ has joined #nixos
viric__ has quit [(Ping timeout: 240 seconds)]
ericsagnes has joined #nixos
evck has quit [(Ping timeout: 240 seconds)]
Fare has quit [(Ping timeout: 246 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
glines has joined #nixos
mguentner2 has joined #nixos
mguentner has quit [(Ping timeout: 248 seconds)]
<nathan7> gchristensen: well, I nearly have network
filterfish has joined #nixos
glines has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Read error: Connection reset by peer)]
lverns has joined #nixos
<gchristensen> nathan7: are you finding fast internet there? my ubuntu box, as installed, is taking several minutes to download a 30mb file
<gchristensen> curl is reporting the speed as "68"
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
lverns has quit [(Quit: Konversation terminated!)]
lverns has joined #nixos
<nathan7> gchristensen: I've only used the NJ and Amsterdam DCs
filterfish has joined #nixos
<gchristensen> I just brought one up in ewr1
filterfish has quit [(Read error: Connection reset by peer)]
justanotheruser has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has quit [(Ping timeout: 256 seconds)]
lverns has quit [(Ping timeout: 258 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
evck has joined #nixos
osa1 has joined #nixos
jacob_ has joined #nixos
jacob_ is now known as Guest90750
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has quit [(Remote host closed the connection)]
hotfuzz_ has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
stepcut has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
nckx has quit [(Ping timeout: 246 seconds)]
stepcut has quit [(Ping timeout: 248 seconds)]
nckx has joined #nixos
eacameron has joined #nixos
Guest77172 is now known as TimePath
TimePath is now known as Guest81133
Guest81133 is now known as TimePath[m]
eacameron has quit [(Ping timeout: 252 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] amiloradovsky closed pull request #21012: planner: making Gantt and Resource Usage views usable (master...planner-line-styles) https://git.io/v1aAL
indi_ has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
wink has quit [(Remote host closed the connection)]
indi_ has quit [(Remote host closed the connection)]
k11` has quit [(Quit: k11`)]
filterfish has quit [(Ping timeout: 258 seconds)]
filterfish has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
zraexy has joined #nixos
chattered has joined #nixos
<joepie91> this is driving me crazy... nixos-rebuild is *insisting* that it can't install unfree packages even though I have allowUnfree set to `true`...
<joepie91> I'm trying to move my system config out into a repository of profile / software sets and this is breaking me up right now :/
<joepie91> how do I debug this?
slack1256 has quit [(Remote host closed the connection)]
vandenoever has joined #nixos
filterfish has quit [(Ping timeout: 248 seconds)]
filterfish has joined #nixos
<NixOS_GitHub> [nixpkgs] boronine opened pull request #21056: mbedtls: 2.3.0 -> 2.4.0 (master...mbedtls-2.4.0) https://git.io/v1o3H
gfixler has quit [(Quit: WeeChat 1.4)]
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/v1o3x
<NixOS_GitHub> nixpkgs/master 9aca55e Linus Heckemann: endless sky: init at 0.9.4
zraexy has quit [(Ping timeout: 264 seconds)]
<NixOS_GitHub> [nixpkgs] rycee closed pull request #21010: endless sky: init at 0.9.4 (master...master) https://git.io/v1aP9
<sphalerite> joepie91: what does `nixos-option nixpkgs.config.allowUnfree` say?
filterfish has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
<sphalerite> Oh yay, that's my commit!
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
<clever> joepie91: can you gist your configuration.nix file?
<joepie91> clever: it's... complicated :) I'm in the process of breaking it up into a repo
<joepie91> clever: I've found a temporary workaround for now, I'll push to repo when I'm done
<joepie91> that should provide a reproducible case
<clever> my guess, is that you have an import <nixpkgs> somewhere
<joepie91> yes
<clever> and because you didnt specify the config argument, that doesnt use nixpkgs.config
anelson has joined #nixos
<clever> it uses /root/.nixpkgs/config.nix
<clever> import <nixpkgs> { config = config.nixpkgs.config; } will fix that
<joepie91> clever: ... that's some impressive blind debugging :)
<joepie91> clever: I was doing config = config.nixpkgs
zagy has joined #nixos
<joepie91> adding .config does indeed appear to fix it
<clever> ah, close!
CrashOverride has joined #nixos
filterfish_ has quit [(Ping timeout: 245 seconds)]
<clever> i have read the source behind how nixos loads nixpkgs repeatedly
<clever> and i have helped other users who did the above while cross-compiling mac->linux for nixops
<clever> in the mac case, the 2nd instance of nixpkgs defaulted to darwin, and now he has mach-o binaries in the systemd service on a linux server
anelson_ has quit [(Ping timeout: 250 seconds)]
<joepie91> clever: heh. that sounds undesirable...
<clever> yeah
<clever> _module.args.pkgs is a special config within the module framework, that adds an argument to all modules
<clever> this is why you can access pkgs from that top level
<joepie91> clever: hold on, just finishing my repo thing
edvorg has joined #nixos
zagy has quit [(Ping timeout: 240 seconds)]
ambro718 has joined #nixos
<joepie91> clever: there! https://git.cryto.net/joepie91/nixrc
<joepie91> err
<joepie91> accidentally pasted a buffer in there...
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #21057: qtstyleplugins: init at 01-12-2016 (master...master3) https://git.io/v1os7
<joepie91> fixed
<clever> joepie91: looks like you may wanto to look into how newScope and callPackage work
<joepie91> clever: probably
<joepie91> it doesn't seem to be especially documented :P\
<clever> and pulling up an example
<pikajude> clever: you can cross compile mac -> linux???
<clever> joepie91: pkgs.newScope self; creates a new instance of callPackage, and then for each argument in a given file, it will try self.arg, then pkgs.arg
<clever> pikajude: that setup was just using linux build slaves, not a proper cross-compile
<NixOS_GitHub> [nixpkgs] lsix opened pull request #21058: gsl: 2.2 -> 2.3 (master...update_gsl) https://git.io/v1osx
<pikajude> oh :(
<joepie91> clever: hm, not sure if that's what I want here though
<clever> pikajude: but the user had imported nixpkgs again, and half the derivations didnt do that
<clever> joepie91: it would let you create a bunch of packages, that are able to self-reference, and can be loaded via callPackage
<pikajude> yeah, i've had that exact issue before with nixops :)
<joepie91> clever: right, but how would that help in this case?
<clever> oh wait, those are in imports ....
<clever> maybe you want _module.args.foo, then you can just do { foo, pkgs, config, ... }: at the top
<joepie91> clever: callPackageFile is a small wrapper to pass my custom `packages` attribute set into them after importing them
<clever> then you wont need 2 lambda's in every file
<joepie91> that `packages` attribute set contains a few different package collections
<joepie91> (intentionally separated)
<clever> _module.args.packages = packages; would do the same thing
<pikajude> clever: *can* nix cross-compile darwin -> linux?
<clever> and merge it into the existing attrset
<clever> pikajude: using the crossDrv stuff, it probably could, but it would rely on package maintainers correctly using nativeBuildInputs and buildInputs
<joepie91> clever: _module.args?
<clever> joepie91: that is an internal part of the nixos module framework, that adds options to the { config, ... }: area
<clever> packages: {config, ...}: {
<clever> would become
<clever> { packages, config, ...}: {
<joepie91> clever: is that documented somewhere?
<clever> dont think ive seen it documented anywhere
<clever> and i think i'm the only person to have reused that module framework to create something that is not nixos
indi_ has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
ericsagnes has quit [(Ping timeout: 248 seconds)]
<sphalerite> What's the recommended way to set up a development environment now? Specifically for python in case that matters
<sphalerite> I feel like obsoleting the wiki leaves a big gap documentation-wise.
<joepie91> clever: I see, thanks, I'll have to look into that more later
kampfschlaefer has joined #nixos
FRidh has joined #nixos
<FRidh> sphalerite: have you checked the nixpkgs manual?
filterfish has joined #nixos
<sphalerite> ooooooh there it is
<sphalerite> http://python-on-nix.readthedocs.io/en/latest/ ?? aaah that's great
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<FRidh> sphalerite: no, that's an older piece I wrote.
indi_ has quit [(Remote host closed the connection)]
<sphalerite> >_>
indi_ has joined #nixos
<FRidh> its been merged in this manual, and modified several times as well
<sphalerite> ok
filterfish_ has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
bennofs1 has joined #nixos
Guest90750 has quit [(Ping timeout: 268 seconds)]
CrashOverride has quit [(Quit: Textual IRC Client: www.textualapp.com)]
hotfuzz_ has quit [(Ping timeout: 260 seconds)]
<sphalerite> meeeeh link to buildPythonPackage in the manual is broken
latk has joined #nixos
filterfish_ has quit [(Ping timeout: 258 seconds)]
<FRidh> yep, should be fixed
niksnut has quit [(Quit: Changing server)]
niksnut has joined #nixos
viric__ has joined #nixos
viric_ has quit [(Ping timeout: 258 seconds)]
pi3r has joined #nixos
filterfish has joined #nixos
roconnor has quit [(Ping timeout: 260 seconds)]
vandenoever has quit [(Ping timeout: 240 seconds)]
<srhb> ocharles_: If I'm not misremembering, you've been deploying Haskelly webby things with nix-copy-closure. Have you detailed this approach anywhere? I'm currently using NixOps, and I feel it's a bit heavyweight for most simple thiongs.
<ocharles_> srhb: right now we're deploying with nix-env -i and binary caches against hydra
<ocharles_> I haven't documented it much though :(
<ocharles_> If you check my github there is a heroku build pack
<clever> srhb: i have recently considered using nix-env to manage some network booting servers
<clever> let me pull up the man page and finish that idea up
<sphalerite> Hm. The application I'm working on uses gobject introspection, and I've got pygobject3 in the shell expression and it's working. It doesn't seem to be working with gtk though. I thought maybe I could get it by just adding it to the list of python packages, but I wasn't too hopeful that would work. What can I add to https://sphalerite.org/shell.nix to make gtk3 work?
<clever> srhb: [root@router:/tftproot/try2]# nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot -f not-os/release.nix -A rpi_image -I nixpkgs=./nixpkgs/ --set
<clever> srhb: this will built the rpi_image attribute of release.nix, and then set the rpi3-netboot profile to the resulting storepath, no -i or -e stuff to merge things
<sphalerite> The manual doesn't mention gobject at all
<clever> srhb: the reason ive been wanting to go this way, is that i now gain nix-env --rollback, so i can revert changes without having to revert the nix expressions first
<clever> srhb: and if copy-closure is in the mix, you should also be able to use nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot --set /nix/store/93pacv7s9k0fm2d497c6cd1j0g95vxrq-rpi_image
viric_ has joined #nixos
zagy has joined #nixos
viric__ has quit [(Ping timeout: 268 seconds)]
<srhb> ocharles_: OK, thanks!
<srhb> clever: Hmm, I will explore this.
m` has joined #nixos
<sphalerite> is it possible to pretty-print a derivation?
<MichaelRaskin> Well, start with indent
<sphalerite> ooh, much better
<MichaelRaskin> Another option is sed -re 's/[([]/\n&/g'
<MichaelRaskin> (and maybe indent afterwards)
zagy has quit [(Ping timeout: 245 seconds)]
<NixOS_GitHub> [nixpkgs] xvapx opened pull request #21059: steam: added java and steam-run to documentation, removed patchelf info (master...fix/steam-doc) https://git.io/v1oW7
filterfish has quit [(Remote host closed the connection)]
zagy has joined #nixos
<sphalerite> YES I got it working! Used mkDerivation with buildInput and stuff
jacob_ has joined #nixos
jacob_ is now known as Guest97229
esmiurium_ has joined #nixos
esmiurium has quit [(Quit: IRC (Quit: Page closed))]
zagy has quit [(Quit: Leaving.)]
mudri has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
vanrein has joined #nixos
<vanrein> Hi. I'm new to NixOS
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #21060: stdenv: add runPhase function (master...stdenv-run-phase) https://git.io/v1oli
indi_ has quit [(Remote host closed the connection)]
<vanrein> I tried to setup ZFS for root, but modprobe cannot find the module
<clever> vanrein: you need to set boot.supportedFilesystems = [ "zfs" ]; and run rebuild-switch on the livecd
<vanrein> Is there documentation on how modprobe looks into /nix/store/... for zfs.ko (and similarly, dependencies)?
<vanrein> @clever, I did that
<LnL> I think the wiki page still works
<clever> nix-channel --update can break things though, did you run that at any time?
<vanrein> @LnL the problem is with modprobe or me, not with ZFS
<clever> vanrein: did you do anythign with nix-channel before the nixos-rebuild?
<vanrein> I didn't -- and shall now try that
<clever> [clever@amd-nixos:/media/videos/4tb/dcc]$ modinfo zfs
<clever> filename: /run/current-system/kernel-modules/lib/modules/4.4.30/extra/zfs/zfs.ko.xz
<clever> vanrein: this is where i find the zfs module
<clever> lrwxrwxrwx 1 root root 98 Dec 31 1969 /run/current-system/kernel-modules/lib/modules/4.4.30/extra/zfs -> /nix/store/ribhzzwc4jk624w3gvrmm0lrm7mn98y5-zfs-kernel-0.6.5.8-4.4.30/lib/modules/4.4.30/extra/zfs
<clever> and the extra/zfs entry is a symlink, from the "all modules" package to the zfs package
Wizek_ has quit [(Ping timeout: 240 seconds)]
<vanrein> ah, that's quite like nix indeed :) but zfs.ko isn't there
<vanrein> I suppose I should install it in *some* nix-env then?
<LnL> you get it when you nixos-rebuild with boot.supportedFilesystems
indi_ has joined #nixos
<clever> vanrein: nix-env will never work with kernel modules, they have to go into /etc/nixos/configuration.nix
<vanrein> @LnL @clever OK, I'm nixos-rebuilding now, lot of work after the update
<clever> its usualy better if the channel isnt updated first, because the kernel version has to match the module
spacekitteh has joined #nixos
<vanrein> I now got extra/zfs and such in /run/current-system/kernel-modules
<vanrein> not sure why it was missing before
<vanrein> but I did get an error with starting the ZFS Event Daemon :'-(
<clever> vanrein: thats a bug in nixos, it tries to start zed before loading the module
<clever> you can manualy systemctl start zed once the module is loaded
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixops] domenkozar force-pushed deployment.hasFastConnection from b356e9a to a75d991: https://git.io/v1wrS
<NixOS_GitHub> nixops/deployment.hasFastConnection a75d991 Domen Kožar: Move has_really_fast_connection() to Nix...
<vanrein> ok, good to know, thanks! that should me get started. (except I rebooted and now accounts seem to be reset. I really have things to learn about NixOS.)
<vanrein> thanks a lot!
<clever> yeah, the livecd doesnt save anything, so its all reset to defaults after a reboot
ambro718 has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
Wizek_ has joined #nixos
Wizek_ has quit [(Read error: Connection reset by peer)]
m` has quit [(Remote host closed the connection)]
Wizek_ has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #21062: thunderbird-bin: adopt common update script (master...thunderbird-bin-common-update-script) https://git.io/v1o86
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
zagy has joined #nixos
pi3r has quit [(Ping timeout: 245 seconds)]
<NixOS_GitHub> [nixops] domenkozar force-pushed deployment.hasFastConnection from a75d991 to e73c4ee: https://git.io/v1wrS
<NixOS_GitHub> nixops/deployment.hasFastConnection e73c4ee Domen Kožar: Move has_really_fast_connection() to Nix...
pi3r has joined #nixos
zagy has quit [(Quit: Leaving.)]
<angerman> say I want to use fetchurl on a git repo, how do i compute the result hash?
filterfish has joined #nixos
<angerman> is there some documentation somewhere, I've missed?
filterfish has quit [(Remote host closed the connection)]
<clever> angerman: nix-prefetch-git and fetchgit
pi3r has quit [(Ping timeout: 258 seconds)]
<kmicu> You can use ‘nix-prefetch-git’ and ‘fetchgit’.
<NixOS_GitHub> [nixops] domenkozar opened pull request #566: Move has_really_fast_connection() to Nix (deployment.hasFastConnection) (master...deployment.hasFastConnection) https://git.io/v1o4z
kampfschlaefer has joined #nixos
<kmicu> (Also putting a ‘dummy’ hash value in a fetchgit definition gives you a proper value in the error message.)
<kmicu> (Info about nix-prefetch-* is mentioned in http://nixos.org/nixpkgs/manual/#chap-quick-start )
osa1 has quit [(Ping timeout: 264 seconds)]
zagy has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to master: https://git.io/v1o4X
<NixOS_GitHub> nixpkgs/master 2994123 Kier Davis: boinc service: add to module list...
<NixOS_GitHub> nixpkgs/master 2606994 Kier Davis: boinc service: use <link> instead of <ulink>
<NixOS_GitHub> nixpkgs/master 9af3562 Joachim F: Merge pull request #20971 from kierdavis/boinc...
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21063: nextcloud: 10.0.1 -> 10.0.2 (master...pkg.nextcloud) https://git.io/v1o4D
acarrico has quit [(Ping timeout: 250 seconds)]
zagy has quit [(Client Quit)]
iyzsong has quit [(Ping timeout: 240 seconds)]
<angerman> kmicu thanks. I keep confusing the nix and nixpkgs manual every time :(
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #21064: firefox-bin: fix updateScript (master...firefox-bin-fix-update-script) https://git.io/v1o45
<NixOS_GitHub> [nixops] domenkozar closed pull request #401: Create /etc/hosts with none backend. (master...none-hosts) https://git.io/v1o4d
iyzsong has joined #nixos
<angerman> clever that nix-shell trick you showed me could that expression somehow be evaluated and return the result on stdout or so without having to deal with the interactive nix-shell? (with import <nixpkgs>; buildins.unsafeGetAttrPos "z" x.y)
filterfish has joined #nixos
<clever> angerman: i believe it used nix-instantiate
filterfish has quit [(Remote host closed the connection)]
<clever> 2015-11-01 10:17:17< bennofs> Profpatsch: oh, I've just found out that nix has a builtins.unsafeGetAttrPos function: nix-instantiate --eval -E 'builtins.unsafeGetAttrPos "mkDerivation" (import <nixpkgs> {}).stdenv'
<clever> bit different from how i usualy use it
<Profpatsch> * clever is digging deep
<clever> lol
<clever> clever@c2d ~ $ nix-instantiate --eval -E 'with import <nixpkgs> {}; __unsafeGetAttrPos "hello" pkgs'
<clever> { column = 3; file = "/nix/store/5n59fpmkjna4gfcnjh5b0kpgn4vnpvkq-nixpkgs-17.03pre96825.497e6d2/nixpkgs/pkgs/top-level/all-packages.nix"; line = 13325; }
<Profpatsch> I didn’t even remember about that and haven’t actually used it.
<Profpatsch> Or at least I don’t remember.
<angerman> clever neat, thatnks.
<Profpatsch> It’s just to print the source line of an attribute, right?
<clever> Profpatsch: yeah, in the 2015 example, the location of mkDerivation from the stdenv
<clever> angerman: there is also just hello.meta.position that tells you where hello came from
viric__ has joined #nixos
<clever> angerman: but some things like fetchurl are special, and you cant fetchurl.meta
Ivanych has quit [(Quit: Leaving.)]
<angerman> clever if unsafegetattrpos works reliably that's good.
viric_ has quit [(Read error: Connection reset by peer)]
<angerman> I just often wonder where a function comes from (esp. if it's defined multiple times with the same name -- e.g. callPackage)
<Profpatsch> angerman: If it’s non-programmatically, just navigating around, grepping with `attributeName.=` works wonders.
<clever> clever@c2d ~ $ nix-instantiate --eval -E 'with import <nixpkgs> {}; __unsafeGetAttrPos "callPackage" pkgs'
pi3r has joined #nixos
<clever> { column = 3; file = "/nix/store/5n59fpmkjna4gfcnjh5b0kpgn4vnpvkq-nixpkgs-17.03pre96825.497e6d2/nixpkgs/pkgs/top-level/all-packages.nix"; line = 32; }
dju has quit [(Ping timeout: 256 seconds)]
<clever> clever@c2d ~ $ head -n32 /nix/store/5n59fpmkjna4gfcnjh5b0kpgn4vnpvkq-nixpkgs-17.03pre96825.497e6d2/nixpkgs/pkgs/top-level/all-packages.nix | tail -n1 callPackage = newScope {};
<Profpatsch> Of course, that shows you everything with the same name, so a bit of experience is required to distinguish some.
<angerman> Profpatsch yea, that's the thing. I gladly admit, I'm new to nix.
<Profpatsch> angerman: Yeah, the missing introspection support kind of sucks tbh
<angerman> But a tool that would allow to lookup a function definition would be nice. And taking nix-instantiate with unsafeGetAttrPos seems like a good first approximation to actually finding the function.
<Profpatsch> Most devs just use grep and bear with it after a while.
<angerman> assume you had $ nix-lookup "pkgs.callPackage" and it would dump you the definition.
<angerman> with a location.
<Profpatsch> Believe me, I’ve thought about this so many times. :)
<angerman> Profpatsch that doesn't sound like a reason to keep it that way :)
Ivanych has joined #nixos
<angerman> However, I've got way too many yacks to shave, but this is definetly going into my nix-learn doc.
<Profpatsch> What you have to keep in mind: lots of the language has no static meaning until it is evaluated.
<Profpatsch> So you need to “close the closure” from outside first.
* kmicu ಠ_ಠat how easily people forget about universal TAGS systems :/
<Profpatsch> kmicu: Right, that works as well.
<Profpatsch> But not sure if it consistently finds the right definitions?
<angerman> I think the initial learning hurdle is just massive. And if want to make nix part of our dev workflow at work, I need to know the pitfalls.
<Profpatsch> I can’t imagine that.
<Profpatsch> angerman: It’s possible to generate TAG files.
<Profpatsch> There was a mail on the ML a while back
<angerman> kmicu sure, but that requires you have people that *know* what TAG files are and *how* to use them.
dju has joined #nixos
<angerman> Profpatsch would be a welcome addition to the nix manual I guess, documenting how to generate and use TAGs with nix.
<Profpatsch> angerman: dump
<Profpatsch> >> We have ctags wrapped with simple regexp that indexes simple 'foo ='
<Profpatsch> >> bindings. That has the advantage of integrating smoothly with many editors.
<Profpatsch> >
<Profpatsch> > Uuuuuh, that would be nice. Do you have a link?
<Profpatsch> > Right now I manually do the `foobar.=` search with ag (since even
<Profpatsch> > ack is too slow for the repository), but with the ctags there would
<Profpatsch> > be a basic “go to definition” possible.
<Profpatsch>
<Profpatsch> $ nix-env -f '<nixpkgs>' -iA ctagsWrapped
<Profpatsch> That was by vcunat a few months back.
<Profpatsch> But it’s only a grep as well.
<Profpatsch> So no static analysis here.
osa1 has joined #nixos
<Profpatsch> I use ag (silver-searcher), it’s basically instant even on nixpkgs, so no tags.
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<angerman> Profpatsch thanks for the dump though.
* kmicu *grumbles* he thought that tagging systems are something natural & familiar from C to Python communities, from Haskell to Lisps crowd.
mudri has quit [(Ping timeout: 246 seconds)]
<angerman> kmicu my day-to-day work is iOS/macOS swift/objc with xcode.
Wizek_ has quit [(Ping timeout: 264 seconds)]
<angerman> kmicu we are even using a medium right now that feels very alien to almost all of my coworkers.
osa1 has quit [(Ping timeout: 264 seconds)]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #21056: mbedtls: 2.3.0 -> 2.4.0 (master...mbedtls-2.4.0) https://git.io/v1o3H
<kmicu> Then, for sure, you should not add more learning and ignore ‘tagging’ for now. Nix, the expressions language, is a DSL and lack of tooling is the price for that decision.
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v1oBg
<NixOS_GitHub> nixpkgs/master 915c93c schneefux: nextcloud: 10.0.1 -> 10.0.2
<NixOS_GitHub> nixpkgs/master cb5c052 Joachim F: Merge pull request #21063 from schneefux/pkg.nextcloud...
<angerman> kmicu sorry, I don't follow. If *I* want to reap the benefits of using nix at work, *I* need to make sure I can sell it to the team.
<angerman> kmicu if that leads to more tooling, I don't see the downside of that.
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
<kmicu> There is no tooling. As you can see, the common advice if you cannot find something is, ‘just grep the source code’. ( ͡~ ͜ʖ ͡°)
<angerman> kmicu great, we have an understanding :-)
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
hokuJU has joined #nixos
<hokuJU> hi! I was trying to do a complete system update. after successfully doing 'nix-channel --update nixos' I started 'nixos-rebuild switch'. Unfortunately this happens after a while:
<hokuJU> output path ‘/nix/store/hy7qmy[...]-v35_64-nodebug-pcoem-6_30_223_271.tar.gz’ has sha256 hash ‘008vdmsk[...]vj7a7w’ when ‘1gj485qqr190[...]6pfyaz’ was expected
<clever> hokuJU: the upstream source changed the contents of that tar
<hokuJU> mh, what do you mean by 'spstream source'?
<hokuJU> up
<clever> hokuJU: it appears to be the broadcom wifi drivers
<hokuJU> yes, I figured this out
<kmicu> If outside worlds updates sources in place you need to fix/override it locally.
<clever> hokuJU: so broadcom has changed the tar, without telling anybody
xwvvvvwx has quit [(Ping timeout: 240 seconds)]
<kmicu> You could also find the old tar and add it manually to nix store.
mudri has joined #nixos
acarrico has joined #nixos
<hokuJU> alright, I'm not that experienced with nix yet, could anybody tell me how to add the old tar manually?
<clever> hokuJU: find it somewhere on google. and then nix-store --add-fixed sha256 ~/Download/hybrid-v35_64-nodebug-pcoem-6.30.223.271.tar.gz
<hokuJU> actually this is file still in my local nix-store: hy7qmy0[...]rdp-hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
<hokuJU> that should be it, no?
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21065: owncloud: update minor versions (master...pkg.owncloud) https://git.io/v1oRO
<clever> hokuJU: how large is it?
pi3r has quit [(Ping timeout: 245 seconds)]
sdothum has joined #nixos
<hokuJU> 'ls -lah' says '102', w/o a unit...
<clever> hokuJU: ah, sounds like it 404'd
<clever> hokuJU: if you run "file" on that path, it will probably say html
filterfish has joined #nixos
<hokuJU> right!
<clever> so broadcom hasnt actualy modified the tar, they just took it down
<clever> and all nix knows, is that the hash is wrong
<joachifm> there was a commit recently that updated url for broadcom-sta
<hokuJU> ok, now I understand
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1oRW
<NixOS_GitHub> nixpkgs/master db36c44 Lancelot SIX: gsl: 2.2 -> 2.3 (#21058)...
<clever> hokuJU: and also, nix leaves the invalid file behind after failures like this, so you can debug it
<clever> but it wont register it as valid, so next time you rebuild, it will try to download it again
<clever> hokuJU: i think you can just rename this to hybrid-v35_64-nodebug-pcoem-6.30.223.271.tar.gz and then nix-store --add-fixed sha256 it
bennofs1 has quit [(Ping timeout: 240 seconds)]
<mudri> What happened to this NixOS/systemd pull request? https://github.com/NixOS/systemd/pull/8
<mudri> It's just been sitting there for nearly two months.
<LnL> any darwin people here who might be interested in https://github.com/LnL7/nix-darwin ?
<LnL> I'm trying to make it a bit more user friendly
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/v1oRu
<NixOS_GitHub> nixpkgs/master 8b8df71 mimadrid: strace: 4.13 -> 4.14
<NixOS_GitHub> nixpkgs/master c4a85ea Vladimír Čunát: Merge #21043: strace: 4.13 -> 4.14
osa1 has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #21043: strace: 4.13 -> 4.14 (master...update/strace-4.14) https://git.io/v1rgp
<hokuJU> clever: Ok, I'll give it a try, where would be a good place to store the download? (in the nix-store, in downloads?)
XeonSquared has quit [(Ping timeout: 258 seconds)]
<clever> hokuJU: in ~/Downloads, but once the PR kmicu linked hits the channel, the problem will be fixed
xwvvvvwx has joined #nixos
<NixOS_GitHub> [nixpkgs] gdeest opened pull request #21066: isl: 0.15 -> 0.17.1 (master...fix/isl-update) https://git.io/v1oRw
schneefux has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
schneefux has joined #nixos
osa1 has quit [(Ping timeout: 252 seconds)]
bennofs1 has joined #nixos
<clever> LnL: heh, and youve proven me wrong, just a couple hours ago, i said i was probably the only one to be using the module framework outside of nixos
<hokuJU> clever: alrigth, I'm giving it a try. adding worked, now it's rebuilding....
<LnL> clever: nope, I started using this about a month month ago or something
indi_ has quit [(Remote host closed the connection)]
<gchristensen> clever: can't debug now, but so the ramdisk tool you sent me ends up with /nix/store being read-only, and can't run nixos-install b/c it wants to touch /nix/store/.links
<clever> gchristensen: ah, i filed a PR for that, which nix channel did you build from?
<gchristensen> 16.09, should I go for unstable?
<clever> gchristensen: yeah
<clever> i'll need to add a note to my readme
<gchristensen> cool, clever
<gchristensen> ok I'll try that in a few hours. big storme
c0bw3b has joined #nixos
<gchristensen> big-ish storm coming my way, getting groceries
<c0bw3b> where is that?
hokuJU has quit [(Ping timeout: 258 seconds)]
glines has joined #nixos
Wizek_ has joined #nixos
<angerman> I'm getting "invalid character ‘&’ in name ‘D2733?id=9915&dowload=true’" when trying to construct an url for fetchurl. How do I have to handle &?
<LnL> did you quote the url?
<MichaelRaskin> specify name=
<MichaelRaskin> it defaults to url-derived name, but in this case the default is unusable
hokoJU has joined #nixos
tomberek has joined #nixos
<hokoJU> clever: the rebuild worked finally. However, I'm still not having the latest versions of some programs. for instance firefox remains at version 48. is it maybe because I'm only subscribed to the nixos-16.03 channel?
<angerman> LnL: I tried "....D${val}?id=${val2}&download=true"
<clever> hokoJU: pretty sure everybody should be switching to 16.09 now
<angerman> MichaelRaskin, let me try.
<LnL> angerman: then it's probably the name
<tomberek> Anyone know how to properly wrap systemd services such that I can deploy via Disnix/DisnixOS/Dydisnix? All the examples I see use "service" as an overloaded term, not as in "systemd service".
filterfish_ has joined #nixos
osa1 has joined #nixos
osa1 has quit [(Changing host)]
osa1 has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
<hokoJU> clever: alright, I added 16.9, I guess I should remove the old one?
filterfish has quit [(Remote host closed the connection)]
<clever> hokoJU: yeah, and the channel should be called nixos
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
Fare has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
hokoJU has quit [(Ping timeout: 268 seconds)]
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
osa1 has quit [(Ping timeout: 250 seconds)]
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
<angerman> Thanks everyone for the help!
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
pi3r has joined #nixos
filterfish_ has joined #nixos
<NixOS_GitHub> [nixpkgs] offlinehacker opened pull request #21068: Add bash completions for a few packages (master...pkgs/completions/add) https://git.io/v1oEj
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
rmrfroot has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
osa1 has joined #nixos
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
<NixOS_GitHub> [nixpkgs] offlinehacker opened pull request #21069: kubernetes: generate docs, fix empty man files (master...pkgs/kubernetes/docfix) https://git.io/v1ouY
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
<tomberek> Anyone know how to properly wrap systemd services such that I can deploy via Disnix/DisnixOS/Dydisnix? All the examples I see use "service" as an overloaded term, not as in "systemd service".
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] offlinehacker opened pull request #21070: vault: 0.6.1 -> 0.6.3 (master...pkgs/vault/update/0.6.3) https://git.io/v1ouC
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21071: httpie: 0.9.6 -> 0.9.8 (master...pkg.httpie) https://git.io/v1ouR
rmrfroot has left #nixos ["ERC (IRC client for Emacs 24.5.2)"]
filterfish has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
thc202 has joined #nixos
Cypi_ has joined #nixos
Cypi_ is now known as Cypi
<viric__> Does this work for any other chromium user? https://webrtc.github.io/samples/src/content/peerconnection/pc1/
<viric__> I was struggling making my webrtc work on it... but I think chromium is just broken
<clever> viric__: complete failure on firefox, let me find chrome
<viric__> in firefox it works for me
<clever> firefox 49.02 "nightly" from nixos-unstable
<viric__> ah, internalError now I get... in firefox 49 it worked
<viric__> ha.
goibhniu has joined #nixos
<viric__> my fault - it does work in firefox
<viric__> but not in chromium
<viric__> the 2nd video appears black here
<clever> viric__: in chromium, i had to allow the camera first
<viric__> that's normal
<clever> then i can see myself
<hodapp> how many pots of coffee should I be prepared to brew if I'm about to put NixOS on my laptop?
<viric__> it properly shows the local camera (left video), but the call does not make the 2nd video show
<clever> and if i hit call, i can see myself twice
<viric__> clever: really? mh
<viric__> clever: here I get black on 2nd window. I had ".90"... let me check chromium ".100"
<hodapp> it's occurred to me that I'm in a lull in between classes/clients, but NixOS has no particular known issues on laptops, right?
<clever> viric__: and chromium cant render the about page
<clever> hodapp: i have it running on my laptop without issue
<clever> viric__: 53.0.2785.143
<viric__> and firefox on android does not grab properly from the local camera. damn browsers :)
<viric__> clever: I had 54.0.2840.90
k11` has joined #nixos
<hodapp> clever: what laptop?
<viric__> damn chromium. how do you go to an address you have in the copy buffer?
<clever> hodapp: dell d630, Core(TM)2 Duo 1.8ghz, 3gig of ram
<hodapp> ahh, okay
<hodapp> this is a Thinkpad T410 and it's run Fedora flawlessly so hopefully it's fine
filterfish has quit [(Remote host closed the connection)]
<vanrein> after @clever's remark about the live CD, I reinstalled from "minimal". All seems to be working, until a reboot... then zpool does not find back the volumes created. Any suggestions are welcomed.
<viric__> clever: the 54.0.2840.100 does not work either. Black window in 2nd video
filterfish has joined #nixos
<vanrein> mind you, reboot is again from the "minimal" CD
filterfish has quit [(Read error: Connection reset by peer)]
<clever> vanrein: nixos wont import all pools on bootup, it only imports the pools listed in the active configuration.nix
filterfish has joined #nixos
<vanrein> ah!
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<vanrein> @clever are these the fileSystem."/" and such? because I set those after a full install -- ah but didn't boot that NixOS, I restarted the live CD -- so you are saying *that* is the cause, right?
filterfish has joined #nixos
<vanrein> if so, I'll try another fresh install
<vanrein> (catch-22 -- don't have the zpool, cannot find how to load it, so the old install is gone)
<clever> vanrein: yeah, the livecd has its own config
filterfish has quit [(Read error: Connection reset by peer)]
<vanrein> tx!
<clever> vanrein: you need to re-add zfs to boot.supportedFilesystems, on the livecd's config, then nixos-rebuild switch
filterfish has joined #nixos
<clever> vanrein: then you can see the install on the hdd and mount it
<NixOS_GitHub> [nixpkgs] boronine opened pull request #21072: neko: 2.0.0 -> 2.1.0 (master...neko-2.1.0) https://git.io/v1oz1
filterfish has quit [(Read error: Connection reset by peer)]
<vanrein> okay, I think I'm starting to understand (and appreciate) how NixOS works :) thanks, @clever!
<clever> vanrein: it is also possible to build a custom livecd that just has zfs by default, but i find it more powerfull to just point nixos-install at a usb stick
<clever> vanrein: if you install directly to usb, then you wont loose everything upon reboot, and you can add tools you often use at install and they stay
osa1 has quit [(Ping timeout: 248 seconds)]
viric has joined #nixos
viric__ has quit [(Ping timeout: 268 seconds)]
glines has quit [(Ping timeout: 265 seconds)]
Guest97229 has quit [(Quit: leaving)]
jacob_ has joined #nixos
jacob_ is now known as Guest41835
osa1 has joined #nixos
osa1 has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub> [nixpkgs] abbradar closed pull request #21059: steam: added java and steam-run to documentation, removed patchelf info (master...fix/steam-doc) https://git.io/v1oW7
ericsagnes has joined #nixos
<LnL> interresting, I was wondering how that was dnoe
<c0bw3b> BTW LnL i wanted to thank you for this : https://github.com/LnL7/vim-nix
<c0bw3b> really neat :)
<LnL> c0bw3b: :D
<LnL> c0bw3b: feel free to create issues if you run into strange behaviour
<clever> LnL: it is a bit odd for nixpkgs to be filed under misc
roconnor has joined #nixos
<c0bw3b> LnL none seen at the moment but then again i'm not writing the most complex Nix expr... yet :p
bencevans has quit [(Changing host)]
bencevans has joined #nixos
bennofs1 has quit [(Ping timeout: 245 seconds)]
viric___ has joined #nixos
<c0bw3b> i need a 2nd eye on https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/nghttp2/default.nix to be sure i understand correctly
<c0bw3b> openssl libev and zlib are declared as optionals in the parameters but then they are used as build inputs
<c0bw3b> so they are not optionals in fact no ?
tomberek has quit [(Ping timeout: 260 seconds)]
<clever> c0bw3b: callPackage will always specificy the optional things
<clever> c0bw3b: so somebody has to make an override that sets it to null to actualy disable it
viric has quit [(Ping timeout: 245 seconds)]
<c0bw3b> so if you want to build httpd or curl with httpd2 support you would override this definition with null params in order to build only the nghttp2 lib
systemfault has joined #nixos
<clever> c0bw3b: yeah
systemfault has quit [(Client Quit)]
<c0bw3b> it seems building curl will build the full nghttp2 (lib and binaries)
<c0bw3b> *would build
<clever> c0bw3b: https://gist.github.com/cleverca22/47e1d60442f06a75a3d84cb747a9314b a quick check shows that curl depends on the unmodified nghttp2 that is present in top-level
<clever> c0bw3b: which does have a small override on it
<clever> c0bw3b: the fetchurl inside nghttp2 uses a different build of curl
stepcut has joined #nixos
<c0bw3b> ok i think i understand
evck has quit [(Remote host closed the connection)]
iyzsong has quit [(Quit: bye.)]
<Fare> is there a REPL for the Nix language?
<clever> Fare: nix-repl
<Fare> doh
systemfault has joined #nixos
<NixOS_GitHub> [nixpkgs] montag451 opened pull request #21074: pytun: init at 2.2.1 (master...pytun) https://git.io/v1oaF
hokuJU has joined #nixos
<hokuJU> hi! I installed nixos on a 30gb stick, from which I boot. works super. Now, I switched to the latest 16.9 channel and tried to update the system. I'm running into 'free disc space' issues when rebuilding. My nix-store dir is about 19gb, the home dir 5gb, so this seems to be quite logical. How would you handle this for now?
osa1 has joined #nixos
<clever> hokuJU: start by seeing how much you can save by running nix-collect-garbage, and then consider deleting older generations, like "nix-collect-garbage --delete-older-than 30d"
<Fare> is there an error / bottom function in the nix language that terminates early, beside creating a non-terminating (x: x x)(x: x x) that doesn't terminate?
<clever> Fare: throw "foo"
<Fare> thanks
<c0bw3b> yheah okay other packages actually depend on nghttp2.lib though it's not clearly apparent in their nix definition
<LnL> c0bw3b: you can use nox-review to see what stuff depends on you local changes
<Fare> can a set be the result of a least fixed point operation, where the labels themselves are determined by the fixed point?
osa1 has quit [(Ping timeout: 260 seconds)]
hokuJU has quit [(Ping timeout: 258 seconds)]
<c0bw3b> LnL & clever : thanks for your protips :)
* Fare tries to port his trivial prototype OOP to Nix
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #21071: httpie: 0.9.6 -> 0.9.8 (master...pkg.httpie) https://git.io/v1ouR
hokoJU has joined #nixos
<hokoJU> hi! I installed nixos on a 30gb stick, from which I boot. works super. Now, I switched to the latest 16.9 channel and tried to update the system. I'm running into 'free disc space' issues when rebuilding. My nix-store dir is about 19gb, the home dir 5gb, so this seems to be quite logical. How would you handle this for now?
<NixOS_GitHub> [nixpkgs] rlupton20 opened pull request #21075: helm (kubernetes): init at v2.0.2 (master...kubernetes-helm) https://git.io/v1oVs
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #21070: vault: 0.6.1 -> 0.6.3 (master...pkgs/vault/update/0.6.3) https://git.io/v1ouC
<clever> hokuJU: start by seeing how much you can save by running nix-collect-garbage, and then consider deleting older generations, like "nix-collect-garbage --delete-older-than 30d"
<hokoJU> clever: alright, the first thing gave me 3,6 gig
<clever> hokoJU: id try the 2nd command then, that should get you some more
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #21074: pytun: init at 2.2.1 (master...pytun) https://git.io/v1oaF
hokoJU has quit [(Ping timeout: 252 seconds)]
<sheenobu> hrm. how do I re-enable docker on this machine without having to force this chromium recompilation? Should I just be running docker in a container?
<sheenobu> might just step out. I need to pick up a new sim card anyway
<justanotheruser> is there a planned update for chromium to fix the certificate issues? https://news.ycombinator.com/item?id=12953172
<sphalerite> Is there a way to patch an executable to run on nixos based on guesswork with the available libraries/the ones that the executable wants?
<sheenobu> sphalerite, patchelf is what you want. patchelf --set-interpreter first. then i check "ldd binary" to find missing libs
<sheenobu> when I /need/ an interpreter, i check "ldd /bin/sh" and use its listed interpreter
<sphalerite> perfect, thanks
<sheenobu> justanotheruser, looks like a problem with chromium 53? chromium 54 is released for nixos 16.09. are you on 16.03?
<sphalerite> Right, managed to get the official binary to run by hacking in the right loader using patchelf and generous abuse of LD_LIBRARY_PATH... the grid bug bites! You die...
<sphalerite> oops, wrong channel
<sheenobu> Haha!
<sphalerite> (in case anyone was wondering: blender. They don't like distro versions of software and the go-to response when anyone complains about a potential bug is "use the official build". Which is of course easier said than done on nixos)
<sheenobu> sphalerite, there should be a way to create package that 1. installs the required libraries, then 2. create a wrapper for the binary in question that uses LD_LIBRARY_PATH. I think this is how Steam is done
<sphalerite> Yeah, this is more of a one-off thing though so I don't think it's worth it
<sphalerite> all I wanted to do was check if the bug is reproducible with the official build too
<sheenobu> gotcha. makes sense
<clever> sheenobu: here is a tool i wrote to simplify patchelf a while back: https://gist.github.com/cleverca22/fcd3e6d18073804b9357a26c468aaa70
<sphalerite> (I may be discovering a graphics driver bug here though)
<clever> sheenobu: you insert the libs, and then run nix-build, and it creates a shell script that will just patch it
<sphalerite> clever: neat!
<sheenobu> clever, awesome!
danielrf has quit [(Ping timeout: 250 seconds)]
<sheenobu> i should just move chromium out of my nixos configs, use nix-env -i or nix-home instead... That way no long compilations to nixos-rebuild
Wizek_ has quit [(Ping timeout: 250 seconds)]
<sphalerite> nix-home?
Wizek has quit [(Ping timeout: 260 seconds)]
danielrf has joined #nixos
<sheenobu> sphalerite, tool of mine. mostly for managing home configs but you can always do a "bin/chromium" = "${pkgs.chromium}/bin/chromium";
<justanotheruser> sheenobu: I think I'm on 16.09, can you remind me the command to check
<sheenobu> nixos-version
<justanotheruser> nixos-version
<justanotheruser> 16.09.824.e4fb65a (Flounder)
<justanotheruser> I did nixos-rebuild switch and it kept me with the same chromium
<sheenobu> chromium 53? check stat `whereis chromium`
<justanotheruser> chromium: /nix/store/liqziviib879mvr84i5pngfzhlm6f8mg-system-path/bin/chromium
<sheenobu> "stat `whereis chromium`" should show you the direct path to it.
<justanotheruser> /nix/store/3ac4xvi6mqhv4z6cmlwq1kydqha05xqi-chromium-53.0.2785.143/bin/chromium
<sheenobu> and you'll want to nixos-rebuild --update if you haven't.
<sheenobu> is it --update? --upgrade?
<c0bw3b> upgrade
<justanotheruser> ok, will run thanks
<sphalerite> sheenobu: oooh that looks nice
<clever> sheenobu: the only thing --upgrade does, is run "nix-channel --update" first, which sort of makes the whole "nixos-rebuild --upgrade switch" non-atomic
<sheenobu> justanotheruser, yeah e4fb65a isn't the most recent release (it's 7 weeks ago according to git log e4fb65a)
<sheenobu> clever, yeah i typically run nix-channel --update first
<clever> sheenobu: it turns into 2 atomic operations, and the 1st isnt undone in the event of the 2nd failing
<justanotheruser> I didn't realize I had to upgrade as well, I am a noobie
<sheenobu> which is why i never remember the flag.
<justanotheruser> thank you
Guest350 has joined #nixos
<sheenobu> justanotheruser, welcome to nix. Yes nixos-rebuild build will build a config. nixos-rebuild switch will switch to the config. nothing will change until you 'update your channel' via nix-channel --update (as root)
<sheenobu> sphalerite, thanks. I'm proud of it. spotify is one of the things I manage via nix-home since the spotify deb can magically disappear. The less you have in /etc/nixos/, the less costly a nixos-rebuild switch is (post channel upgrade, that is)
<sphalerite> Hm, that's another thing I don't understand
<sphalerite> What exactly is <nixpkgs>? I figure it expands to the path of nixpkgs as a string, but what is it syntactically and how does it get evaluated?
Guest350 has quit [(Ping timeout: 250 seconds)]
<clever> [root@router:~]# nix-instantiate --eval -E '<nixpkgs>'
<clever> /nix/store/5gkbjsjsnb4w1dhybf1vn7a245vyxxy5-nixos-16.03pre76756.885acea/nixos/nixpkgs
<sphalerite> I see
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21076: pythonPackages.discordpy: init at 0.15.1 (master...pkg.discordpy) https://git.io/v1or9
<sphalerite> What is it syntactically though?
<sphalerite> It's not mentioned alongside paths in https://nixos.org/nix/manual/#idm140737318208368
bennofs1 has joined #nixos
<sphalerite> Aaah I see
<sphalerite> thanks
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<sphalerite> Hm, the manual only mentions it under the environment variables and the changelog
<sphalerite> It would probably be good to put it in the syntax description as well
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
<sphalerite> I'll make a PR
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
* Fare realizes that because nix caches import results, I need a new nix-repl everytime I modify my file.
<clever> Fare: :r to reload all files
<sphalerite> Fare: does :r not help?
<sphalerite> aww ninja
glines has joined #nixos
<Fare> Oh, thanks!
<Fare> What if I want to use pants or bazel in a nix expression, and trust it enough to share its build cache?
* Fare successfully implements his prototype OOP in Nix.
<Fare> it doesn't produce sets (yet), though
<MichaelRaskin> Well, I guess you could add the cache path to the build-sandbox-paths
<Fare> how do I produce a set from a list of names and values?
<Fare> MichaelRaskin, what if it's a hydra-like online cache?
<clever> Fare: builtins.listToAttrs
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v1oo7
<NixOS_GitHub> nixpkgs/staging 105fead Vladimír Čunát: nghttp2 cleanup: unneeded patching, unused inputs...
<MichaelRaskin> Can it be FUSE-mounted?
<MichaelRaskin> You could just say that your build is exempt from the sandboxing, I guess
* Fare finds builtins.listToAttrs
<Fare> clever, thanks!
<Fare> MichaelRaskin, I suppose I could trust Bazel's and/or Pants' own sandboxing :-/
<ashkitten> Hello, how can I lock the screen on suspend?
<gchristensen> clever: success!!
<gchristensen> (back in a while.)
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/v1ooh
<NixOS_GitHub> nixpkgs/master 2d4637f Pascal Wittmann: intel-gpu-tools: 1.16 -> 1.17
grw has joined #nixos
<MichaelRaskin> Fare: __noChroot derivation attribute, and build-use-sandbox should be set to relaxed
<Fare> MichaelRaskin, thanks!
<Fare> in an unrelated question, sometimes my soundcard is in a weird state at startup, and my "solution" is to manually modprobe -r snd_hda_intel ; modprobe snd_hda_intel ... are there modprobe options that would get it not hosed, and/or a way to automatically run the unhosing command later during startup?
<grw> hi, i am trying to copy this config for kubernetes with tls certs- https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/kubernetes.nix#L81
<grw> i have added it to my config, but on rebuild i get errors http://pastebin.com/MmeASjaZ
<grw> does anyone see what the problem could be?
<Fare> grw: the recipe is wrong and should store the random state in /var/.../, not /nix/store/.../
<Fare> the package was insufficiently nixified.
<grw> Fare: is that a complex change?
zraexy has joined #nixos
lverns has joined #nixos
<sphalerite> How can I build the documentation from the nix repo?
<Fare> grw: I have no idea. I've never done it. You have to edit some script or program to change the path of a random state file
<clever> gchristensen: heh, i didnt think fdisk would be happy with echo on stdin
<gchristensen> yeah that works ok
<Dezgeg> sfdisk is better for scripting I think
<gchristensen> oh cool
<gchristensen> next I need to make this work with a single script
<clever> Dezgeg: main issue i ran into with sfdisk, is making it fill the entire disk up automaticaly
<gchristensen> with a hosted kexec bootstrapper
<NixOS_GitHub> [nixpkgs] offlinehacker opened pull request #21077: npm module: add npm module for global npm config (master...nixos/programs/npm/add) https://git.io/v1oKX
<Dezgeg> I think my scripts for the arm images do that
<clever> gchristensen: you should be able to paste it into here, and then just make a systemd unit to spit status out over http maybe?, and do a real reboot at the end
<clever> Dezgeg: in the above script, it makes the partition 1.5gig
<clever> not sure how to just tell it to use it all
<grw> Fare: thanks. i guess i will look for other examples of keys being generated as part of nixos config
osa1 has joined #nixos
<gchristensen> clever: yeah but then the next part is getting nixops to be aware and do its thing. it'll be a multi-stage script locally I think
<clever> gchristensen: yeah
<Dezgeg> if I don't set size it goes to the end
<clever> Dezgeg: ah, thats easy
<aszlig_> gchristensen: pong
aszlig_ is now known as aszlig
<clever> gchristensen: let me see if i can modify it to rebuild with the ssh keys faster
<gchristensen> aszlig: I was going to ask you questions about hetzner + nixops, but then I think I solved it with a PR (https://github.com/NixOS/nixops/pull/564)
<NixOS_GitHub> [nix] lheckemann opened pull request #1153: Document path-searching behaviour (master...path-search) https://git.io/v1o6v
osa1 has quit [(Ping timeout: 260 seconds)]
<kmicu> sphalerite: Nix manual is in Nix package ‘/nix/store/*-nix-*doc/share/doc/nix/manual/index.html’
<sphalerite> kmicu: no I wanted to actually build it to see my changes. Got it now though. Thanks anyway!
<clever> sphalerite: there is also a difference between <nixpkgs>/foo and <nixpkgs/foo>
edvorg has quit [(Ping timeout: 256 seconds)]
<clever> sphalerite: <nixpkgs/foo> will keep checking each nixpkgs it can find, until it comes across one that has a foo in the root, while <nixpkgs>/foo will pick the first one, then just blindly append /foo to the end
<sphalerite> clever: makes sense, the former is more likely to fail
<sphalerite> yeah
<sphalerite> I've submitted a PR with doc changes as the bot pointed out
<sphalerite> Not sure if my explanation is that good, but hey at least it's there
<sheenobu> anyone build any android kernels on nix? not running nixos on an android device, just running the android build process.
<sheenobu> would love to get boot2gecko (the basis of the now defunct firefox os) built but all the instructions are 1. ubuntu specific 2. download the entire internet in shell scripts
osa1 has joined #nixos
osa1 has quit [(Changing host)]
osa1 has joined #nixos
<clever> sheenobu: heh, ouch
earldoug1as has quit [(Ping timeout: 244 seconds)]
RchrdB has joined #nixos
<clever> sheenobu: i recently wanted to fix a bug in my custom android app for my thermostat system, it took an hour just to find the source (last-mod times in 2013), and then another hour to remember how to build it
<sheenobu> clever, yeah whenever i want to try something new (nes homebrew, custom android stuff) my first steps are to get everything Nix'ed. Having a setup that uses nix to fetch android sources, build a derivation, then convert that derivation to the appropriate images would be great.
<MichaelRaskin> I wonder if it is feasible to have support for rebuilding F-Droid stuff managed by Nix
<sheenobu> oh wow I've never heard of f-droid. I just started using cyanogenmod myself
jgertm_ has joined #nixos
<MichaelRaskin> F-Droid is generally useful even if you stick with the vendor's install
<MichaelRaskin> With F-Droid your chances to reproduce the same set of apps on the next device are quite high
<MichaelRaskin> With vendor-supplied stuff, close to zero…
<sheenobu> gotcha. I haven't bothered with gapps and may never try.
<sheenobu> (at least, since I've switched to cm)
systemfault has quit [(Quit: Bye!)]
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #21078: darwin.stdenv: use minial python to bootstrap clang (master...darwin-stdenv-python) https://git.io/v1o6Q
<sphalerite> wait so where did you get apps from sheenobu ?
<sheenobu> sphalerite, i.. i don't.
<sheenobu> it's only been a week or so.
<sphalerite> aaaah okay
<MichaelRaskin> I even prefer K-9 to whatever shipped stuff pretends to support email
jgertm_ has quit [(Ping timeout: 268 seconds)]
<sphalerite> ^
wwkeyboard has joined #nixos
<clever> gchristensen: this time around, i created a /ssh_pubkey file on the host, before running the kexec script, and it used that to authorize ssh
<clever> gchristensen: so multiple people could reuse the same tar, and still control who gains root
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/v1oiD
<NixOS_GitHub> nixpkgs/master 374f833 Shea Levy: google-chrome: Add new dep on libxcb
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #21079: google-apputils: enable for py3k (master...master) https://git.io/v1oiF
glines has quit [(Ping timeout: 250 seconds)]
zagy has joined #nixos
<gchristensen> nice!!
Fare has quit [(Ping timeout: 250 seconds)]
<clever> gchristensen: you could even have hydra pre-build the tar, and it could be used as-is
<clever> somebody with more bash skillz could add arguments to the kexec script
Fare has joined #nixos
<gchristensen> oh really?
<clever> cat /ssh_pubkey >> authorized_keys
<clever> right now, it just assumes the file already exists on the host
<clever> but it could be modified to take arguments, like --authorized_keys=/ssh_pubkey
<clever> then nixops can run it with the correct args, over ssh
zagy has quit [(Client Quit)]
<clever> gchristensen: eeek!
<clever> gchristensen: out of disk space, during a kexec test
e1 has quit [(Ping timeout: 245 seconds)]
<clever> [root@amd-nixos:~/nixcfg]# nix-collect-garbage
<clever> error: could not set permissions on ‘/nix/var/nix/profiles/per-user’ to 1777: No space left on device
<k11`> how I tune lvm config options?
<k11`> I neet to set issue_discards = 1
zagy has joined #nixos
glines has joined #nixos
c0bw3b has left #nixos []
<sheenobu> rm: out of space. womp womp.
<MichaelRaskin> The joys of BtrFS?
<clever> MichaelRaskin: zfs, had to delete 3 snapshots to get gc to run
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1oPy
<NixOS_GitHub> nixpkgs/master 601058e Joachim Fasting: grsecurity: 4.8.13-201612082118 -> 4.8.14-201612110933
<clever> the issue, is that i'm testing something that involves building 300-400mb tarballs
<clever> and i have 5gig free
pi3r has quit [(Ping timeout: 258 seconds)]
<gchristensen> clever: with mdadm, do I need to do anything special in my configuration.nix after I create the array?
<clever> no idea, havent tried mdadm
<clever> ive only used lvm and zfs for multi-disk arrays
<gchristensen> ay.
zagy has quit [(Quit: Leaving.)]
<gchristensen> "6 × 480GB SSD"
goibhniu has quit [(Ping timeout: 245 seconds)]
<gchristensen> back in a while. *is very in-and-out this weekend*
<clever> gchristensen: oh, another thing thats massively usefull, <enter>~. will make the linux ssh client hang up instantly
<clever> i havent looked into solving that issue yet in the script, it improperly shuts the host down, in the middle of you using ssh, so its a bit tricky to get out
e1 has joined #nixos
goibhniu has joined #nixos
<NixOS_GitHub> [nixpkgs] sternenseemann opened pull request #21080: gopher: init at 3.0.11 (master...gopher) https://git.io/v1oXB
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #21081: libxslt: add option to enable crypto support (master...libxslt) https://git.io/v1oX0
ambro718 has quit [(Ping timeout: 268 seconds)]
<sphalerite> clever: to get out of the ssh session?
<sphalerite> enter ~ .
<clever> sphalerite: yeah, for when the ssh server has stopped responding
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to release-16.09: https://git.io/v1oXo
<NixOS_GitHub> nixpkgs/release-16.09 dd9483b Joachim Fasting: couchdb service: fix test in preStart...
<NixOS_GitHub> nixpkgs/release-16.09 632100b Joachim Fasting: grsecurity: 4.8.13-201612082118 -> 4.8.14-201612110933...
m` has joined #nixos
mudri has quit [(Ping timeout: 252 seconds)]
<sphalerite> enter then ~ is the default escape sequence for the SSH client and . will terminate the connection
<clever> yep
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1oXH
<NixOS_GitHub> nixpkgs/master d568cb9 Linus Heckemann: google-apputils: enable for py3k (#21079)...
<NixOS_GitHub> [nix] domenkozar closed pull request #1153: Document path-searching behaviour (master...path-search) https://git.io/v1o6v
hotfuzz_ has joined #nixos
hotfuzz has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub> [nixpkgs] guillaumekoenig opened pull request #21082: enpass: fix install to work with browser extensions (master...fix-enpass-browser-extension) https://git.io/v1oXj
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v1o1U
<NixOS_GitHub> nixpkgs/staging 1626b1b Frederik Rietdijk: json_glib: use multiple outputs
<m`> hi! I installed nixos on a 30 gb stick. After successfully upgrading to the 16.9 I'm really running out of disk space. and the nix store causes this. I already garbage collected + removed generations older than 10 days. In a long term I will install nixos on the hard drive. but for now, does anybody have an idea to free some disk space? I think it would feel wrong to further remove generations. how about manually d
<m`> eleting some end-user applications from the nix store folder, which I definitely will not need anymore? of course this would break the system, but would it make a rollback completely inpossible?
e1 has quit [(Ping timeout: 265 seconds)]
<kmicu> Check with ‘nix-store --gc --print-roots’ if you have any ‘result’ symlinks blocking garbage collection of older generations.
Fare has quit [(Quit: Leaving)]
<kmicu> (If you plan to manually delete anything from the /nix/store then use ‘nix-store --delete …’ tool.)
<m`> the suggested command prints out about 20-30 links
<m`> (print-roots)
<clever> m`: can you pastebin the results?
zagy has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #21080: gopher: init at 3.0.11 (master...gopher) https://git.io/v1oXB
<clever> m`: you have an old result symlink in your home directory that is probably holding onto something sizable
<clever> m`: yeah, thats nixos 16.03, and your now running 16.09
<clever> so thats doubling your usage
zagy has quit [(Client Quit)]
<kmicu> Do you need those ~20 generations for your user and system?
<clever> oh, yeah, he just updated from 03 to 09
<clever> so it will still hold onto a lot of 03 until he gets rid of all of those old system's
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/v1oMW
<NixOS_GitHub> nixpkgs/master 4f2e2ce Pascal Wittmann: moc: 2.5.1 -> 2.5.2
<m`> mh, this 'result' link is created by root some half a year ago, when I installed nix.
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/v1oMR
<NixOS_GitHub> nixpkgs/master 073cb33 Domen Kožar: doc: remove last mention of <nixos>
<clever> you probably ran sudo nixos-rebuild build
<m`> to me it looks I can only get rid of them when deleting all generations but the current, which would be somehow stupid after a complete update.
<m`> (actually, I'm not fully aware of the difference between system and user generations)
<clever> m`: the user generations are from nix-env, and the system generations are from nixos-rebuild
<m`> ok.
<m`> you mean 'sudo nixos-rebuild build' caused the result link?
<clever> yeah
e1 has joined #nixos
<m`> alright, I see it in the man
<hodapp> https://nixos.org/wiki/Encrypted_Root_on_NixOS what is "luksroot" here?
<hodapp> the name I gave with cryptsetup?
<m`> so it looks like the result link points to a very old genereration.. could it be removed?
<clever> m`: yes
k11` has quit [(Quit: k11`)]
<m`> just manually remove the symlink?
<kmicu> hodapp: nixos-generate-config should generate a proper entry for you.
<hodapp> kmicu: generated configuration.nix says nothing of boot.initrd.luks.devices
<clever> m`: yep
<hodapp> or would it be hardware-configuration.nix?
<kmicu> It should be in hardware-configuration.nix.
<hodapp> hmm, nothing about luks there either
<kmicu> For me it generated ‘boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/<UUID_here>";’
<hodapp> I'm using LUKS + LVM and see nothing of the sort there
m` has quit [(Ping timeout: 250 seconds)]
<hodapp> it just has fileSystems."/" = { device = "/dev/disk/by-uuid/...; fsType = "ext4"; }; and the like
<kmicu> FWIW maybe up–to–date manual https://nixos.org/nixos/manual/index.html#sec-luks-file-systems could help.
<NixOS_GitHub> [nixpkgs] FRidh pushed 4 new commits to master: https://git.io/v1oDC
<NixOS_GitHub> nixpkgs/master 7a53893 Frederik Rietdijk: pythonPackages.yarl: init at 0.8.1
<NixOS_GitHub> nixpkgs/master 826649d Frederik Rietdijk: pythonPackages.multidict: init at 2.1.4
<NixOS_GitHub> nixpkgs/master c410453 Frederik Rietdijk: pythonPackages.async_timeout: init at 1.1.0
mizu_no_oto has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/v1oD0
<NixOS_GitHub> nixpkgs/master e5c525b Pascal Wittmann: homebank: 5.1.1 -> 5.1.2...
<NixOS_GitHub> nixpkgs/master daaf497 Pascal Wittmann: homebank: fix icons
<hodapp> that's pretty much what I ran, but with LVM
pi3r has joined #nixos
m` has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<m`> clever: net was broken, read your answer in the log, just to make sure: 'sudo rm /home/m/result' and not via a nix-tool?
<clever> m`: yes
<m`> alright, and then nix-collect-garbage once again?
<clever> m`: yes
<m`> ok, this freed some 40 mb
<NixOS_GitHub> [nixpkgs] msteen opened pull request #21083: google-chrome: add new dependency on libxcb (release-16.09...google-chrome-libxcb-16.09) https://git.io/v1oDN
<clever> m`: id try just doing "nix-collect-garbage -d" then, that should get rid of a decent chunk of things, at the cost of rollbacks
<Rotaerk> are there any functions for mapping sets to sets? something like Set a v -> ((a, v) -> (a, v)) -> Set a v
<Rotaerk> or do I need to use attrNames, then index the set for each
<hodapp> whatever the case, I'm following https://chris-martin.org/2015/installing-nixos for now; I'll start over if need be
<m`> clever: I know this would help here. but, really, when is having a the option to rollback more important than after a complete system update ;-) (which was the last switch)?
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v1oym
<NixOS_GitHub> nixpkgs/master a4bbf4c Frederik Rietdijk: pythonPackages.scikitlearn: 0.18 -> 0.18.1
<Ralith> m`: well, you have to choose between having effectively two copies of NixOS installed and not
<clever> m`: if you run that without root, then it can only delete the user profiles, it cant delete system profiles
<clever> m`: so it wont have an effect on your ability to boot
<m`> ok, then I'll do it. Didn't actually know that there is a notion of 'user generations' (simlilarly to system generations). Just for curiosity: Does it create a new user gen. every time something is installed via nix-env -i?
<clever> m`: yes
<clever> m`: and every time you remove something with nix-env -e
<m`> alright, interesting. ok nix-collect-garbage -d (as non-root) gave me 1100 mb now..
<m`> so now I know how to carry on will remove unnecessary stuff from the user profile. learned a lot. thx!
<rycee[m]> Rotaerk: Maybe mapAttrs will do what you want? Check attrsets.nix file in nixpkgs.
<Rotaerk> thanks
<hodapp> IT BOOTED \o/
<clever> gchristensen: aha, at least in the vbox case, virtualisation.virtualbox.guest.enable = true; allows the GPU to recover after a kexec
<Rotaerk> rycee[m], perfect
<clever> gchristensen: though only if i unbind it first
osa1 has quit [(Ping timeout: 250 seconds)]
m` has quit [(Ping timeout: 240 seconds)]
m` has joined #nixos
hotfuzz_ has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
XeonSquared has joined #nixos
<NixOS_GitHub> [nixpkgs] offlinehacker opened pull request #21085: pachyderm: init at 1.3.0 (master...pkgs/pachyderm/init) https://git.io/v1oS6
m` has quit [(Ping timeout: 248 seconds)]
justanotheruser has quit [(Ping timeout: 250 seconds)]
wangoe has joined #nixos
justanotheruser has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/v1oHu
<NixOS_GitHub> nixpkgs/master cf1ec8e Pascal Wittmann: pugixml: 1.7 -> 1.8.1
xwvvvvwx has quit [(Quit: WeeChat 1.6)]
<ashkitten> How can I disable shutdown when the power button is pressed? I want it to just suspend.
<clever> ashkitten: in xfce, i can go settings->power manager, and there is a drop-down to configure that
<ashkitten> I don't use a desktop manager
<clever> i havent looked into how to configure it manualy on systemd
<sheenobu> ashkitten, what a lot of people (in /r/unixporn) do is run xfce-session but without xfce panel or xfdesktop.
<sheenobu> and with a custom window manager.
<ashkitten> Never mind, I think I can configure it with services.logind.extraConfig
<ashkitten> Okay another question: how can I have it automatically lock the screen (using slimlock) on suspend?
systemfault has joined #nixos
m` has joined #nixos
<savanni> Is there a reasonable way to restore bluez-4 to a nixos machine? There's some painful regressions in bluez-5 that don't seem to have a workaround.
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1o7Y
<NixOS_GitHub> nixpkgs/master d5ec2a2 Gregor Kleen: postsrsd: additional configuration...
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #19933: Postsrsd: additional configuration (master...postsrsd) https://git.io/vXURl
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
evck has joined #nixos
Fare has joined #nixos
<m`> hi! I'm running nixos on a usb stick, from which I boot. It runs well. However, once in a while I'm having memory problems (e.g. when there are several java virtual machines running). The memory usage then goes up to 100% and the system does not recover from that, sometimes it hangs and I have to restart. I was wondering If I could just activate an already existing swap partitition via the swapDevices option. the sw
<m`> ap parition was created by a Linux Mint system and is diplayed by fdisk -l as '/dev/mapper/mint--vg-swap'?
amarsman has quit [(Quit: amarsman)]
<sheenobu> m`, yes you can use swapon manually and place the swap details in /etc/nixos/hardware-configuration.nix
<sheenobu> if you use swapon and then use nixos-generate-config --show-hardware-config it'll show you the swap entry you need to add, which is super simple
amarsman has joined #nixos
<m`> so I'd just call 'swapon /dev/mapper/mint--vg-swap' first?
pi3r has quit [(Ping timeout: 264 seconds)]
<sheenobu> maybe not /dev/mapper but /dev/disk/... . not sure
wangoe has left #nixos []
<sheenobu> m`, maybe yes /dev/mapper/mint--... since that swap is in an lvm group I guess?
<hodapp> interesting. NixOS seems to boot much faster than Fedora, yet still to lightdm/XFCE
<hodapp> no complaints here.
aboseley has joined #nixos
<m`> I used the mapper one, and the nix-gemerate-config --show... gave me: { device = "/dev/disk/by-uuid/c1c0e928-11d2-4866-bf62-921844003e3a"; }
<sheenobu> sounds about right. if you "stat /dev/mapper/mint--..." you'll probably see a symlink there
BlessJah has quit [(Quit: Reconnecting)]
BlessJah has joined #nixos
ambro718 has joined #nixos
Guest41835 has quit [(Quit: Lost terminal)]
<m`> right, it points to ../dm-1
<m`> ok, the rebuild worked. I'm wondering how I can test now if it works/if the swap is used...
jgertm_ has joined #nixos
bennofs1 has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub> [nixpkgs] risicle opened pull request #21086: opencv 3.1.0: add patch fixing python use of FlannBasedMatcher.add (master...opencv-flannbasedmatcher-fix) https://git.io/v1odF
<m`> seems to be working as cat /proc/swaps reveals
zraexy has quit [(Ping timeout: 256 seconds)]
lverns has quit [(Ping timeout: 258 seconds)]
<sphalerite> To what extent is it safe to build untrusted packages?
<shlevy> sphalerite: If you have sandbox enabled, pretty safe
<shlevy> As long as you don't run the code yourself outside of a nix build
<sphalerite> awesome
<sphalerite> yeah
<shlevy> And as long as you trust the linux kernel ;)
buttbutter has joined #nixos
civodul has joined #nixos
<m`> which terminal emulator are you using (from the nix-store)? I'm having a hard time to find a fitting (nothing fancy, but also 'contemporary' in its appearance) one. roxterm worked fine for me, but it's not maintained anymore..
<sphalerite> well if we're going there I also need to trust the firmware, nix itself, etc
<sphalerite> m`: st.
<buttbutter> This is kind of a bullshit question, but I'm itching to switch to nix but have limited time this week...how long would it take a reasonably competent person that knows generally little of nix to get a basic install going?
<hodapp> of just nix? or nixos?
<buttbutter> nixos :)
<LnL> depends on what you want to use
<hodapp> well, I didn't know much about nix and I got nixos going this morning, including LUKS & LVM root
<buttbutter> Oh wait, I don't know shit about Nix either. :D
<buttbutter> But...I know Haskell....does that help?
<hodapp> no major issues, in fact, overall less crap to deal with than when I put ArchLinux on this laptop
<buttbutter> Okay, that's good.
<buttbutter> I'm switching from Arch too :)
<hodapp> my laptop had Fedora though, and it ran that just fine :)
<hodapp> if it goes well on the laptop I'll switch my desktop too (which has Arch still)
<buttbutter> hodapp: My exact plan :)
<buttbutter> LnL: Just basic stuff. Xmonad, urxvt,...and like chrome.
<sphalerite> buttbutter: Knowing Haskell helps a little with understanding the language. I think the biggest hurdle for me was finding the relevant parts of the documentation for my questions, but the people in here have been incredibly helpful. Doing common things is generally very simple and easy though.
<sphalerite> If I needed to install a machine for my grandma I would probably have it done in an hour or two.
<buttbutter> Okay. That's good. I think my set-up classifies as super common/simple. Great! I'll switch this week then. :)
<sphalerite> maybe 6h starting with absolutely no knowledge of nixos
<m`> sphalerite: is st. / the suckless suite in the nix-store? cant find it.
<sphalerite> m`: nixos.st
zagy has joined #nixos
hiratara has quit [(Ping timeout: 258 seconds)]
<sphalerite> dwm, surf and friends are there too (but I don't use those so I don't know about how they work in nixos. If they're anything like st though, and I have no reason to believe they're not, piece of cake.)
<savanni> Is there any way to downgrade back to bluez-4 and a compatible version of pulseaudio? bluez-5 + pulseaudio-9 has a long-known regression that I'm finding impossible to work around.
<LnL> buttbutter: you can probably get a basic system working in a couple of hours (depending on how complicated you want to make the disk layout)
<hodapp> I ran st for a bit and just had too many weird issues with (I think) UTF-8 and line wrapping never working fully right
way218 has joined #nixos
christine_ has joined #nixos
<sphalerite> hodapp: but st is written from the ground up to work well with unicode... And line wrapping not working right? how so?
<hodapp> sphalerite: e.g. Press up-arrow and recall prior command. Prior command is several lines long. Move cursor somewhere to middle and attempt to edit command. It starts writing characters to a different position than it is showing.
<hodapp> crap like that.
hiratara has joined #nixos
<sphalerite> weird, I never had issues like that
<sphalerite> although they probably get hidden by tmux if they exist on mine
zagy has quit [(Ping timeout: 258 seconds)]
<sphalerite> nope, line editing works fine without tmux as well...
<hodapp> it happens sporadically with me
<hodapp> usually upon something like a window resize
<gchristensen> clever: good to know about <enter>~.
<gchristensen> _really_ good to know!
<LnL> gchristensen: yeah I discovered that a few months ago
<m`> hodapp: what was your choice after st then?
<sphalerite> hodapp: resizing the window doesn't break it for me either ¯\_(ツ)_/¯
<hodapp> sphalerite: it doesn't for me either
<hodapp> until it just does
<hodapp> m`: I've used gnome-terminal a bit
<sphalerite> maybe you're cursed :p
<hodapp> I suppose my next step should be to figure out how to install $crap that is only available for $whatever_package_manager on $distro
<sphalerite> gchristensen: you can also set up port forwards in a running session using ssh's escapes (rather than starting a new one)
<gchristensen> sphalerite: as kmicu regularly reminds me, I should really read the manual!
<LnL> sphalerite: what, that sounds pretty usefull
<sphalerite> It's surprising how little-known it is though. Just not widely documented
<sphalerite> <enter> ~ C
<sphalerite> type ? at the prompt to get info
<sphalerite> #
<sphalerite> oops
<gchristensen> holy crap
systemfault has quit [(Quit: Bye!)]
systemfault has joined #nixos
<sphalerite> also, manuals are long.
<sphalerite> IRC is the best way to learn things :p
<sphalerite> Actually no, pretend I never said that. It made me feel like those people who just copy and paste their homework/work tasks onto stack overflow
<MichaelRaskin> Feed a manual into an empty channel. At the same traffic as #nixos, you'll read quite a few manuals every day
viric___ is now known as viric
goibhniu has quit [(Ping timeout: 245 seconds)]
<sphalerite> but I don't read all of #nixos :p
c0bw3b has joined #nixos
<sphalerite> plus I can't share what I do know with a manual
<MichaelRaskin> Hey, you can! PRs against manual are very welcome.
<sphalerite> Oh yeah I even did one of those today
* sphalerite should probably sleep
<sphalerite> But I found the information that I put in it via IRC ;0
<sphalerite> ;) *
<sphalerite> Right I'm off, gnight!
<jeaye> Anyone manage to build uberjar packages with leiningen? I've been unable to get it downloading deps properly, since it tries to store them in /var/empty/.m2
m` has quit [(Ping timeout: 264 seconds)]
sigmundv_ has quit [(Ping timeout: 260 seconds)]
FRidh has quit [(Remote host closed the connection)]
hotfuzz has joined #nixos
hotfuzz_ has quit [(Read error: Connection reset by peer)]
jgertm_ has quit [(Ping timeout: 258 seconds)]
hiratara has quit [(Remote host closed the connection)]
hiratara has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/v1oNd
<NixOS_GitHub> nixpkgs/master 7bcc6e9 Pascal Wittmann: riemann: provide executable and config...
<LnL> jeaye: that's the homedir for nixbld users
<jeaye> LnL: I'm not setting it, so it's likely defaulting to /var/empty. With that said, my build script is https://gist.github.com/jeaye/df31895c9ce73df5f23845dcd0e97ced
<jeaye> So I was hoping that wouldn't be an issue.
m` has joined #nixos
<jeaye> Where $PWD is some /tmp/nix dir for the derivation.
<LnL> I thing something is trying to use ~$(whoami) instead of using $HOME
christine_ has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
<m`> hi! I'm running an emacs daemon under nixos, as described here: https://nixos.org/wiki/Emacs_configuration#Emacs_Systemd_Daemon . Does anybody know, why ghci for example cannot be found from inside emacs and other applications can?
<m`> so (executable-find "ghci") -> nil (executable-find "grep") -> some path..
<jeaye> LnL: Yup. Chatting with someone in #leiningen about it now. If all else fails on that side, I think I should be able to give each nix builder its own home and this would go away.
<LnL> during a build HOME is set to /homeless-shelter to make sure build's don't try to put stuff there
<jeaye> Grr
<m`> (when emacs is started regularly, ghci can be found)
<LnL> m`: how did you install ghci?
<m`> LnL: I installed the ghc and the stack package (but only on the user profile), I'm not sure where ghci comes from.
<m`> maybe I should put them to the configuration.nix
<LnL> the emacs daemon probably only knows about the systemPackages
indi_ has joined #nixos
<m`> well, on the other hand firefox is declared in the systemPackages (in configuation.nix), however it's not recognized as well.
<LnL> it might also just not know about any packages apart from the stdenv
Wizek_ has joined #nixos
Wizek has joined #nixos
mudri has joined #nixos
m` has quit [(Ping timeout: 260 seconds)]
<LnL> did you restart it?
<c0bw3b> LnL: what Vladimir suggested on PR #21029 with variants, is it something like openssl ?
<c0bw3b> like one common base and then we have openssl / openssl_1_1_0 / ..
zraexy has joined #nixos
<LnL> he's suggesting to leave the options default like it's now and add an other attribute in all-packages like nghttp2Full with everything enabled
m` has joined #nixos
wkennington has joined #nixos
<LnL> c0bw3b: is there a specific reason to add all the options? is there something currently in nixpkgs that needs those?
<c0bw3b> well yes it would be clearer to have "libnghttp2" declared under pkgs/dev/libs and another nghttp2_apps under pkgs server/webserver
jensens has joined #nixos
<c0bw3b> but edolstra himself previously undone that in https://github.com/NixOS/nixpkgs/commit/b4bf4327097265d855ad04f09759bd2eeb73aed1
<c0bw3b> LnL : no packages needs the full options but I'd like to be able to build nghttpx reverse proxy _with_ jemalloc
<c0bw3b> LnL : or some user might want to try the C++ lib to add HTTP2 support to its app --> need building nghttp2 with boost
<LnL> right, I would add the options then but leave them disabled by default
<LnL> and there's probably no need to add an attribute with everything enabled, then nghttpx expression can just override the jemalloc option to enable it
<m`> LnL; yes, I restarted it. I figured out now, that emacs does knows about a PATH variable (getenv ..), which contains the right path to ghci. but still it does not find it.
<c0bw3b> LnL: yep :) i also feel it's the best solution
mkoenig has joined #nixos
<m`> LnL: the config in the link you sent looks slightly different from the url I posted initally. I dont know exactly how this works, to me it looks like the configuration.nix would overwrite them, but'm not sure.
blahdodo has quit [(Remote host closed the connection)]
<LnL> I'm not following, are you're talking about callPackage with { withJemalloc ? false }: ...
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #21055: openblas: refactor and set TARGET always (master...openblas) https://git.io/v1rhC
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #21016: openblas: Fix build issue when inside VM and CPU is undetected (master...fix-openblas-build) https://git.io/v1VnY
blahdodo has joined #nixos
jensens has quit [(Ping timeout: 260 seconds)]
<Cypi> What would be a clean way to use a package present in unstable without upgrading to unstable? Can I just use the default.nix file associated with the package? If so, how?
<c0bw3b> the last answer by madransom
<Cypi> Thanks!
<LnL> you don't have to clone it your can put an url in your NIX_PATH
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
indi_ has quit [(Remote host closed the connection)]
thc202 has quit [(Ping timeout: 264 seconds)]
filterfish has joined #nixos
indi_ has joined #nixos
m` has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
c0bw3b has left #nixos []
indi_ has quit [(Ping timeout: 268 seconds)]
<Rotaerk> hmm what does the mkDerivation attribute of a derivation do? how's it different from the nixpkgs.mkDerivation
glines has quit [(Ping timeout: 264 seconds)]
<Rotaerk> hmm maybe that's specific to haskell modules...
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
RchrdB has quit [(Quit: Leaving)]