<hl> FYI, the oggs play fine using mplayer, firefox audio works fine, audacious audio works fine, etc. Just event sounds don't work
hook has quit [(Ping timeout: 240 seconds)]
hook has joined #nixos
mortum5 has quit [(Ping timeout: 255 seconds)]
<neonfuz> tilpner: I already tried that
<tilpner> Just to make sure, the "Notification Sounds" entry in the system settings is neither muted nor at a low value?
<neonfuz> btw is it okay to define boot.kernelModules in both configuration.nix and hardware-configuration.nix?
<tilpner> neonfuz - Should do nothing
<neonfuz> and should I take the warning in the hardware config seriously? Will something ever overwrite that file?
<hl> tilpner (IRC): Where can I find that?
<tilpner> neonfuz - But lsmod | grep rt2800 doesn't list anything?
<neonfuz> it does
<neonfuz> it's loaded
<tilpner> hl - No idea, some volume settings
<tilpner> neonfuz - And the number
<neonfuz> but only because I did modprobe rt2800usb
<tilpner> Oh, that's what you mean by doesn't work
<neonfuz> yeah
<neonfuz> ifconfig shows no extra interfaces, dmesg just says new device found with no driver loading
<tilpner> So your question "what packages do firmare come in?" was completely irrelavant because you didn't say it already loads fine :/
<neonfuz> what loads fine?
<tilpner> Well, you said rt2800usb loads fine
<neonfuz> the module does, I have no idea if the fw is
<neonfuz> does the module loading imply the firmware loading?
<tilpner> I would hope so, if it doesn't log any errors
<neonfuz> alright
<tilpner> (But I don't know)
<tilpner> Do you pass -a to ifconfig?
<hl> The 'multimedia' settings page seems broken. If I run systemsettings5 in a terminal, I get these lines amongst others:
<neonfuz> I asked what pkg fw came in because debian instructs to install firmware-ralink
<neonfuz> I forgot I have all firmware on
<hl> org.kde.kcoreaddons: Error loading plugin "kcm_pulseaudio" "The shared library was not found."
<hl> WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
<hl> void BackendSelection::load() "/run/current-system/sw/lib/qt-5.9/plugins/phonon4qt5_backend" does not exist (and the same line for a number of other search paths)
<neonfuz> tilpner: no, I'll try that
<neonfuz> yeah nothing still
<tilpner> neonfuz - Wireless always worked out-of-the-box for me, so I don't really know what I'm doing, but try https://askubuntu.com/a/61547
<tilpner> (Just the different detection methods)
MP2E has quit [(Quit: leaving)]
<neonfuz> brb rebooting
<neonfuz> still nothing
<tilpner> neonfuz - Don't modprobe and check dmesg
schoppenhauer has quit [(Read error: Connection timed out)]
<tilpner> (Later modprobe to check dmesg again)
ris has quit [(Ping timeout: 255 seconds)]
<tilpner> ... wow
<tilpner> neonfuz - Did you try networking.enableRalinkFirmware ?
<tilpner> (Might be implied by "all". checking)
<tilpner> Ehh, does nothing, no need to try
slack1256 has joined #nixos
schoppenhauer has joined #nixos
<ekleog> hmm... anyone using fcron? it looks like I'm hitting https://github.com/NixOS/nixpkgs/issues/25072 , except it's supposed to be already fixed :/
<adelbertc> Ran a `nix-build` (from a shell script) on macOS which gave me a `result` symlink as usual, but when I try to `rm result` I get a Permission denied - is this a bug or am I missing something ?
MP2E has joined #nixos
<adelbertc> nvm i know what happened
<gchristensen> what happened?
iqubic has joined #nixos
hook has quit [(Ping timeout: 240 seconds)]
<neonfuz> I think the problem is udev not figuring out the right driver
<neonfuz> or the driver not recognizing the card?
<neonfuz> but my specific device id is listed on the debian wiki as supported by rt2800usb
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
eacameron has joined #nixos
LnL has quit [(Quit: exit 1)]
sigmundv has quit [(Ping timeout: 258 seconds)]
mudri has quit [(Ping timeout: 260 seconds)]
LnL has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
erictapen has quit [(Ping timeout: 260 seconds)]
cpennington has joined #nixos
lambdamu_ has joined #nixos
lambdamu has quit [(Ping timeout: 255 seconds)]
hellrazo1 has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
jsoo has joined #nixos
jsoo has quit [(Client Quit)]
eacameron has quit [(Ping timeout: 255 seconds)]
vengefulpickle has joined #nixos
cpennington has quit [(Read error: Connection reset by peer)]
oida has quit [(Ping timeout: 248 seconds)]
oida has joined #nixos
<adelbertc> gchristensen: my `deploy` script was just `cp`-ing files out of `result` so i assume they jsut retained their permissions in the Nix store
<adelbertc> which is root
<adelbertc> my `deploy` script is what was calling `nix-build`, i incorrectly assumed it was nix's fault :-)
<adelbertc> separate question, is anyone familiar with `haskellPackages.developPackage` ? I'm currently trying to use it with `haskellPackages.developPackage { root = "./." }` but am getting "*** found zero or more than one cabal file ([]). Exiting." even though I can confirm I have exactly 1 cabal file in the current directory
<adelbertc> shlevy ^ ?
<adelbertc> oh wait i think i know why. it uses the basename of the folder to look for the cabal file which in this case is... `.` i guess
<adelbertc> so i have to do "../<my-proj-name>" which is... annoying
atorres1985 has quit [(Quit: Leaving)]
<copumpkin> if I'm in a double single quoted string and I want to type the literal '${ into it
<copumpkin> how do I do that?
Wizek_ has quit [(Ping timeout: 248 seconds)]
<copumpkin> normally to escape ${, I need ''${
<copumpkin> but with the single quote ahead of it, I end up with '''${
<copumpkin> which no longer gets tokenizsed properly as an escaped ${
<copumpkin> I suppose I can create an intermediate value
<copumpkin> feels awkward though
<copumpkin> or another layer of ${}
<copumpkin> I guess I'll go with '${"${"}' for now
<adelbertc> ok weird i stopped using `developPackage` and started using `callCabal2nix` (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/make-package-set.nix#L134) like `callCabal2nix "foo" "./."` which looking at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/make-package-set.nix#L104 suggests it will call `cabal2nix ./. > $out/default.nix` but getting "*** found zero
<adelbertc> or more than one cabal file ([]). Exiting." again
<adelbertc> `cabal2nix ./. > foo.nix` works fine though...
<iqubic> copumpkin: this seems like an XY problem.
vengefulpickle has quit [(Remote host closed the connection)]
<iqubic> Why do you think you need anther layer of ${}?
<iqubic> What problem are you trying to solve?
<copumpkin> Trying to write the literal ‘${ in a ‘’ block
<copumpkin> If there’s a cleaner way I’m all ears :)
<iqubic> Also, is it possible to have an environment variable that is always set?
<iqubic> I'd like to change the default value of KEYTIMEOUT if possible. And do it without adding an "export KEYTIMEOUT=$VAL" in my .zshrc
<iqubic> There should be a configuration.nix option to change that.
<fearlessKim[m]> iqubic, look for shellAliases
<iqubic> That's not quite what I want.
<fearlessKim[m]> sry I meant environment.variables
<tilpner> copumpkin - Is this you? https://github.com/NixOS/nix/issues/1416
pxc has joined #nixos
<tilpner> Ahh, not you
<copumpkin> Not me :) on mobile now or I’d respond with my “solution” above
<copumpkin> But it doesn’t really make me very happy
<iqubic> environment.variables = { KEYTIMEOUT = 1 };
<iqubic> That should work, right?
<fearlessKim[m]> networkmanager_l2tp sets in its makefile "dbusservicedir = $(sysconfdir)/dbus-1/system.d" which ends up being /etc/dbus-1/systemd . On build this generates "cannot create directory '/etc/dbus-1/system.d': Permission denied", where should this folder typically go ?
<fearlessKim[m]> iqubic yes. doesn't it ?
<iqubic> Haven't tried
csingley has quit [(Ping timeout: 246 seconds)]
<iqubic> Yes, that seems to have worked.
<iqubic> Except for this error: The option value `environment.variables.KEYTIMEOUT' in `/etc/nixos/configuration.nix' is not a string or list of strings.
<iqubic> Seems simple enough to fix.
<iqubic> but will it work I use string with the char 1?
pxc has quit [(Ping timeout: 255 seconds)]
pxc has joined #nixos
iqubic has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdguy
<NixOS_GitHub> nixpkgs/master 4817454 Peter Hoeg: wireguard: wg-quick systemd unit was referencing /usr/bin
NixOS_GitHub has left #nixos []
iqubic has joined #nixos
<iqubic> Is it possible to chroot into a nixos install?
<iqubic> I managed to screw up my nixos system somehow. Not even too sure what I did.
<isHavvy> Yes. But I don't remember how.
<iqubic> Basically the machine boots to systemd and I can select which os I want. Once I boot into nixos, I get the big wall of text scroll by. Then when my display manager starts, all I get is a black screen.
<isHavvy> iqubic: Do you have previous boots you can go back to?
<iqubic> No. I just collected garbage to get rid of the prior boots.
<iqubic> Which I guess was a silly thing to do.
<iqubic> "Nix-collect-garbage -d" followed by "nixos-rebuild boot" leaves me with a single non working nixos generation
<iqubic> What can I do to fix this?
<iqubic> I have the nixos installation media, so I can boot into that and try to fix this if possible.
sary has quit [(Ping timeout: 248 seconds)]
Nobabs27 has joined #nixos
<iqubic> I really don't want to have to reinstall nixos
pxc has quit [(Ping timeout: 260 seconds)]
iqubic has quit [()]
iqubic has joined #nixos
<iqubic> That's the config I was most recently trying to get working.
<iqubic> Anyone know how I can fix these issues?
sary has joined #nixos
pxc has joined #nixos
<fearlessKim[m]> iqubic could you log into an alternate tty ?
<iqubic> I didn't try that.
<iqubic> Let me try that now.
<iqubic> Be back soon.
<iqubic> probably should fire up IRC on a different machine come to think of it.
<iqubic> As opposed to on the live system
iqubic_ has joined #nixos
<iqubic_> switching to a different tty and back to my display manager tty fixed the issues.
<iqubic_> I wonder why that worked
<iqubic_> Also, freenode still thinks that my name is in use
iqubic has quit [(Ping timeout: 260 seconds)]
moet has joined #nixos
<moet> so the powertop changes that i was working on the other day.. i'm not sure that they work
<moet> i've applied them to my own system using a packageOverride of postPatch on powertop
<moet> and powertop now creates the appriate (empty) file in the correct location.. but it never writes anything to it
<moet> so.. /shrug thanks for everyone's help yesterday!
<moet> (i've tried running `sudo powertop --calibrate` several times)
iqubic_ is now known as iqubic
Nobabs27 has quit [(Quit: Leaving)]
rydnr has joined #nixos
<rydnr> Hi all!
hamishmack has quit [(Quit: hamishmack)]
<rydnr> I'm trying to install extraterm (https://github.com/sedwards2009/extraterm). I have no experience writing Nix packages. I've cloned the repo, run node2nix, created a new 'extraterm' folder into my local nixpkgs repo (under tools/misc), copied there all *.nix files generated by node2nix, and tried to install it with nixos-rebuild switch -I nixpkgs=[path-to-my-nixpkgs]
ebzzry has joined #nixos
hamishmack has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
<rydnr> It failed with an error message that wasn't particularly meaningful to me: error: "The option value `environment.systemPackages.[definition 3-entry 11]' in `/etc/nixos/packages/misc.nix' is not a package.". The 11th entry is precisely "extraterm".
ebzzry has joined #nixos
<rydnr> So I tried to run nix-build directly on the extraterm repo, after running node2nix, and it failed because it couldn't find "fontconfig.h". I installed fontconfig globally with nixos-rebuild, but it apparently made no difference.
<fearlessKim[m]> rydnr: node2nix might generate valid files for a nix-shell but not for integration in the repo. Could you make extra term work in a nix-shell ? I don't know node2nix
endformationage has quit [(Quit: WeeChat 1.9)]
<moet> rydnr: the missing fontconfig stuff needs to be available in the build environment.. i'm not sure how to do that, but you probably need to modify the nix expression to indicate fontconfig is a dep
MP2E has quit [(Quit: leaving)]
<rydnr> Thank you both. I'll read more about nix-shell, since I've never really used so far. And the fontconfig as dep makes a lot of sense.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4817454366 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
eacameron has joined #nixos
<fearlessKim[m]> running "nix-shell" from the extraterm folder should be enough. that's one fancy terminal
Mutter has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<moet> so. i just realised after days of trying to get powertop to work, my CPU is too old to support intel_pstate lol.
moet has quit [(Quit: rebooting w/o pstate)]
moet has joined #nixos
<fearlessKim[m]> moet xD
<moet> fearlessKim[m]: ok.. so adding intel_pstate=disable to my kernel params didn't make the old cpu-freq governors all come back..
<moet> so i'll just configure ondemand to put my cpu at 1000mhz all the time i guess
<moet> but yeah
Mutter has quit [(Quit: Mutter: www.mutterirc.com)]
<moet> my computer life rn XO
<moet> i mean i guess powertop adjusts other things too, so i'll leave it alone
moet has quit [(Quit: reboot with pstate)]
kwork has quit [(Ping timeout: 260 seconds)]
Wizek has quit [(Quit: Connection closed for inactivity)]
<phI||Ip> Do services run under a different user in 17.09? Have a service that seems to no longer function - curious if its permission
moet has joined #nixos
<moet> yey. ok. figured out why i couldn't just set the powersave governor
<moet> i'd spelled the nixos option wrong
<moet> fix'd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vdg2B
<NixOS_GitHub> nixpkgs/master 2870979 Vincent Laporte: ocamlPackages.ounit: fix for OCaml 4.06
<NixOS_GitHub> nixpkgs/master 7013164 Vincent Laporte: ocamlPackages.oasis: remove unneeded dependencies
NixOS_GitHub has left #nixos []
<mudphone> What is the `{ pkgs, stdenv, fetchurl,... }:` declaration at the top of a nix module?
<mudphone> What is it called?
<MichaelRaskin> A module is a function, and this is the function argument list.
<srhb> mudphone: Those are the arguments.
<mudphone> oh, interesting... I'm trying to understand what the dependencies of the erlangR20 package are, so I can install it via ASDF-vm, rather than via the nix package. Is that lunacy?
<mudphone> (asdf-vm is a version manager, which works with Erlang)
slack1256 has quit [(Remote host closed the connection)]
<srhb> In general you get most out of Nix if you go all in, and will probably have to struggle a bit compared to on other distros if you forgo the Nix way.
MercurialAlchemi has joined #nixos
<srhb> That said, it's usually doable.
<mudphone> that sounds like good advice...
<mudphone> what is the nix way to handle multiple versions of a package?
<srhb> Just having multiple version :-)
<srhb> For instance, if you're developing, you'll usually bring up a development shell that brings all of your dependencies "into scope" within that shell.
<srhb> Like so, nix-shell -p package -p package2 -p package3
<srhb> (Usually you define that in a shell.nix file)
<srhb> When you do like this, it's no problem simply bringing another version into scope
<srhb> ... -p package2_v3
<mudphone> that sounds cool, where can I learn more about `nix-shell`? I've been reading the manual, but haven't seen much about it
<srhb> Most of it is probably buried under language specific sections in the nixpkgs manual, unfortunately.
<srhb> But you can glean a lot from that.
<mudphone> Ah, okay, thanks. I've been reading the nixos manual.
<srhb> mudphone: Ah, yeah, you want the nixpkgs one for this
<srhb> Try section 9.1.6.2
<srhb> In fact, read the entire Erlang section I guess :-)
hook has joined #nixos
<mudphone> cool! thank you
<adisbladis> copumpkin: Did you ever make any progress on https://github.com/NixOS/nix/issues/759 ?
hook is now known as silver_hook
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
serhart has quit [(Ping timeout: 240 seconds)]
<gleber_> mudphone: the deps of Erlang R20 is here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/erlang/generic-builder.nix#L50 - you will have to lookup a meaning of few constructs there, but it's all listed in this file
serhart has joined #nixos
<srhb> Nice :)
moet has quit [(Ping timeout: 255 seconds)]
hamishmack has quit [(Quit: hamishmack)]
nslqqq has quit [(Ping timeout: 255 seconds)]
hamishmack has joined #nixos
nslqqq has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
<Judson> Are NixOS Rust-folk using rustup or...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rickynils pushed 1 new commit to release-17.09: https://git.io/vdga9
<NixOS_GitHub> nixpkgs/release-17.09 816d0f1 Rickard Nilsson: ruby: 2.3.4 -> 2.3.5...
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
<Judson> Cuz' 1.20.0 is the stable version of Rust, but 1.17.0 is fresh in nixpkgs
<tilpner> Allows for things like (rustChannelOf { channel = "nightly"; date = "2017-09-04"; }).rust
<Judson> Cool...
reinzelmann has joined #nixos
<Judson> Okay, but if I want to *distribute* something in Rust, we're still a few versions behind stable in nixpkgs
<tilpner> Judson - buildRustPackage doesn't work with newer cargo, but rustc needs cargo to build
<Judson> So there's an ongoing problem with a nix builder?
<tilpner> Judson - There are efforts to replace/update buildRustPackage, not sure what the current status is
<tilpner> Not sure how you mean that question
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Mutter has joined #nixos
<Judson> It looks like there's a PR with (what sounds like) a big improvement over the old buildRustPackage. No idea what the status is there.
<Judson> Although it sounds like the existing PR breaks all the existing rust packages... They need to be touched to give them new hashes.
Mutter has quit [(Remote host closed the connection)]
<mudphone> gleber_: are "autoreconfHook makeWrapper" packages that I need to lookup somewhere else? or functiona?
<mudphone> *functions?
thc202 has joined #nixos
<gleber_> mudphone: these are packages but represented as functions
<gleber_> mudphone: You can usually look their definitions up in all-packages.nix
<gleber_> makeWrapper is something 100% nix-specific and not interesting for your use case
<gleber_> mudphone: autoreconfHook is a nix-specific wrapper around autoreconf
<mudphone> ah, I see, it calls `autoreconf.sh` to install... etc.
<mudphone> so, it looks like this is how I find out how the packages are built... but, if I want to manage multiple versions of Erlang for development purposes, I should use nix-shell.
proteusguy has joined #nixos
Ivanych has joined #nixos
<gleber_> mudphone: that's correct
acarrico has quit [(Remote host closed the connection)]
<gleber_> mudphone: `nix-shell --pure` establishes an environment where only explicitly specified packages are available
<otwieracz> I've got a software which is not nix-based and requires libssl.so. Is there anything I can do?
<otwieracz> (nixos)
<mudphone> thanks, I'll take a closer look at nix-shell
<gleber_> mudphone: given that all packages in nix are always self-contained and there are no "global" directories like `/usr/lib`, there's no problem in having multiple Erlangs defined in `nixpkgs`.
<gleber_> mudphone: enjoy! Nix is one of the most elegant solution to a standard software problem out there :)
<mudphone> I see, so if I run multiple shells with different erlang versions, they can exist side by side
<gleber_> mudphone: correct
<mudphone> and I'm assuming they don't have to be downloaded every time I boot a shell up?
<gleber_> mudphone: power of `asdf-vm` is a strict subset of power of `nix`
<mudphone> erlang takes a while to download and build
<mudphone> ah, cool that's a clear way to put it
ertes has quit [(Ping timeout: 248 seconds)]
periklis has joined #nixos
<otwieracz> Actually its `sbcl` requiring some additional libraries. How can I expose those to `sbcl`?
<gleber_> mudphone: the packages built by nix-shell will stay `/nix/store` until someone runs nix GC
<MichaelRaskin> you can set LD_LIBRARY_PATH, or you could add stuff to CFFI search list
<adisbladis> mudphone: Things will be cached in the nix store
<MichaelRaskin> cffi:*foreign-library-directories*
<gleber_> mudphone: to make a shell truly persistent, you need to add a "derivation" (~= package) defined by shell.nix into a `gcroot`
<gleber_> mudphone: the easiest way to do it currently is to Google for "nix persistent shell" and you'll find few solutions
garbas has quit [(Ping timeout: 240 seconds)]
joachifm has quit [(Ping timeout: 240 seconds)]
M1k3y has joined #nixos
<gleber_> mudphone: here's a very short instructions list: https://nixos.org/nix-dev/2016-November/022176.html
joachifm has joined #nixos
<M1k3y> hello. Can I write a nix expression that gets validated when using nixos-rebuild, but is ignored when running nixos-install from the live system?
garbas has joined #nixos
<gleber_> otwieracz: the most standard way is to follow these instructions: https://nixos.org/nixpkgs/manual/#chap-quick-start
jb55 has joined #nixos
<MichaelRaskin> otwieracz: Or you can build lispPackages."cl+ssl" and use its launcher called cl+ssl-lisp-launcher.sh
<mudphone> gleber_: ah, okay, thanks... looks like `--add-root` is the thing to search for
pxc has quit [(Ping timeout: 240 seconds)]
<gleber_> mudphone: yes, it will add a derivation into gcroots, which will prevent it from being collected
b has quit [(Quit: Lost terminal)]
<otwieracz> MichaelRaskin: Seems like '+' is invalid in systemPackages…
<MichaelRaskin> You need to quote attribute name with ""
<otwieracz> Ah ok.
<MichaelRaskin> Maybe + should be added to name-escaping list, though.
<MichaelRaskin> (most of the packages are autogenerated from QuickLisp)
<MichaelRaskin> But that's not a suggestion for you to implement, and this won't happen today.
MichaelRaskin has quit [(Quit: MichaelRaskin)]
<mudphone> so this `nix-shell` stuff is really cool. I had not heard of it until today. I came for the reproducible OS builds.
mortum5 has joined #nixos
pxc has joined #nixos
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
<gleber_> mudphone: hehe, all of nix ecosystem is built on top of very elegant and powerful principles. A drawback is that to get all of them, you need to buy in into all of it, which is a non-trivial upfront cost. IMO it pays off pretty quickly afterwards
schoppenhauer has quit [(Read error: Connection timed out)]
jb55 has quit [(Ping timeout: 255 seconds)]
ertes-w has joined #nixos
<sphalerite> Is building macOS apps (application bundles) which will run independently of nix feasible with nix?
schoppenhauer has joined #nixos
kwork has joined #nixos
iqubic has quit [(Ping timeout: 260 seconds)]
jensens has joined #nixos
kwork has quit [(Changing host)]
kwork has joined #nixos
Itkovian has joined #nixos
pxc has quit [(Ping timeout: 264 seconds)]
<jluttine> what iso image writers there are available (for kde) in nixos? unetbootin requires root access..
<mudphone> gleber_: I'm surprised people don't talk more about nix-shell.
peacememories has joined #nixos
<musicmatze[m]> They all require root, that's because how Linux works, not because how the image writer works
peacememories has quit [(Client Quit)]
bin7me has joined #nixos
zzamboni has joined #nixos
phreedom has joined #nixos
<sphalerite> jluttine: unetbootin isn't a good idea anyway nowadays
<sphalerite> jluttine: you shouldn't need root for them if you give yourself write access to the device node though
<jluttine> i just want to write an iso image to usb...
<sphalerite> For USB sticks, dd is usually the wya to go
<sphalerite> in that case, find the device node for the USB stick (lsblk can help with that)
<sphalerite> then setfacl -m u:yourusername:rw /dev/sdz (replace z as appropriate)
peacememories has joined #nixos
<sphalerite> ^ as root
<sphalerite> then you can `dd if=image.iso of=/dev/sdz bs=4M oflag=direct status=progress` to write the image to the USB
<sphalerite> just be very careful so oyu don't overwite your system!
bkchr has joined #nixos
<otwieracz> Does nixos install header files somewhere?
<otwieracz> Like, when curl is installed, am I able to find curl.h somewhere?
<clever> nixos doesnt install header files
<clever> you must use nix-shell to get an environment that can use headers
<otwieracz> I am building FHSUserEnv.
<clever> compiling isnt meant to run under the FHSUserEnv
<otwieracz> The problems is that I need environment where I am able to *build* things.
<otwieracz> For my work.
<clever> otwieracz: "nix-shell -p curl stdenv", this will give a shell that can build things
<otwieracz> But the problem is that I need „regular” /
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<otwieracz> So it's impossible?
<clever> the stdenv in nixos isnt really made to work under an FHS env, you will be fighting the normal code all the way
<clever> it will be far simpler to work with if you do it the right way
schoppenhauer has joined #nixos
<otwieracz> OK, but in nix-shell -p where is, for example, libcurl?
katyucha has joined #nixos
<otwieracz> Probably it has to use pkgconfig?
<otwieracz> I mean, the issue is that one tool I use (and I am unable to fix) does not look at environment variables when searching for shared libs.
<otwieracz> It expects it in few predefined places.
<otwieracz> I am unable to „nixify” it, I have to use it as is.
<otwieracz> But I am afraid that's just impossible in Nix.
proteusguy has quit [(Remote host closed the connection)]
<clever> otwieracz: nix will set $NIX_CFLAGS_COMPILE to include the right -I flags
<clever> otwieracz: and the gcc in nix will obey that search path
<otwieracz> Yes, but that's not gcc.
<clever> so when you #include <curl.h>, it just works
<otwieracz> That's Lisp's Common Foreign Function Interface.
<clever> ah
<clever> does that accept the -I flag?
<otwieracz> The problem is that it's not calling GCC (in this specific moment).
<otwieracz> But just loads shared library to create lisp bindings.
lsix has joined #nixos
jb55 has joined #nixos
<otwieracz> That's why it needs library to be under /lib/lib{ssl,curl}.so
<clever> you can set LD_LIBRARY_PATH to change the search path
<otwieracz> It's not conforming LD_LIBRARY_PATH.
<clever> nix-repl> "LD_LIBRARY_PATH=${lib.makeLibraryPath [ curl ]}"
<clever> "LD_LIBRARY_PATH=/nix/store/54cdgs1hvjp9jzj935jhanndcdnlxvpq-curl-7.55.1/lib"
<clever> otwieracz: can you paste some example code and how to run it?
<otwieracz> I don't think it's possible.
<otwieracz> It requires some local setup
<clever> can you write an example program that has the same problem?
<sphalerite> patch cffi!
zzamboni has quit [(Quit: Leaving.)]
<otwieracz> Well, I've switched to NixOS for a try during the weekend, everything seemed to work for me (more or less)
<otwieracz> but I've totally forgotten about CFFI shit.
zzamboni has joined #nixos
zzamboni1 has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdgiJ
<NixOS_GitHub> nixpkgs/master 28cd0f2 Vincent Laporte: ocamlPackages.ppx_ast: 0.9.0 -> 0.9.{1,2}
NixOS_GitHub has left #nixos []
M1k3y has quit [(Ping timeout: 260 seconds)]
<otwieracz> Yeah, but it seems like it's just not going to work for such broken dev environment.
<otwieracz> It will be more pain than fun.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] layus opened pull request #30242: Firefox: do not crash on print dialog. (master...firefox-gtk) https://git.io/vdgiI
NixOS_GitHub has left #nixos []
<otwieracz> Before I revert backup - there's no *valid* way to prepare / with all .so's and .h's?
<clever> otwieracz: libraries that are installed land in /run/current-system/sw/lib/
<otwieracz> $ nix-shell -p curl stdenv openssl ← and I don't see openssl in /run/current-system/sw/lib/
<bkchr> Is the cache down?
ebzzry has quit [(Quit: WeeChat 1.9)]
<clever> otwieracz: nix-shell puts them in env variables, systemPackages puts it into current-system
<clever> otwieracz: nix-env puts it into ~/.nix-profile/{bin,lib}
reinzelmann has quit [(Quit: Leaving)]
<otwieracz> But I've got openssl in systemPackages.
<clever> otwieracz: and what is in /run/current-system/sw/lib/ ?
<otwieracz> Number of different things, but nothing openssl-related
mudri has joined #nixos
proteusguy has joined #nixos
<clever> otwieracz: can you pastebin a simple lisp program that uses openssl or curl, and the command to compile/run it?
<otwieracz> Unfortunately, you'll have to setup for example whole quicklisp environment.
taktoa has joined #nixos
<clever> [nix-shell:~]$ quicklisp --version
<clever> Unknown parameter [--version]
<clever> otwieracz: done
ebzzry has joined #nixos
<otwieracz> Try: sbcl -e '(ql:quickload :cl-curl)'
<clever> otwieracz: at a glance, it looks like cl-curl needs ot be packaged: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/lisp-modules/quicklisp-to-nix-output
goibhniu has joined #nixos
<otwieracz> Yep. But while I am often doing local changes, while just developing - it's impossible.
<otwieracz> There's no way I will repackage every time. :)
<clever> i added cl-curl to the txt file, and ran the provided nix-shell command
<clever> its now genrating packages
mudri has quit [(Ping timeout: 264 seconds)]
<otwieracz> BUt we are not using cl-curl from quicklisp.
<clever> otwieracz: where are you getting your cl-curl from then?
<clever> and why are you using a different one?
<otwieracz> Because I am developing it, more or less.
<clever> ah
hyper_webirc has joined #nixos
<hyper_webirc> who uses luks/dm-crypt and zfs inside?
<clever> hyper_webirc: my laptop is setup with zfs on lvm on luks
<hyper_webirc> clever: can you show me your hardware configuration? I had issues that after unlocking luks, it couldn't find the pool
civodul has joined #nixos
<clever> hyper_webirc: i gave you the config to fix that yesterday
<hyper_webirc> clever: new setup
<clever> hyper_webirc: boot.zfs.devNodes = "/dev";
<clever> hyper_webirc: this has to go into configuration.nix
<hyper_webirc> why /dev and not /dev/mapper ?
<clever> [root@nas:~]# ls -l /dev/mapper/
<clever> lrwxrwxrwx 1 root root 7 Sep 24 10:12 media-swap -> ../dm-0
<clever> hyper_webirc: everything in mapper is just a symlink to a node in /dev/
<hyper_webirc> ok :) thn
<clever> hyper_webirc: so /dev/ will cover the luks devices, and any other things you may have in the future
<hyper_webirc> thx
<hyper_webirc> let's see how next attempt goes
periklis has quit [(Ping timeout: 260 seconds)]
mudri has joined #nixos
taktoa has quit [(Remote host closed the connection)]
michiel_l has quit [(Ping timeout: 246 seconds)]
michiel_l has joined #nixos
hyper_webirc has quit [(Ping timeout: 260 seconds)]
oida has quit [(Ping timeout: 248 seconds)]
vandenoever has joined #nixos
oida has joined #nixos
michiel_l has quit [(Ping timeout: 246 seconds)]
michiel_l has joined #nixos
<otwieracz> clever: So probably the qestion is: is this really impossible to *develop* cl-curl on NixOS? :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] danbst opened pull request #30243: readme.md: reincarnate wiki (master...patch-15) https://git.io/vdgDf
NixOS_GitHub has left #nixos []
zzamboni1 has quit [(Quit: Leaving.)]
<clever> otwieracz: once cl-curl is packaged, you should be able to do something like nix-shell -A lispPackages.cl-curl
<clever> otwieracz: and then it will have the env setup right
<clever> otwieracz: but i'm getting an error i cant really make sense of when trying to add cl-curl to the package list
zzamboni has joined #nixos
<otwieracz> OK - nevermind.
<otwieracz> It's already more pain than advantage. :)
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 264 seconds)]
Mateon3 is now known as Mateon1
vandenoever has quit [(Ping timeout: 240 seconds)]
leat has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/816d0f15d3 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
mudri has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
<tilpner> There really needs to be separation between config package arguments and... other build input arguments :/
hotfuzz_ is now known as hotfuzz
<tilpner> If you overlay/add certain things to nixpkgs, it dies horribly without any helpful messages
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jyp closed pull request #29229: pythonPackages.tensorflow 1.1 -> 1.3 (master...tf1.3) https://git.io/v5PAb
NixOS_GitHub has left #nixos []
<tilpner> E.g. "unicode" or "vanilla"
pxc has quit [(Ping timeout: 240 seconds)]
<tilpner> Where would I propose such a change? Just the issues? Is there something like this already?
yee has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vdgSD
<NixOS_GitHub> nixpkgs/staging 994036d Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
hoodoo_ has joined #nixos
<manveru> yay, finally got no mans sky running with wine :)
hoodoo_ has left #nixos []
yee has left #nixos ["Textual IRC Client: www.textualapp.com"]
erictapen has joined #nixos
<srhb> How do I refer to my nixos config parameters in home.nix for home-manager?
<tilpner> srhb - (import <nixos/config>).config.anything
<tilpner> srhb - * (import <nixos/config> {}).config.anything
<srhb> Oh, like that. Thanks.
<tilpner> Wow, so bad
<tilpner> That's <nixpkgs/nixos>
<srhb> Oh :P
<tilpner> How much can one do wrong about one line...
<tilpner> (It's import /cfg/nixos for my own setup)
<srhb> What, why?
<tilpner> My <nixpkgs> is not a directory. But that was just an explanation for the wrong first answer
<srhb> Ah!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb opened pull request #30244: ansible: Init 2.4 and set to default (master...nixos-unstable) https://git.io/vdg9x
NixOS_GitHub has left #nixos []
<tilpner> You probably want to use let-in to evaluate your config just once
<tilpner> Otherwise it might take forever to eval your home.nix
<srhb> Sooo
<srhb> let cfg = import <nixpkgs/nixos/config> {} ? :-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hschaeidt opened pull request #30245: nodePackages.create-react-app: init at 1.4.1 (master...master) https://git.io/vdgHY
NixOS_GitHub has left #nixos []
<tilpner> (Are there any optimizations regarding multiple imports of nixpkgs, other than not doing it?)
<hyper_ch> so, also with normal zfs I get tons of errors
<tilpner> srhb - No, just "let cfg = import <nixpkgs/nixos> {}; in ..."
<srhb> Oh
<srhb> Thanks
<tilpner> hyper_ch - You might want to ping whoever suggested that yesterday
<tilpner> (And then submit description and logs as an issue as suggested)
rmrfroot has joined #nixos
<hyper_ch> well, still using zfs from unstable but not with encryption
<hyper_ch> might try with zfs not form unstable nbut not sure how that will work
<hyper_ch> tilpner: I don't even know what to report
<tilpner> That you're having a problem, with this config and those errors
<hyper_ch> first, I need a running system
<srhb> Oh, shoot, I forgot to branch my pr. Durr.
<srhb> Oh well, guess that's mostly a problem for myself. :-P
vandenoever has joined #nixos
Wizek_ has joined #nixos
Wizek has joined #nixos
charlycoste has joined #nixos
<adisbladis> hyper_ch: What errors are you getting?
hyper_webirc has joined #nixos
<hyper_webirc> so, back in live usb
<tilpner> Still no qemu? :c
<hyper_webirc> what good is qemu for when the whole system is wrecked?
<tilpner> Oh, I assumed you were still testing your setup script
<hyper_webirc> no
nckx has quit [(Quit: Restarting my GuixSD server — https://gnu.org/s/guix)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vdg7I
<NixOS_GitHub> nixpkgs/master 2ef1a6c zimbatm: zoom-us: 2.0.98253.0707 -> 2.0.106600.0904
NixOS_GitHub has left #nixos []
nckx has joined #nixos
simukis has joined #nixos
ison111 has quit [(Ping timeout: 240 seconds)]
jacob has joined #nixos
jacob is now known as Guest93523
<trikl[m]> I'm trying to use bundix 2.3.1 to create a gemset, but extconf breaks when trying to install nokogiri 1.8.1, it can't find the zlib headers required to build libxml2
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1594: release-common: Fix busybox builtins (busybox >= 1.27) (master...fix/busybox-builtins) https://git.io/vduQx
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #30246: ttwatch: 2017-04-20 -> 2017-09-26 (master...ttwatch) https://git.io/vdgds
NixOS_GitHub has left #nixos []
corpix has quit [(Remote host closed the connection)]
corpix has joined #nixos
hyper_webirc has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb closed pull request #30244: ansible: Init 2.4 and set to default (master...nixos-unstable) https://git.io/vdg9x
NixOS_GitHub has left #nixos []
vandenoever has quit [(Ping timeout: 255 seconds)]
<manveru> trikl[m]: can you describe what you're doing?
csingley has joined #nixos
ShalokShalom has quit [(Ping timeout: 258 seconds)]
leat has joined #nixos
<gchristensen> trikl[m]: is this while running bundix, or after with nix-build or nix-shell?
michiel_l has quit [(Ping timeout: 240 seconds)]
michiel_l has joined #nixos
bkchr has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdgAe
<NixOS_GitHub> nixpkgs/release-17.09 c0f9781 Joerg Thalheim: nixos/fcron: service needs fcron in PATH...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdgAv
<NixOS_GitHub> nixpkgs/master e34e28e Joerg Thalheim: nixos/fcron: service needs fcron in PATH...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vdgAI
<NixOS_GitHub> nixpkgs/release-17.03 55def8a Joerg Thalheim: nixos/fcron: service needs fcron in PATH...
NixOS_GitHub has left #nixos []
<trikl[m]> gchristensen manveru this is while running bundix
<trikl[m]> I wanted to create a gemset file with bundix
<trikl[m]> I got it working but ended up switching to hakyll
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] maximedenes opened pull request #30247: coq: 8.7+beta1 -> 8.7+beta2 (master...coq_8_7_beta2) https://git.io/vdgAB
NixOS_GitHub has left #nixos []
michiel_l has quit [(Ping timeout: 255 seconds)]
michiel_l has joined #nixos
hyper_webirc has joined #nixos
<hyper_webirc> so, tried to not use zfs from unstable.... after copying back my home folder (100gb), there were like 200 corrupted files according to scrub
<hyper_webirc> zfs is not usable for me - back to ext4
<gchristensen> trikl[m]: okay lol
<gchristensen> hyper_webirc: zfs stable lead to 200 corrupted files out of 800g?
zzamboni has quit [(Quit: Leaving.)]
<hyper_webirc> no, 100gb home folder... rsyncing from back to zfs --> over 200 corrupted files
zzamboni has joined #nixos
<gchristensen> oh sorry 200 out of 100g were broken by zfs stable?
<hyper_webirc> rsync -avp /tmp/backup/home /mnt/ --> over 200 corrupted files according to zpool scrub
<gchristensen> dude, your computer has something wrong with it
<hyper_webirc> I checked one file (email)... in the backup it had like 50k lines but only 5k lines on the zfs
<hyper_webirc> gchristensen: and what has my computer to do with it? on ext4 I never had such issues
<hyper_webirc> badblocks - even with -w option - couldn't find any problem with the ssd
<gchristensen> you'd never know, zfs is unique in that it can tell you where problems are
darlan has joined #nixos
<gchristensen> have you done a deep memtest?
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<LnL> are you sure the disk is ok, it's not because ext doesn't complain that there's no problem
<hyper_webirc> gchristensen: the files are fine on the backup
<hyper_webirc> LnL: badblocks -w
<gchristensen> have you run memtest?
<hyper_webirc> no
<gchristensen> zfs uses memory much more extensively than ext4, this couldbe related
<hyper_webirc> anyway, back to ext4 now
<hyper_webirc> need the computer
<gchristensen> I'd recommend running memtest overnight
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] maximedenes opened pull request #30248: pr template: make values of platform field less ambiguous (master...PR_template_nit) https://git.io/vdgxL
NixOS_GitHub has left #nixos []
nslqqq has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdgxc
<NixOS_GitHub> nixpkgs/master 9ca1b56 Maxime Dénès: pr template: make values of platform field less ambiguous
<NixOS_GitHub> nixpkgs/master b9a45b7 Jörg Thalheim: Merge pull request #30248 from maximedenes/PR_template_nit...
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 258 seconds)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
<trikl[m]> Ok, so now I'm having the same problem with stack-digest-zlib
<trikl[m]> `stack --nix install hakyll` fails when building `digest` because it can't find zlib
<trikl[m]> Nevermind, found the docs explaining it
<gchristensen> hyper_webirc: fwiw I'm not invested in you using zfs or ext4 or whatever. I really think something is wrong with your RAM
<trikl[m]> I finally got something building this morning, phew
<hyper_webirc> gchristensen: I'd love to use zfs incl. encryption and mirror... snapshotting is awesome
<hyper_webirc> I'll ramcheck
<hyper_webirc> the nixos live iso does have memtest, right?
nslqqq has joined #nixos
<gchristensen> I think so
<gchristensen> also boot.loader.grub.memtest86.enable -- it'd be cool to make this work for systemd too
<hyper_webirc> I'll change my configuration nix then ;)
michiel_l has quit [(Ping timeout: 255 seconds)]
keta_suki has joined #nixos
<sphalerite> gchristensen: there is no free EFI version of memtest iirc
michiel_l has joined #nixos
<gchristensen> wat
<gchristensen> "$2,500" double-wat
<LnL> euh...
<gchristensen> https://www.memtest86.com/features.htm for the super fancy-pants enterprise one
pxc has joined #nixos
<etu> gchristensen: Seems to be "free of charge" to get one that supports uefi though
mortum5 has quit [(Ping timeout: 248 seconds)]
<LnL> I think we're talking about another "free"
proteusguy has quit [(Remote host closed the connection)]
sigmundv has joined #nixos
<gchristensen> I wonder what the license is
<sphalerite> given that they don't call it open source, I doubt it's a free one
<etu> LnL: yeah, that why I said "free of charge", the first column is called free/GPL, the others doesn't mention GPL
pxc has quit [(Ping timeout: 255 seconds)]
<gchristensen> unfree is "fine" but "unredistributable" becomes problematic
VLetrmx has joined #nixos
tmaekawa has joined #nixos
reinzelmann has joined #nixos
<avn> gchristensen: not much, if fixed can co-exists with preferLocalBuild
<gchristensen> oh yeah!
<avn> although it should be less-preferred way
<gchristensen> unfortunately this seems not ideal: https://www.memtest86.com/downloads/memtest86-iso.zip
<gchristensen> no versioned URL
<avn> life sucks, and we all die finally ;)
<gchristensen> ain't that the truth
tmaekawa has quit [(Quit: tmaekawa)]
bkchr has joined #nixos
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vd2JR
<NixOS_GitHub> nixpkgs/master f6858e5 Shea Levy: Reserve uid/gids for kanboard
NixOS_GitHub has left #nixos []
hyper_webirc has quit [(Ping timeout: 260 seconds)]
freusque has quit [(Quit: WeeChat 1.7.1)]
freusque has joined #nixos
proteusguy has joined #nixos
dywedir has joined #nixos
Itkovian has quit [(Remote host closed the connection)]
mgttlinger has joined #nixos
Itkovian has joined #nixos
silver_hook has quit [(Quit: Konversation terminated!)]
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<flyx> I have a custom mkDerivation that creates a lot of executables in $out/bin. is it possible to tell nix to just make a few of them available on the path when installing this?
<the-kenny> flyx: I don't think so. The usual approach is moving them to $out/share/<package>/bin/... and symlink them to $out/bin/.
<symphorien> maybe it is easier to do another derivation which contains symlinks to the executables you want
<avn> flyx: runCommand "small-pkg" ''mkdir $out/bin && ln -sf ${pkgs.big-pkg}/bin/foo $out/bin/foo''
<avn> (although I would like to see generalized solution for it myself)
<avn> I use that scheme for readelf/strings from binutils, w/o pulling all binutils to system path
reinzelmann has quit [(Quit: Leaving)]
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar has joined #nixos
asdasodfi has joined #nixos
peacememories has joined #nixos
peacememories has quit [(Client Quit)]
fendor has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
jtojnar has quit [(Remote host closed the connection)]
zzamboni has quit [(Quit: Leaving.)]
Tucky has joined #nixos
pie_ has joined #nixos
anderslundstedt has quit [(Quit: leaving)]
jtojnar has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
zzamboni has joined #nixos
iyzsong has joined #nixos
ThatDocsLady has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
ertes-w has quit [(Quit: Bye!)]
keta_suki has quit [(Remote host closed the connection)]
keta_suki has joined #nixos
<silver_hook> Is the option programs.mosh.enable there as the Mosh server or the Mosh client?
<hyper_ch> adisbladis: input/output error
rmrfroot has quit [(Remote host closed the connection)]
lord| has quit [(Quit: WeeChat 1.9.1)]
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
mortum5 has joined #nixos
superherointj has joined #nixos
dywedir has quit [(Remote host closed the connection)]
<srhb> Errr. How are you supposed to use use the riot web client?
<srhb> Opening the index.html file directory just serves a bunch of "missing translation" errors
seppellll has joined #nixos
b has joined #nixos
zzamboni has joined #nixos
<srhb> Oh, looks like that's just chromium. Weird.
bkchr has quit [(Ping timeout: 240 seconds)]
bkchr has joined #nixos
michiel_l has quit [(Ping timeout: 255 seconds)]
michiel_l has joined #nixos
taktoa has joined #nixos
<gchristensen> srhb: can you run: ls -l $(nix-instantiate --find-file nixpkgs) and share the output with me?
iyzsong has quit [(Ping timeout: 255 seconds)]
<nh2> how man I supposed to use `sudo` from a nixos service? /run/wrappers/bin/sudo hardcoded?
vandenoever has joined #nixos
superherointj has quit [(Remote host closed the connection)]
<tilpner> ${pkgs.sudo}/bin/sudo, but I don't know why
<tilpner> All the services use it, and I agree that it should require suid
iyzsong has joined #nixos
<tilpner> Or maybe all those services start as root, so nobody noticed they're wrong
<sphalerite> silver_hook: mosh has a server? I thought it just went through ssh
<etu> sphalerite: it auths over ssh and starts mosh-server and then connects over udp to that server
<Yaniel> sphalerite: it logs in through ssh and starts its own server then
<Yaniel> And prints the port and presumably a secret to ssh stdout
<sphalerite> right. So it doesn't have a long-lived server process as such
bkchr has quit [(Ping timeout: 240 seconds)]
<etu> nah
<Yaniel> Yeah, only as long as the session
<etu> It goes away when you do a proper disconnect
<sphalerite> right, and all the module does is add mosh to systemPackages and opens the firewall ports
<tilpner> nh2 - gitlab uses PermissionsStartOnly and preStart with pkgs.sudo, and that works fine. preStart is executed as root here, and the rest of ExecStart will be done as User
anderslundstedt has joined #nixos
fendor has quit [(Ping timeout: 240 seconds)]
b has quit [(Remote host closed the connection)]
tmaekawa has quit [(Ping timeout: 260 seconds)]
b has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vd2OU
<NixOS_GitHub> nixpkgs/master a1dfb19 Domen Kožar: haskellPackages.double-conversion: remove upstreamed patch...
NixOS_GitHub has left #nixos []
Guest93523 has quit [(Quit: Changing server)]
jacob_ has joined #nixos
jacob_ is now known as Guest17439
Guest17439 has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #30250: ponyc: 0.19.2 -> 0.19.3 (master...ponyc) https://git.io/vd2Oo
NixOS_GitHub has left #nixos []
jacob__ has joined #nixos
iyzsong has quit [(Ping timeout: 248 seconds)]
<hodapp> does anyone use Citrix Receiver here? I am using 'wfica' on some launch.ica, and it pops up with a box to say it's connecting, then just sits there at the commandline with nothing on-screen and no messages aside from some GTK warnings.
fendor has joined #nixos
<hodapp> which makes it a royal pain in the ass to search for anything, because I have to find a way to articulate no-error-at-all-but-nothing-working to a search engine
ertes-w has joined #nixos
pxc has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f6858e55c2 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> Is ${pkgs.foo} always the same as ${pkgs.foo.out} or only when it's a single output derivation?
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
michiel_l has quit [(Ping timeout: 246 seconds)]
reinzelmann has joined #nixos
michiel_l has joined #nixos
<copumpkin> adisbladis: the plan is to work on that at nixcon
michiel_l has quit [(Ping timeout: 240 seconds)]
bin7me has quit [(Remote host closed the connection)]
michiel_l has joined #nixos
<schoppenhauer> hi.
<schoppenhauer> has anyone packaged https://www.tweag.io/posts/2017-03-13-linear-types.html already?
<schoppenhauer> I tried to use the ghc/head.nix file and just change the git repo, but I can't get it to work currently.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vd2np
<NixOS_GitHub> nix/master 838509d Eelco Dolstra: Whitespace
<NixOS_GitHub> nix/master fda7b95 Eelco Dolstra: Fix a hang in ThreadPool...
NixOS_GitHub has left #nixos []
<hodapp> interesting...
<tilpner> schoppenhauer - That's not very specific. Any errors?
<ertes-w> if i import the <nixos/modules/profiles/all-hardware.nix> module *and* define boot.initrd.availableKernelModules, will the two get merged, or will my own definition override the one from all-hardware?
<tilpner> ertes-w - Should get merged
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vd2cg
<NixOS_GitHub> nixpkgs/master 1439972 Joerg Thalheim: wireguard: 0.0.20171001 -> 0.0.20171005
NixOS_GitHub has left #nixos []
ThatDocsLady has quit [(Ping timeout: 248 seconds)]
<tilpner> Yup, doesn't define a custom merge
<schoppenhauer> tilpner: hm. I just wanted to ask whether anyone has already done it. my current error is that it requires the argument bootPkgs.
<catern> gchristensen: ah, don't have much time to meet up I'm afraid :)
<gchristensen> catern: no worries
<schoppenhauer> but as I am not a nix expert, I don't quite get where bootPkgs coes from.
<gchristensen> new yorkers are always so busy
<catern> :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to release-17.09: https://git.io/vd2cy
<NixOS_GitHub> nixpkgs/release-17.09 1584d3d Jason A. Donenfeld: wireguard: 0.0.20170810 -> 0.0.20171001...
<NixOS_GitHub> nixpkgs/release-17.09 841414e Peter Hoeg: wireguard: wg-quick systemd unit was referencing /usr/bin...
<NixOS_GitHub> nixpkgs/release-17.09 afb83c9 Joerg Thalheim: wireguard: 0.0.20171001 -> 0.0.20171005...
NixOS_GitHub has left #nixos []
<schoppenhauer> (I should take the time to fully understand nix. but it's as always … busy with other things and half-knowledge is enough for most things…)
<catern> gchristensen: though this reminds me - you're a committer for the website, right? would you accept a pull request for a "Friends of Nix" page ala Rust as we were discussing in this channel a couple weeks ago?
<tilpner> schoppenhauer - That's the bootstrap ghc required to build the new ghc. Try passing ghc802
cmacrae has joined #nixos
<tilpner> schoppenhauer - You can find this information in pkgs/top-level/haskell-packages.nix, around +83
<gchristensen> catern: I'm not able to commit, but I'd thumb it :)
<catern> gchristensen: hmm, who can commit it?
<gchristensen> catern: eelco and domen
<cmacrae> Hey LnL o/ I've come across a bit of a weird issue with nix-darwin. It seems in the latest version, the resulting `set-environment` file for zsh isn't executable, so when `/etc/zshrc` sources it, we get a `permission denied`
<cmacrae> Happy to show you my config, and the output in the shell for the error
<gchristensen> can a few people run `ls -l $(nix-instantiate --find-file nixpkgs)` and pastebin the results?
<LnL> oh :/
<cmacrae> Yeah :p
<tilpner> gchristensen - Heh. -rw-r--r-- 1 till users 29 Sep 16 11:14 /cfg/nixos/nixpkgs/nixpkgs
<gchristensen> cmacrae, LnL: a file doesn't need to be executable to be sourced
<cmacrae> It's not being sourced using `source` though
<gchristensen> is it sourced with `. xyz` ?
<cmacrae> It's simply placed in as a direct executable
<LnL> gchristensen: yes, but it's not supposed to be sourced the contents is inlined
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hc_ is now known as hc
<cmacrae> So, the line is just the path to the file in the nix store
<gchristensen> eh?
<cmacrae> Instead of the line being:
<gchristensen> but then it is useless, as the set-environment is executed in a subshell and its changes are not propagated up
<cmacrae> source /path/to/file
<cmacrae> it's just:
<cmacrae> /path/to/file
cement has joined #nixos
<gchristensen> oh I see
<LnL> do you not have the .text in your modules?
<schoppenhauer> tilpner: ok, it wanted a few more haskellPackages, now it wants selfPkgs.
<schoppenhauer> tilpner: any idea what that is? seems like it is some namespace with a ghc package in it.
<tilpner> schoppenhauer - Yes, I know what it is, and I told you where to find it :)
<cmacrae> LnL: Oh, I didn't know it had changed! So I just need to add a `.text`
<LnL> well it should be there
<schoppenhauer> ah sorry overread it
<cmacrae> LnL: Here's my config, if you're curious: https://gist.github.com/cmacrae/1c3b834c04873a17a243c529f9549ed7
<cmacrae> It's what I've been using for quite some time, and just broke with these recent changes
<cmacrae> Also my khd shortcuts no longer work :()
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] selaux opened pull request #30251: chromedriver: 2.31 -> 2.33 (master...chromedriver-2.33) https://git.io/vd2CE
NixOS_GitHub has left #nixos []
<LnL> oh! you shouldn't need to add all that stuff again
<cmacrae> What stuff? :) The PATH stuff? 'Cause I'm appending some stuff in there (Go binaries & Hashicorp utils)
<LnL> cmacrae: check /etc/zshrc I'm pretty sure you'll see the path/environment stuff twice
<cmacrae> Hmm, looks like it's just once. However: it does look like this is my fault anyway. I could just add `source` in front of `${config.system.build.setEnvironment}` and it should work :p
<schoppenhauer> tilpner: where does the "packages" namespace in that file come from?
<cmacrae> I say "my fault", but this did in fact work before. However, easily fixable by me
<schoppenhauer> tilpner: in nixos, theres only one ghc package. there is no ghc802.
<copumpkin> huh
<LnL> cmacrae: or right, the environment stuff is in /etc/zshenv you can just remove it
<tilpner> schoppenhauer - Hold on
<gchristensen> catern: I recommend putting it together
asdasodfi has quit [(Quit: Page closed)]
<schoppenhauer> tilpner: http://lpaste.net/2964671871225692160 this is my default.nix
<gchristensen> and submit the PR
<cmacrae> LnL: Ah, okay - so I shouldn't need that source line at all? :)
<catern> gchristensen: I don't want to start emailing people to get their approval for listing their logos, without actual approval
<schoppenhauer> the ghc.nix is almost head.nix, except for the git repo changed.
<catern> actual project approval*
<schoppenhauer> (and the revision)
<LnL> cmacrae: no, that always happens for you :)
<cmacrae> Sweeet - thanks!
<cmacrae> Now I just have to work out why my khd config has stopped working :/
<cmacrae> No changes... just stopped working after a `darwin-rebuild switch`
<LnL> try launchctl kickstart -k gui/$(id -u)/org.nixos.khd
<tilpner> schoppenhauer - Can you even clone it...? :/
<tilpner> schoppenhauer - tweag did some weird things with their remotes
<cmacrae> LnL: No luck, I'm afraid
<LnL> is it running?
<tilpner> schoppenhauer - I was trying with tx0.co/yj0a.nix , but I can't even git clone it manually
<schoppenhauer> tilpner: I have no idea, but nix-instantiate doesn't come that far
<tilpner> (And I will not do their git config --global stuff)
<schoppenhauer> at least I had no error message when I cloned it yesterday
<tilpner> But this could be a challenge to just clone
<cmacrae> LnL: It is indeed
fendor has quit [(Ping timeout: 240 seconds)]
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
<schoppenhauer> hm.
<LnL> cmacrae: not sure then, no problems here
tmaekawa has joined #nixos
<cmacrae> LnL: Weird! I'll poke about. Thanks for your help :)
<tilpner> schoppenhauer - Ping me if you manage to clone it with Nix
<LnL> cmacrae: sorry for breaking your config :( changed some types to match the nixos options
<schoppenhauer> tilpner: ok, but currently, I have no idea how to get nix to even trying to clone it …
<tilpner> schoppenhauer - Did you not see my paste...?
fendor has joined #nixos
tmaekawa has quit [(Client Quit)]
<schoppenhauer> tilpner: ok sorry, I should change my irc client -.-
<tilpner> No, weechat is fine, you just need to configure it properly
<cmacrae> LnL: Eh, it's fine! Wouldn't have lovely declarative config of macOS without this awesome project - so I forgive ya ;)
<tilpner> (Although highlighting should work by default)
<tilpner> (Unless you're on some relay client...)
gandreani has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
<schoppenhauer> tilpner: I use glowing bear.
jtojnar has quit [(Remote host closed the connection)]
<schoppenhauer> tilpner: and I need to change some css data for highlighted messages
<tilpner> Hmm, never tried it, but heard lots of good about it
jtojnar has joined #nixos
eacameron has joined #nixos
csingley has quit [(Ping timeout: 240 seconds)]
<cmacrae> LnL: Weird... I've just mimicked what the launchd job for khd is doing in a shell (set the PATH, ran the same command) and it works perfectly fine...
<cmacrae> So, it seems only when it's loaded as a launchd job that it isn't behaving
jtojnar has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
<silver_hook> So, what is the programs.mosh.enable option for then?
jtojnar has joined #nixos
whald has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Remote host closed the connection)]
reinzelmann has quit [(Quit: Leaving)]
erictapen has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
mgttlinger has quit [(Quit: Connection closed for inactivity)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #30252: fwupd: 0.9.6 → 1.0.0 (master...fwupd) https://git.io/vd2R7
NixOS_GitHub has left #nixos []
michiel_l has quit [(Ping timeout: 246 seconds)]
michiel_l has joined #nixos
<viric> does anybody know of anything regarding qt5 and nix-shell, and a directory named "__nix_qt5__"?
<cmacrae> Also LnL: I really like the changelog :) It's nice to have
charlycoste has quit [(Ping timeout: 255 seconds)]
<nh2> tilpner: hmm, when I use "${pkgs.sudo}/bin/sudo ..." it complains that that sudo binary is not suid
acarrico has joined #nixos
<tilpner> nh2 - Are you root at that moment?
freusque has quit [(Quit: WeeChat 1.7.1)]
<tilpner> viric - Only that it's very annoying and a reason I don't use kde applications :/
<nh2> tilpner: no, I'm the `consul` user when I call sudo
<tilpner> nh2 - Did you read what I said about gitlab and preStart?
<tilpner> Rather, do you have to be consul for that?
<viric> tilpner: what is that thing?
<nh2> tilpner: yes, using PermissionsStartOnly= you can make the preStart be executed by root, however what I need to run is not in a systemd unit at all, it's in a consul "check" (a script it runs regularly)
<nh2> tilpner: correspondingly there's a sudoers entry that permits consul to run a specific command as root, but it seems that when I'm not actually root I can't use the sudo from the nix store directly
ixxie has joined #nixos
<ij> I get an error on nixos-install. How do I get a stack trace or the file/line number?
<clever> nh2: only /run/wrappers/bin/sudo is setuid root
michiel_l has quit [(Ping timeout: 255 seconds)]
<srhb> nh2: The real sudo has a security wrapper
<nh2> the location I posted works but I'm not sure if I should hardcode that or if there's a ${...} expression I should use instead to make its location more robust
<tilpner> viric - A qtbase development hook creates it as a temp directory
<clever> nh2: nix doesnt allow any setuid files within /nix/store/, so nixos has to create wrappers at bootup, that add the setuid in
<viric> tilpner: aah
<tilpner> ij - "--show-trace"
Sonarpulse has joined #nixos
<clever> viric: and every time you leave nix-shell, you have to remove it to let nix-shell work again
<nh2> clever: is /run/wrappers/bin/sudo a stable location I can rely on to contain sudo for the foreseeable future? Or is there some expression that would return its path?
<ij> tilpner, accepted the flag, but didn't print a trace :(
<viric> clever: right
<tilpner> nh2 - config.security.wrapperDir IIRC
<viric> clever: I guess I only experienced the annoyance; I have to find out the benefit, now
<clever> nh2: it has changed at least once since i began using nixos
michiel_l has joined #nixos
<tilpner> ij - What's the error?
<ij> tilpner, It tries to put a symlink of /nix/store/…-nixos-system-… into /boot, which is vfat.
<clever> ij: can you pastebin the full error, and several lines around it
<nh2> tilpner clever: thanks!
<ij> It's just a single line. http://sprunge.us/OMRc
<ij> clever,
charlycoste has joined #nixos
<clever> ij: dont run that in /boot
<clever> ij: run it in a different directory
<ij> how silly
<clever> it tries to throw temp symlinks into the current directory
<ij> Right. :)
<ij> Thanks.
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vd2uK
<NixOS_GitHub> nixpkgs/master d9b9e15 Peter Hoeg: calibre: 3.7.0 -> 3.9.0
NixOS_GitHub has left #nixos []
<ij> I installed nix from root, because having it installed from regular user wouldn't run
<ij> … wouldn't make nixos-install run well. Problem is, now it doesn't work from the user. Can I solve that somehow?
<clever> ij: is that of any use?
<ij> That worked, yes. :)
<ij> I've nixos-install and it's currently building things.
Itkovian has quit [(Read error: Connection reset by peer)]
<ij> error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
charlycoste has quit [(Ping timeout: 240 seconds)]
<clever> ij: which user did that error happen as?
<clever> ij: you may need to run nix-daemon as root, and then set NIX_REMOTE=daemon for the non-root user
<ij> ah
zzamboni has quit [(Quit: Leaving.)]
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
<ij> chroot failed: http://sprunge.us/QdOI
rydnr has quit [(Ping timeout: 260 seconds)]
<clever> ij: brb
<makefu> clever: according to linode, nixos is officially supported ( https://nixos.wiki/wiki/NixOS_Installation_Guide#Linode )
<ij> This is arch on a laptop, though.
<clever> makefu: yeah, things have improved with linode, but the old guide is still handy to forcibly install nixos-install on any distro
<clever> makefu: i have played with "nixos-rebuild build-vm" on gentoo before
<pop> So my current setup is I have a file in /etc/nixos/configuration.nix which installs packages system-wide. Is there any way to only install packages for a specific user (and so only install packages in /home/username/*)?
<pop> *running nixos.
<makefu> clever: maybe we should add the info to the new wiki then (instead of linking to archive.org)
<clever> makefu: that would help a lot
<tilpner> pop - nix-env installed packages are user-local by default
<pop> tilpner: Can I use a config file like configuration.nix for nix-env?
<tilpner> Sort of, it's more of a workaround
<pop> I've only seen examples of `nix-env -i <package name>`
<clever> pop: 2 options
fendor has quit [(Ping timeout: 255 seconds)]
<clever> pop: #1 https://nixos.org/nixos/options.html#users.users.%3Cname%3F%3E.packages
<tilpner> :o
<clever> pop: #2, create a set of packages in config.nix, and nix-env -iA nixos.setname
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] WilliButz opened pull request #30253: nixos/zsh-syntax-highlighting: refactor (master...zsh-syntax-highlighting) https://git.io/vd2gk
NixOS_GitHub has left #nixos []
<tilpner> I was going to suggest a variation on #2, but I didn't know about #1
<clever> { packageOverrides = pkgs: { mystuff = { inherit (pkgs) hello firefox chromium; }; }; }
<clever> nix-env -iA nixos.mystuff
<LnL> cmacrae: cool! I changed some behaviour related to NIX_PATH a while back and wanted a way to notify people
<tilpner> clever - What manpage documents config.nix?
<clever> tilpner: the nixpkgs manual sort of
<tilpner> Oh, so there's actually no manpage? I thought my system was broken somehow
<pop> clever: Where does that config.nix live? /etc/nixos/configuration.nix or does nix look locally for config files?
<clever> pop: ~/.config/nixpkgs/config.nix
<pop> clever++ thanks
bennofs has joined #nixos
Arcaelyx has joined #nixos
oida has quit [(Ping timeout: 248 seconds)]
<ij> clever, brb?
<clever> trying to brb, lol
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
<ij> Oh ok. :)
<gchristensen> I'm seeing this strange behvaior: $ ls -l $(nix-instantiate --find-file nixpkgs)
<gchristensen> lrwxrwxrwx 1 root root 1 Jan 1 1970 /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs -> .
oida has joined #nixos
<gchristensen> there seems to be a strange symlink in the channel of nixpkgs to `.`, so I can do: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixpkgs/nixpkgs/nixpkgs/nixpkgs forever. I've seen this now on two boxes. any ideas what's up?
<clever> gchristensen: legacy stuff
<gchristensen> hrm
<clever> [root@amd-nixos:~]# echo $NIX_PATH
<clever> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:.....
<gchristensen> is there a way to copy the channel version in to a drv? I can only seem to manage to copy the `.` symlink and not the actual channel data
<clever> gchristensen: <nixpkgs> returns the nixpkgs directory of the nixos channel
<clever> you want one directory up
<clever> which would be <nixos>, the channel name
<clever> x:/nix/var/nix/profiles/per-user/root/channels
<zimbatm> hoidy, anyone has a good way to find out what caused a rebuild?
charlycoste has joined #nixos
<gchristensen> oh interesting
<clever> which works via this entry in the path
<clever> gchristensen: i think its legacy stuff, back from when nixos and nixpkgs had different repos
<zimbatm> I'm trying to track down why some of the files are getting rebuilt even though they are in the company binary cache
<gchristensen> that'll break if I manually do nixpkgs=https://...
<clever> gchristensen: what about using pkgs.path after importing nixpkgs?
<clever> [root@amd-nixos:~]# nix-repl '<nixpkgs>'
<clever> nix-repl> path
<clever> /nix/store/wi7qr5ynv2d5m2ip9hkag05vf439hv8h-nixos-18.03pre114421.799435b7ca/nixos
vandenoever has quit [(Ping timeout: 255 seconds)]
<gchristensen> oh yes!
<gchristensen> :D thank you a lot!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vd22X
<NixOS_GitHub> nixpkgs/master 89c15a0 Kamil Chmielewski: ponyc: 0.19.2 -> 0.19.3...
<NixOS_GitHub> nixpkgs/master e379b5b Jörg Thalheim: Merge pull request #30250 from kamilchm/ponyc...
NixOS_GitHub has left #nixos []
<gchristensen> I'm fixing nixops, so it copies the system channel version to the target on deploy
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vd22y
<NixOS_GitHub> nixpkgs/master 2c4b6e6 Robert Schütz: ttwatch: 2017-04-20 -> 2017-09-26
<NixOS_GitHub> nixpkgs/master 6087b84 Jörg Thalheim: Merge pull request #30246 from dotlambda/ttwatch...
NixOS_GitHub has left #nixos []
<gchristensen> oohh
Tucky has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 4 new commits to master: https://git.io/vd225
<NixOS_GitHub> nixpkgs/master a02e53a Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub> nixpkgs/master d0e8806 Peter Simons: haskell-tinc: mark build as broken...
<NixOS_GitHub> nixpkgs/master d98909e Peter Simons: hackage2nix: disable broken builds on Hydra
NixOS_GitHub has left #nixos []
<clever> gchristensen: this will fetch a specific version of nixpkgs (specified in a json file), and use that for the eval, and also embed that nixpkgs into the build and use it at runtime
<gchristensen> you might want this fix too, to prevent woopsies, clever: https://github.com/NixOS/nixops/issues/737#issuecomment-335141711
<clever> heh
<clever> yikes, the nixops AMI has a configuration.nix file!
<gchristensen> yes :)
<clever> $ echo $NIX_PATH
<clever> nixpkgs=/run/current-system/nixpkgs
<clever> gchristensen: ah, but nixos-config is entirely mia in the search path
<clever> it wont find it
<gchristensen> and so does any other nixos system you've setup and then took over with nixops
<gchristensen> ah right, only because you're specifying the nixPath there
<gchristensen> if you don't set the nixPath it'll have one and it'll be set to have a nixos-config
<clever> yeah
jtojnar has quit [(Quit: jtojnar)]
<gchristensen> clever: the "actual result" is a thing I actually did last week :)
<tilpner> That's cheating! Using internal options like that... :c
<gchristensen> tilpner: what internal options?
<tilpner> extraSystemBuildsCmds
<tilpner> *extraSystemBuilderCmds
<clever> system.extraSystemBuilderCmds = ''
<clever> ln -sv ${./.} $out/nixcfg
<clever> tilpner: this puts a snapshot of all of my nixos config into every build
<gchristensen> <3
<gchristensen> goldmine right there
<boxofrox> what does ${./.} represent/evaluate to?
<clever> boxofrox: it will import the directory containing this nix file, into /nix/store/ (in my case, a snapshot of /etc/nixos/nixcfg) and then expand to that storepath
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vd2aM
<NixOS_GitHub> nixpkgs/master 2c21f3d Danylo Hlynskyi: readme.md: reincarnate wiki (#30243)...
NixOS_GitHub has left #nixos []
<tilpner> Huh, so systemBuilders runs before all activationScripts. I'm stealing that
<clever> extraSystemBuilderCmds runs at nix-build time, when creating the nixos build
pxc has quit [(Ping timeout: 264 seconds)]
<tilpner> Just before activation, in a nixos-rebuild switch
<ij> Did anyone see my whining about the docker-container profile in the mailing list?
<clever> tilpner: and unlike activation, it wont run again on boot
* tilpner puts "Look through all of clevers config" on todo
<gchristensen> ij: calling it whining is not productive, please be considerate of the people in the community, even if they're unhappy or having a bad time
<ij> I'm talking about myself.
<gchristensen> oh _MY_ whining that is a slightly different story :P
<clever> gchristensen: have you heard my idea about adding my kexec trick to nixops?
<gchristensen> I have :)
<gchristensen> I got half way to implementing it before Packet.net added proper NixOS support
<clever> heh
<clever> gchristensen: i can also see it being handy for non-standard partitioning/filesystems on existing platforms, like aws
<clever> gchristensen: for example, zfs root
<tilpner> gchristensen, clever - While I have you two here, I was wondering where I need to bring up a change proposol, and if this has already been raised. The problem is that the argument lists of many packages include configuration options that are not build inputs. callPackage will auto-fill them, even though the package author didn't intend that. This leads to nixpkgs dying with quite unhelpful error messages when
<tilpner> packages with the name of these config options are added/overlayed to nixpkgs. The examples I encountered are "unicode" and "vanilla"
<gchristensen> definitely
<gchristensen> tilpner: yikes
<tilpner> I would first try a two-stage loading of packages as a convention, first providing build inputs with callPackage, then providing config options with defaults from all-packages
schoppenhauer has quit [(Read error: Connection timed out)]
<tilpner> But this touches so many packages, and could only be implemented gradually as a "do this during package updates" convention. Or the responsible team could decide it's not worth the effort...
<tilpner> Overriding would need a little thought for that two-stage thing
<zimbatm> it might also have quite a bit of impact on performance
<zimbatm> nix is not that fast yet :)
<tilpner> Alternatively we could just gradually rename these config options. "unicode" -> "supportUnicode" (vanilla -> ?)
<tilpner> (That's not as clean, but wouldn't incur additional overhead
<tilpner> )
pxc has joined #nixos
erictapen has quit [(Ping timeout: 255 seconds)]
schoppenhauer has joined #nixos
seppellll has quit [(Quit: Leaving)]
pxc has quit [(Ping timeout: 240 seconds)]
csingley has joined #nixos
fragamus has joined #nixos
jb55 has joined #nixos
pie_ has joined #nixos
erasmas has joined #nixos
<cbarrett> trying to install nixos (under virtualbox) and it fails while “setting up /etc…”
<cbarrett> spews a whole bunch of stuff from /etc/resolvconf.conf about various commands not being found
<cbarrett> hopopt, icmp, igmp, gpg, ipv4, st, tcp, cbt, egp, there’s pages and pages of this
digitus has joined #nixos
<tilpner> cbarrett - Installing from a NixOS ISO? Please paste the used commands and errors (preferably to gist.github.com)
<cbarrett> ya
<tilpner> (And probably your /etc/nixos/configuration.nix)
Neo-- has joined #nixos
<cbarrett> i’ve just been following the instructions in the manual
<cbarrett> so nothing special there i think. no way to copy and paste configuration.nix from vbox unfortunately
whald has quit [(Ping timeout: 255 seconds)]
ertes-w has quit [(Ping timeout: 240 seconds)]
<tilpner> Try "nc termbin.com 9999 </etc/nixos/configuration.nix"
<srhb> cbarrett: Doesn't it have network access?
* tilpner hopes the ISO has netcat
<mguex> it has iirc
<cbarrett> will try when I get back to my desk
deltasquared has joined #nixos
<cbarrett> srhb: the ISO does yeah
<cbarrett> dunno about the booted system
deltasquared has left #nixos []
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<tilpner> You installed a default config and it complains about gpg and st on startup? O.o
<srhb> What booted system? I'm confused
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 4 new commits to master: https://git.io/vd2KE
<NixOS_GitHub> nixpkgs/master 8a928f3 Michael Raskin: qt59.qtwebengine: fix build (re: nss update)
<NixOS_GitHub> nixpkgs/master 75ecaa1 Michael Raskin: libreoffice-still: fix build (re: nss update)
<NixOS_GitHub> nixpkgs/master f3c798d Michael Raskin: libreoffice-fresh: take into account new nss header layout
NixOS_GitHub has left #nixos []
<cbarrett> srhb: the system that nixos-install is creating. sorry dunno the right term
<srhb> So nixos-installed and you've booted it?
<srhb> I thought you didn't get past the installer, hence the request for clarification :)
<cbarrett> nixos-install doesn't finish
<cbarrett> but idk if the half installed system has network if that's what you meant
<srhb> Ah, good, OK, so you're still in the installer. Just making sure.
<cbarrett> ya
<srhb> We could use a paste of the nixos-install output too.
<cbarrett> will grab that once I get back to my desk, I'm getting lunch atm
<srhb> Cool.
<cbarrett> brb in 15m or so
leat has quit [(Quit: WeeChat 1.9)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vd26g
<NixOS_GitHub> nixpkgs/master 549188c Frederik Rietdijk: python.pkgs.django: fix gdal support on darwin
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/afb83c92cf (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
ebzzry has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vd26w
<NixOS_GitHub> nixpkgs/release-17.09 8c00f93 Frederik Rietdijk: python.pkgs.django: fix gdal support on darwin...
NixOS_GitHub has left #nixos []
julm has joined #nixos
charlycoste has quit [(Quit: Leaving.)]
erictapen has quit [(Ping timeout: 248 seconds)]
civodul has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
<paraseba> what is the easiest way to share a network-local binary cache across a few home machines?
<hodapp> I'm interested in the same...
<catern> nix-serve??
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #30254: python.pkgs.django: make gdal support optional (master...django-gdal) https://git.io/vd2iA
NixOS_GitHub has left #nixos []
<paraseba> oh I somehow missed that, thanks catern, I'll take a look
pxc has joined #nixos
<cbarrett> http://termbin.com/ghco here’s the contents of /mnt/etc/nixos/configuration.nix srhb tilpner
lsix has quit [(Quit: Konversation terminated!)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tilpner> And the errors?
<catern> no problem
<cbarrett> I’ll do another run of nixos-install and pipe it all to a file then upload that, hows that sound tilpner
<tilpner> Should work, make sure to pipe stderr too
<cbarrett> yup yup
fragamus has joined #nixos
<cbarrett> hm, it’s still printing stuff to stdout even with 2>&1
fragamus has quit [(Client Quit)]
<cbarrett> ran nixos-install 2>&1 >/tmp/install-log
<cbarrett> still prints a bunch of stuff on the consol
<cbarrett> still prints a bunch of stuff on the console
<cbarrett> seems wrong?
<ij> Where can I find the store path of the nixos-system-hostname(systemConfig, that is) derivation?
ison111 has joined #nixos
<sphalerite> cbarrett: put the 2>&1 after the /tmp/install-log
<cbarrett> ah
<sphalerite> or use &>/tmp/install-log
cmacrae has quit [(Ping timeout: 255 seconds)]
<cbarrett> not normally a bash user, thx
<cbarrett> whats the 2nd one mean
<sphalerite> redirect stdout and stderr at once
<cbarrett> ah
<tilpner> ij - Not sure what you mean
<tilpner> s/Not sure/No idea/
<sphalerite> ij: nix-instantiate '<nixpkgs/nixos>' -I nixos-config=/etc/nixos/configuration.nix
<sphalerite> err, with -A config.system.build.top-level
pxc has quit [(Ping timeout: 258 seconds)]
<cbarrett> http://termbin.com/ghco /mnt/etc/nixos/configuration.nix
MichaelRaskin has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<tilpner> Huh. Why would it install libXrender and pcap for that config...
<cbarrett> i’m supposed to be editing the configuration.nix on the mounted system right, not the one at /etc?
<sphalerite> on one particular wifi network, I seem to lose my connection every time there's a "group rekeying". Any idea what might cause this?
<tilpner> cbarrett - Yes. Any chance to look at the generated /etc/resolv.conf?
<cbarrett> sure let’s look
<cbarrett> it’s empty
<tilpner> And /etc/resolvconf.conf?
sary has quit [(Ping timeout: 248 seconds)]
goibhniu has quit [(Ping timeout: 260 seconds)]
<Isorkin> Hi. How to change services.fail2ban.jails defaul ignoreip. Need add custom ip.
<pop> Does removing a package from my system packages list actually uninstall it?
<pop> (delete the files, etc)
<copumpkin> it won't delete the files automatically, but it won't be available
<MichaelRaskin> Not immediately.
<tilpner> pop - It will be reomved from the system profile. The next garbage collection can delete it
<sphalerite> pop: no. It won't be included in your system packages once you've run nixos-rebuild switch, but it'll still be there on disk
<copumpkin> a GC will later be able to get rid of the files if you care
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vd21B
<NixOS_GitHub> nixpkgs/master 9304ae0 Frederik Rietdijk: python.pkgs.pelican: only patch shebangs in /bin, fixes #30116
NixOS_GitHub has left #nixos []
<cbarrett> http://termbin/sz1n /etc/resolv.conf
<pop> tilpner sphalerite thanks
<sphalerite> pop: it will still be accessible via the store path, or if you boot into an older generation of your system or rollback to it
Arcaelyx has quit [(Read error: Connection reset by peer)]
FRidh has joined #nixos
Arcaelyx has joined #nixos
<pop> sphalerite: Cool. I'm just running low on disk space and want to get rid of some packages / generations
Itkovian has joined #nixos
<sphalerite> pop: you can delete old generations of all profiles using nix-collect-garbage as root, with the -d option
<cbarrett> tilpner: not sure what that file is but it seems harmless?
<sphalerite> if you just put -d it will delete all old generations, removing the ability to roll back
<sphalerite> you can also put --delete-older-than 7d for instance to delete any generations built more than a week ago
<sphalerite> you'll usually also want to rebuild afterwards to ensure that your boot menu doesn't contain any old entries that won't work anymor
<tilpner> cbarrett - I was still waiting for the next paste, but yes. This one looks fine
<cbarrett> which next paste
<tilpner> "And /etc/resolvconf.conf?"
<cbarrett> oh, i misread
<cbarrett> you want /etc or /mnt/etc
<tilpner> Uhm, /mnt/etc, probably?
<tilpner> /etc shouldn't be touched
Itkovian has quit [(Client Quit)]
<cbarrett> http://termbin.com/150p - /mnt/etc/resolvconf.conf
<cbarrett> http://termbin.com/kzwhr - /mnt/etc/resolv.conf
keta_suki has quit [(Quit: WeeChat 1.9)]
jensens has quit [(Ping timeout: 248 seconds)]
thblt has joined #nixos
<tilpner> Shouldn't cause this, but should your timezone be America/New_York?
<wilornel> wow, that `home-manager switch` setting my packages and fixing my issue I had with a tools.jar dependency so easily was so dang cool
<cbarrett> Probably
bennofs has quit [(Quit: WeeChat 1.9.1)]
<cbarrett> tilpner: changed it, ran nixos-install again, no change
<tilpner> This is really odd, and without being able to poke it... debugging isn't going to be fun :/
<tilpner> I'm having a hard time believing following the manual would fail so hard in a VM, but the mistake isn't obvious to me, at least
<cbarrett> ok i can start over
<tilpner> Maybe you can load the VirtualBox appliance and change the config to make it yours?
* tilpner hasn't used it
<srhb> Hang on
erictapen has joined #nixos
<srhb> Did you remove that space in the timezone?
<cbarrett> k
<cbarrett> no, why should I
<srhb> Because it's New_York
<cbarrett> bleh really
<tilpner> I said that above! :c
sigmundv has quit [(Ping timeout: 248 seconds)]
<srhb> Yeah but there were two errors
<srhb> America*s*/New York
<srhb> Once error was probably fixed :-P
<srhb> One*
<srhb> We should validate that string, the error is so bizarre.
<tilpner> Why would a wrong timezone cause *this*?
<cbarrett> SSL failing maybe?
<srhb> Because the emperor deems it so.
<srhb> >>
<tilpner> That's horrible
<srhb> cbarrett: Did it help?
<cbarrett> think so, it asks me for a new root password now
<srhb> Yeah...
<srhb> Hnnngh
<cbarrett> installation finished it claims
<cbarrett> let’s see what happens when we reboot
<tilpner> :/
<srhb> Should be fine. Ugh, that's annoying.
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<srhb> Let me see if I can figure out something to do about this..
<cbarrett> happy to help write a patch myself later tonight
<srhb> cbarrett: Cool :)
pxc has joined #nixos
<cbarrett> subscribed to that issue
<sphalerite> Is there a place that describes the historical context behind all modules in nixpkgs/nixos being evaluated when building a system config and usually being gated on an enable option, rather than having the user enable them by adding them to the imports, making evaluation a lot speedier?
<sphalerite> Well, not necessarily just historical context but actual reasons for it
<sphalerite> seems to me like it makes system evaluation slower while also making it harder to disable some default behaviours
<cbarrett> srhb: it fails mounting my /vbox system and then goes into emergency mode and I can’t type at the prompt at all
<srhb> cbarrett: I was wondering about the device, but since I don't know much about vbox I didn't say anything. Should have probably spoken up.
<srhb> cbarrett: Might want to just disable it in the installer.
<cbarrett> k
<srhb> You can always add it from a functioning system
<cbarrett> makes sense
<tilpner> cbarrett - Can you use the grub line editor?
<tilpner> (Or does that not show in VB?)
<srhb> (Having booted once you get one system you can always get back to)
<cbarrett> yeah grub shows up but i’ll just boot back into the CD
<srhb> Well, barring Bad Things. O:-)
<cbarrett> actually I think i fixed it, I didn’t have vbox set up right to mount that folder
<srhb> Oh ok :)
<cbarrett> hurrah I can run uname -a
<cbarrett> I can ping google
<cbarrett> jawesome
<cbarrett> thx tilpner & srhb
b has quit [(Remote host closed the connection)]
<cbarrett> I’ll look into that ticket in the next few days, hopefully tonight
<srhb> Woo :)
ertes has joined #nixos
<srhb> I think I might take a stab too, seeing as I've never managed a NixOS contribution yet.
<tilpner> (my router died, or something like that)
<srhb> Looks like find * from ${pkgs.tzdata}/share/zoneinfo/right might provide all the valid options
<srhb> So I guess I just need to build an enum from that.
b has joined #nixos
<cbarrett> srhb: sweet!
endformationage has joined #nixos
<cbarrett> srhb: happy to pair with you on it as well, you should go for it!
<srhb> Of course, this is one of those things that will break in really hairy and obscure ways if I get it wrong. :-P
<srhb> Cool, thanks cbarrett :)
<cbarrett> i definitely think that it should just fail if the tz doesnt exist. something like cat /share/timezones | grep “${sys.timeZone}”
<cbarrett> or whatever
<srhb> Yeah.
<tilpner> Maybe you can somehow use "${systemd}/bin/timedatectl list-timezones" instead
<cbarrett> yeah totally. was just pseudo code
<srhb> No, that's insufficient
Judson1 has joined #nixos
Judson1 is now known as Guest24636
<srhb> It's lacking things like GMT-0, Universal, Zulu, ...
<Isorkin> How to change services.fail2ban.jails defaul ignoreip. Need add custom ip ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vd2Ha
<NixOS_GitHub> nixpkgs/master 4bba665 Robin Gloster: liboauth: fix for new nss header layout
NixOS_GitHub has left #nixos []
leat has joined #nixos
<tilpner> What happens when setting services.fail2ban.jails.DEFAULT?
phreedom has quit [(Ping timeout: 255 seconds)]
<tilpner> Isorkin - ?
<Isorkin> tilpner: generated jail.conf - [DEFAULT] ignoreip = 192.168.2.0/24 ignoreip = 127.0.0.1/8 - the last value is used
sary has joined #nixos
<tilpner> Seems like there is no mechanism for that then. Maybe manually copy and import an altered version of security/fail2ban.nix
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bkchr opened pull request #30255: qt5: 5.9.1 -> 5.9.2 (master...qt_5_9_2) https://git.io/vd27k
NixOS_GitHub has left #nixos []
fresheye1 has joined #nixos
<sphalerite> Isorkin: aren't you one of the openclonk folks?
mkoenig has quit [(Remote host closed the connection)]
<Isorkin> spacefrogg: no
<sphalerite> Sorry
<sphalerite> Oh, must have confused you with someone else then
jsgrant_ has joined #nixos
<csingley> Can I specify a custom system service straight from configuration.nix rather than a modified nixpkgs?
<csingley> If so what's the syntax like?
<MichaelRaskin> Write a module as if it were for inclusion in Nixpkgs, put «require = [ /path/to/module.nix ];» into configuration.
mkoenig has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/8c00f938d9 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
Itkovian has joined #nixos
<infinisil> or just write a systemd.service directly
<makefu> ^ this is what i would recommend
<csingley> Yes that sounds wise.
<tilpner> MichaelRaskin - Did you mean imports, or is require a thing?
<csingley> However, the custom service requires custom pkgs outside the tree, which I'd like to also handle in configuration.nix
<csingley> How to handle that reference?
cmacrae has joined #nixos
<MichaelRaskin> require attribute is a thing.
<srhb> Bugger, the is, like, a perfect use of lib.pathExists, but it;s impure :-P
endformationage has quit [(Quit: WeeChat 1.9)]
<srhb> type = types.nullOr (types.addCheck types.str (tz: lib.pathExists "${pkgs.tzdata}/share/zoneinfo/right/${tz}")
<srhb> Q_Q
endformationage has joined #nixos
cmacrae has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
sigmundv has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<hyper_ch> I suspect my zfs issues are due to ram... will be interesting to see what memtest will say
adisbladis has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<gchristensen> <3 sounds good, hyper_ch
jb55 has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] acowley opened pull request #30256: easyloggingpp: init at 9.95.0 (master...easyloggingpp-init) https://git.io/vd2b8
NixOS_GitHub has left #nixos []
<srhb> Hmm.
[0x4A6F] has joined #nixos
<srhb> Are there any examples of nixos services conceptually doing something like checking that an option matches a filename in some (other) store path?
<srhb> I mean, as long as it's a dependency, is that really impure?
<srhb> I feel like it's morally pure. :-P
fragamus has joined #nixos
griff_ has joined #nixos
<MichaelRaskin> It's more like incompatible with dry run
<srhb> This is true.
fragamus has quit [(Client Quit)]
adisbladis has joined #nixos
<pxc> I've noticed that NixOS has hard-coded references to complete store paths in several places, including this one: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/environment.nix#L28
<gchristensen> those aren't store paths, but do go on :)
<MichaelRaskin> 5D
<pxc> you're right. What should we call the base path for the store?
<pxc> the Nix prefix
<pxc> ?
* gchristensen checks the glossary
<MichaelRaskin> Well, NixOS definitely assumes that Nix prefix is /nix/
<pxc> yes, and that is fine
<pxc> I would like to make it possible for the Fish package (whether this should be enabled by default can be decided later) to automatically set up the Nix environment for users, as early in init as possible
<gchristensen> I think the nix build just calls it the prefix
<pxc> in NixOS we do this by having it hook in to a file that NixOS puts in a certain place on the filesystem
<pxc> for non-NixOS, we could just as easily have it source /nix/var/nix/profiles/default/etc/profile.d/nix.sh (through fenv) or nix-daemon.sh
<pxc> so that whenever you install Fish _through Nix_, no configuration is required to make it pick up your NIX_* environment variables
MP2E has joined #nixos
<pxc> this could be done easily, but Nix can be built to use different prefixes
<pxc> NixOS doesn't seem to do it, but is there any way to look up the Nix prefix inside a package build?
<pxc> that way I can add this in a generic way
ShalokShalom has joined #nixos
<pxc> so that you don't have to run NixOS or set up nix-darwin or nix-home or some kind of module system to get your shell to initialize properly
<LnL> pxc: $NIX_STORE should be set inside the build environment
<pxc> LnL: so I can get the first component of that and use it?
<pxc> awesome
[0x4A6F]1 has joined #nixos
tmaekawa has joined #nixos
fragamus has joined #nixos
<MichaelRaskin> Well, there can be more than one component
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
betaboon has joined #nixos
fendor has joined #nixos
ixxie has joined #nixos
<pxc> MichaelRaskin: what do you mean?
<pxc> all I need to know is <where>/var/nix/profiles lives
<MichaelRaskin> <where> can be /home/user/nix
<betaboon> hello #nixos. I have a question about the autoUpgrade module: i would have expected it to set nixpkgs in nixpath, but it doesnt. is that somewhat counterintuitive or do i have a weird way of thinking?
taktoa has quit [(Remote host closed the connection)]
fendor has quit [(Ping timeout: 258 seconds)]
<pxc> MichaelRaskin: I guess I'll just grab everything prior to the `/store` component. Should I care if what I want to do would break if someone's NIX_STORE is set to /nix/store/nix/store/nix/store/hahaha/nix/store?
<pxc> but that's a good point, thanks
<pxc> what I just said is dumb but I figured out how to actually do what I want, sorry for thinking out loud here. I'll try to tone it down lol
<MichaelRaskin> Why not $NIX_STORE/.. ?
<pxc> lol that'll do
metaphysician has quit [(Ping timeout: 240 seconds)]
metaphysician has joined #nixos
* ij found the derivation nixos-system-…-… derivation that he was asking about earlier
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30257: enlightenment: 0.21.9 -> 0.21.10 (master...upd.enlightenment) https://git.io/vd2ha
NixOS_GitHub has left #nixos []
<betaboon> is there an elegant way of getting the dependency-graph for a given expression ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 7 new commits to master: https://git.io/vd2hP
<NixOS_GitHub> nixpkgs/master 034c168 Robin Gloster: nss: fix includedir for pkgconfig
<NixOS_GitHub> nixpkgs/master 6dc6cb1 Robin Gloster: Revert "liboauth: fix for new nss header layout"...
<NixOS_GitHub> nixpkgs/master c8a2265 Robin Gloster: Revert "chromium: take into account new nss header layout"...
NixOS_GitHub has left #nixos []
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb opened pull request #30258: nixos/config/timezone: Disallow spaces (master...tz-nospace) https://git.io/vd2j3
NixOS_GitHub has left #nixos []
<srhb> In the spirit of "better than nothing..."
thblt has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> betaboon: I think nix-store has --graph option
zzamboni has joined #nixos
<globin> betaboon: nix-store --query --graph /nix/store/i3vxa3hcxayzkr6w8x3z37rmxa95fdk2-openssh-7.5p1 | sed -e s/ff0000/ffffff/ -e '1agraph [bgcolor=transparent]' | dot -Tpng -o img/openssh-closure.png
<globin> betaboon: had that in my history for a nice openssh closure graph image
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30259: cbatticon: 1.6.6 -> 1.6.7 (master...upd.cbatticon) https://git.io/vdaeS
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] benley closed pull request #30035: nixos: minor X11 option description improvements (master...x11-options) https://git.io/vdCmF
NixOS_GitHub has left #nixos []
fresheye1 has quit [(Quit: WeeChat 1.9.1)]
mithsv has joined #nixos
fragamus has joined #nixos
mithsv has quit [(Read error: Connection reset by peer)]
mithsv has joined #nixos
<gleber_> Have anyone ever seen both / and /nix/store be mounted with the same device? And yet these two directories have different content... O_O
<pxc> yeah, I forget why it looks like that
<srhb> Probably because /nix/store wants to be ro
<srhb> Despite being on the same partition
<gleber_> oh, so this is normal in NixOS?..
<pxc> yes
<srhb> Sounds normal to me.
<gleber_> I almost got a heart attack :D
<srhb> try to avoid that! :)
<LnL> lol
<pxc> for no real reason, I love the strangeness of NixOS sometimes
<pxc> even the strangeness of seeing those crazy store paths for the first time, or discovering there's hardly a /usr/bin
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pxc> there's a feeling of adventure in it :-D
griff_ has quit [(Quit: griff_)]
<srhb> I think libc missing was mine.
dywedir has joined #nixos
zarel has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 258 seconds)]
fendor has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<cement> or having a friend suggest nixos even though I hadn't run a POSIX *nix for long enough to know why nixos was better
<srhb> That sounds depressingly underwhelming. Should not be attempted. :-P
<srhb> On the other hand, switching to Ubuntu afterwards will be really... !!FUN!!
erictapen has joined #nixos
hyper_webirc has joined #nixos
<hyper_webirc> so, running memtest86+ now... but it seems so slow :)
<gchristensen> hyper_webirc: it is slow, it is a very extensive test :)
fendor has quit [(Ping timeout: 248 seconds)]
Arcaelyx has joined #nixos
<hyper_webirc> will be interesting to see the results
griff_ has joined #nixos
<hyper_webirc> how many passes should I do?
zzamboni has joined #nixos
Unode has quit [(Read error: Connection reset by peer)]
Unode_ has joined #nixos
<wilornel> Hey #nixos! I need ot install eclipse platform 4.7. https://nixos.org/nixos/packages.html shows that ` eclipses.eclipse-platform` is the attribute I should use. However, when I do that, it installs eclipse-platform-4.6
Unode_ is now known as Unode
<hyper_webirc> ok, memtest has become unresponsive...
<wilornel> what was the command I had used last time to see the mapping between package name and attribute?
<hyper_webirc> doing now failsafe mode
civodul has joined #nixos
<srhb> wilornel: nix-env -qaP ?
<hyper_webirc> memtest becoming unresponsive seems bad :(
<wilornel> ah! Do I have to update nixos or nix?
<wilornel> to have my list match the packages in https://nixos.org/nixos/packages.html
<srhb> wilornel: Well, you can get eclipse by doing either
JosW has joined #nixos
<srhb> But if you're on NixOS, I suggest updating NixOS
<wilornel> nix-channel --update nixpkgs
<wilornel> how do I update nixos?
<srhb> you're probably using channels, so what I mean by "updating Nix" is having a separate nixpkgs.
<srhb> nix-channel --update nixos; sudo nixos-rebuild switch
<srhb> Wait, what version of NixOS are you on?
jb55 has quit [(Ping timeout: 240 seconds)]
<srhb> If you're on an older channel, you'll need to manually alter the nixos channel.
<srhb> (There's also a shorthand for updating the nixos channel, nixos-rebuild switch --upgrade)
<wilornel> hmm I'm confused. uname -a gives: "Linux nixos 4.9.46 #1-NixOS SMP Wed Aug 30 08:24:43 UTC 2017 x86_64 GNU/Linux"
<srhb> nixos-version
<wilornel> 17.03.1862.ea06690f1f (Gorilla)
<srhb> Right, you'll need to manually switch to 17.09
<wilornel> How do I do that? reinstall?
zzamboni has quit [(Remote host closed the connection)]
<srhb> Nah
<srhb> nix-channel --remove nixos
<srhb> nix-channel --add https://nixos.org/channels/nixos-17.09 nixos
<srhb> nix-channel --update
mudri has joined #nixos
<srhb> sudo nixos-rebuild switch
<wilornel> huh, interesting
<srhb> You should ensure that system.stateVersion is set to "17.03" before doing this
goibhniu has joined #nixos
<pxc> srhb: what actually relies on system.stateVersion? Sometimes I forget to change it for a while and nothing seems to break
<srhb> The only thing I have depending on it, I think, is postgresql.
<pxc> how does postgres use it?
<srhb> Setting it to 17.09 will allow a newer postgresql and will use /var/lib/postgresql instead of /var/db/postgresql afair
<srhb> Perhaps some other things
<wilornel> how do I set that? in /etc/nixos/configuration.nix ?
<gchristensen> pxc: search.nix.gsc.io + stateVersion :)
<srhb> wilornel: Yep!
Itkovian has joined #nixos
<gchristensen> wait what
<gchristensen> wilornel: what do you think you're setting?
cmacrae has joined #nixos
<wilornel> Interesting. why would I have to set it before upgrading? Will I have to do that every time?
<wilornel> gchristensen: system.stateVersion
<gchristensen> don't change it!
<wilornel> It's not set!
<gchristensen> :wat:
<srhb> gchristensen: I adviced them to set stateVersion to "17.03" before upgrading to 17.09
<gchristensen> why isn't it set?
<srhb> Is this wrong?
<wilornel> { config, pkgs, ... }:
<wilornel> { imports = [ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> ]; services.openssh.enable = true; nixpkgs.config.allowUnfree = true;
<srhb> It wasn't included in the default configuration.nix back then.
<wilornel> }{ config, pkgs, ... }:
<wilornel> { imports = [ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> ]; services.openssh.enable = true; nixpkgs.config.allowUnfree = true;
<gchristensen> oh dang
<gchristensen> ok yeah good thinking srhb, sorry for butting in :)
<srhb> No worries! I appreciate the double check anyway :-)
<wilornel> it's supposed to be set?
<srhb> Yes.
<gchristensen> yeah, not sure how yours didn't get it
<srhb> It prevents the upgrade from making some breaking changes.
<gchristensen> how did you get nixos and when did you get it?
<wilornel> I don't remember how I got it. It was Aug 30th as per `uname -a` I think and it was "VirtualBox appliances
<wilornel> yes, that's right, because my user and password are "demo"
<gchristensen> hmm something for me to look at :)
<srhb> wilornel: Don't tell us that -- and change it! :-P
<wilornel> gchristensen: you're working on nixos? what about you srhb ? thanks tons for your support gchristensen and srhb by the way!
<gchristensen> srhb is MVP here for sure
<wilornel> alright, let me check how I could do this. I'm not very used to contributing to open source
<srhb> wilornel: I've made some smaller contributions but I want to get involved more :)
<wilornel> ah you meant changing it on my own configure.nix? doing it now!
<srhb> gchristensen is the real hero ;-)
<infinisil> The Librem 5 is funded \o/ https://puri.sm/shop/librem-5/
<gchristensen> rvedraw
<gchristensen> cool, infinisil !
<wilornel> alright, and I did `nix-env -u home-manager` and then I tried `home-manager switch` but that did not update eclipse. Seems like home-manager is getting the old nixpkgs
<srhb> wilornel: nix-channel --list ?
<srhb> I'm assuming home-manager just imports nixpkgs, so if you have multiple channels I'm not sure exactly how it chooses.
<srhb> In case that's too confusing, perhaps having just one channel will be easier :)
jb55 has joined #nixos
<wilornel> only one channel : "nixos https://nixos.org/channels/nixos-17.09"
Arcaelyx has quit [(Read error: Connection reset by peer)]
<srhb> Uh.. what does nix-env -qaP | grep eclipse-platform say?
Arcaelyx has joined #nixos
<wilornel> "[demo@nixos:~/odev/eclim]$ nix-env -qaP | grep eclipse-platform
<wilornel> warning: name collision in input Nix expressions, skipping ‘/home/demo/.nix-defexpr/channels_root/nixos’
<wilornel> nixos.eclipses.eclipse-platform-46 eclipse-platform-4.6.2
<wilornel> nixos.eclipses.eclipse-platform eclipse-platform-4.7
<wilornel> "
<obadz> gchristensen: hey do you know much about keyctl?
<gchristensen> hmm no, I've actually never heard of it
<wilornel> it didn't have this warning before
<srhb> wilornel: Oh, hang on, you probably created the channel for your user ?
<srhb> wilornel: I would suggest the following
<obadz> ah
<wilornel> hmmm
<wilornel> su -u nixos?
<wilornel> su -u root?
<wilornel> su - nixos*
<srhb> wilornel: Delete all your user channels (ie using nix-channel without sudo)
<obadz> anyone else knows much about kernel keyrings?
Alling has joined #nixos
<srhb> wilornel: Then create just the one nixos-17.09 channel for root (using sudo nix-channel)
<srhb> wilornel: Ensuring you end up with only the one channel.
<Alling> What would be the preferred way of adding an SSH config (i.e. .ssh/config) to NixOS?
<srhb> wilornel: That is, one named nixos, as root, pointing at the 17.09 channel
<srhb> Alling: Secrets by hand, you can try home-manager for the rest (which is pretty cool)
<wilornel> and then nix-channel --update as non-root?
<srhb> wilornel: As root :)
<srhb> I'm not sure what it does as non-root
<obadz> keyctl issue: https://github.com/dustinkirkland/ecryptfs-utils/blob/5e877f3747303096f7861863bac937be4328fa72/src/libecryptfs/key_management.c#L165 seems to insert keys in the user-keyring when invoking ecryptfs-add-passphrase but on Ubuntu you can see the key with keyctl list @us (user-session key ring). On NixOS, can only see it with keyctl list @u (user key ring). I think that's causing an issue for me.
<obadz> Almost surely related to https://github.com/NixOS/nixpkgs/issues/27574
<Alling> srhb: It seems a bit ... experimental. No way to do it in configuration.nix? I understand that private keys should be added manually, but it would be nice to have the rest of .ssh/config in my system configuration.
<Alling> srhb: And I guess I want everything in ~/.ssh, not /etc/ssh
jacob__ has quit [(Quit: Lost terminal)]
<srhb> Alling: Not really, no.
<srhb> Alling: From the NixOS perspective, yo home yo troubles.
<srhb> (At least for now)
<Alling> srhb: Oh. Not even possible to have NixOS create a file with some specified content from configuration.nix?
<srhb> Alling: Absolutely, writeFile will do that for you.
<srhb> Alling: It will write it to the store of course, world readable, and you'll have to link it on your own.
<srhb> Alling: There might even be helpers that can approximate the ssh config format for you, converting attribute sets.
<Alling> srhb: Oh. Possible to make NixOS run some specified bash script on each build, doing the linking? :P
<srhb> Alling: You could prooobably set up a systemd oneshot thing doing that.
<srhb> I'm not sure if there's an easier way.
<srhb> Alling: (By the way, you're not reimplementing home-manager) :-)
<srhb> now*
<Alling> I'm not too familiar with this tbh. Trying to configure my server for automated backups to an SSHFS and absolutely love NixOS' declarativeness.
<srhb> Yeah :)
<Alling> Been looking for a way to run a script on each build. system.activationScripts seemed relevant, but I was not allowed to use it since it already existed. :s
<srhb> There's a way around that, I'm sure.
<srhb> But it probably involved something scary like mkForce or whatnot. I don't know I'm afraid :)
[0x4A6F]1 has joined #nixos
[0x4A6F] has quit [(Ping timeout: 248 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
cmacrae has quit [(Ping timeout: 264 seconds)]
<pxc> x
Ivanych has quit [(Ping timeout: 260 seconds)]
<sphalerite> Alling: you can just add to system.activationScripts. However, it's probably not what you want since they get called fairly early on at boot time, and as such may break your system
<Alling> srhb: OK, hm ... is it possible to declare directories that should exist in Nix? Like /mnt/backup
<sphalerite> Alling: typically you'll want a one-shot systemd service instead. Something like systemd.services.ensure-mnt-backup = {script = "mkdir -p /mnt/backup"; serviceConfig.Type = "oneshot";};
<Alling> sphalerite: Ooh!
<sphalerite> also, using mkForce for activationScripts is definitely a bad idea and very very likely to break your boot!
<srhb> sphalerite: Thanks for clarifying :P
<sphalerite> there are some cases where activationScripts are the right thing, but they're usually not
ebzzry has joined #nixos
<Alling> sphalerite: Not gonna use activationScripts then, thanks!
<Alling> Will a oneshot be executed every boot?
<sphalerite> yes
<sphalerite> well, if it's wanted by the target that you're booting to
<sphalerite> so actually I think you need to add wantedBy = ["multi-user.target"]; to the definition
<Alling> sphalerite: Hm, is it enough to put that nix expression in my config?
<sphalerite> yes, should be
<sphalerite> it'll also get run when you switch configurations from A to B if A has a different version of the unit than B
<Alling> Sounds reasonable.
<sphalerite> There's a bunch of options. See man systemd.{unit,service,exec} for the detials of what does what and https://nixos.org/nixos/options.html#systemd.services for nixos-specifics
<sphalerite> you can also e.g. set a unit to not get restarted when switching configurations. This is used for the display manager to prevent user sessions from being killed on a configuration switch
taktoa has joined #nixos
<Alling> sphalerite: It should be OK to just have a stupid "mkdir", right? Would anything bad happen if /mnt/backup is being used as an SSHFS mountpoint and I do mkdir /mnt/backup?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite> if you use mkdir without -p it will fail because the directory already exists. -p gets it to ignore if it already exists
<sphalerite> in addition to having it create any necessary parent directories
<sphalerite> e.g. if /mnt doesn't exist it'll create that too
<sphalerite> see man mkdir :)
<Alling> Ye, did. :)
<sphalerite> but yeah it shouldn't have any strange interaction with mount
<Alling> Auto parent dirs is desired, but of course I don't want my backup to be overwritten or anything should it happen to be mounted there.
<Alling> Seems that it doesn't overwrite anything so should be fine.
[0x4A6F]1 has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
Sonarpulse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #30260: pythonPackages.shapely: 1.5.15 -> 1.6.1 (master...fix_shapely) https://git.io/vdaYZ
NixOS_GitHub has left #nixos []
Arcaelyx has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
<Alling> srhb: sphalerite Thank you guys! I will surely be back with more noob questions. So glad this channel exists!
Arcaelyx has joined #nixos
[0x4A6F]1 has joined #nixos
[0x4A6F] has quit [(Ping timeout: 258 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
FRidh has quit [(Quit: Konversation terminated!)]
Neo-- has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 2 new commits to master: https://git.io/vda3e
<NixOS_GitHub> nixpkgs/master ea78759 José Romildo Malaquias: cbatticon: 1.6.6 -> 1.6.7
<NixOS_GitHub> nixpkgs/master 423d96e Lancelot SIX: Merge pull request #30259 from romildo/upd.cbatticon...
NixOS_GitHub has left #nixos []
tmaekawa has quit [(Quit: tmaekawa)]
kuznero has joined #nixos
<kuznero> Hi All! Should I defined `nix.useSandbox = true;` in my configuration.nix file or I can do it somehow for a specific `nix-env -f . -i ...`?
<sphalerite> kuznero: iirc it doesn't work specified on the command line
<sphalerite> So yes, setting the option makes sense
<kuznero> sphalerite: so, I should just modify my configuration.nix file and rebuild and after that `nix-env -i` will be sandboxed?
oida has quit [(Ping timeout: 255 seconds)]
<sphalerite> Providing you rebuild and activate the new config, yes
<sphalerite> well, more specifically any builds caused by nix-env -i will be sandboxed
<kuznero> ok, thanks! I am trying to repro problem that shows up on travis ci for coreclr now... hope it will help
<wilornel> how to get nix-env to show the location of a package?
<sphalerite> Yeah, you'd almost always want the sandbox on really. I don't know why it's still not default, since the performance of the relevant kernel features has increased significantly
m0rphism has joined #nixos
<sphalerite> wilornel: What do you mean? The location of the expression, the derivation, or the output path?
<wilornel> the output path
zarel has quit [(Quit: Leaving)]
<kuznero> sphalerite: thanks for the tip - will turn it on by default for me then.
simukis has quit [(Ping timeout: 258 seconds)]
oida has joined #nixos
<sphalerite> wilornel: nix-build '<nixpkgs>' -A tmux --no-out-link
<sphalerite> if you don't specify --no-out-link it will create a result symlink in the cwd and add it as a gc root, which is useful if you need to keep the path around
<sphalerite> replace tmux with whatever package you're looking for of course
civodul has quit [(Remote host closed the connection)]
civodul has joined #nixos
<wilornel> thanks sphalerite
ixxie has quit [(Quit: Lost terminal)]
<wilornel> lol, how to deal with scripts doing #!/bin/bash ?
<kuznero> patchShebang
griff_ has quit [(Quit: griff_)]
<wilornel> hmmm but that would be in the expressions/derivations, right?
JosW has quit [(Quit: Konversation terminated!)]
<wilornel> alright, I fixed it manually for that one script
<kuznero> wilornel: yep, that should be part of configure step or preBuild where you call to `patchShebang .` or on a specific script. How to call it as an expression with nix-env or nix-shell - have no idea. sphalerite can you help here?
[0x4A6F] has quit [(Ping timeout: 258 seconds)]
<sphalerite> nix-shell -p stdenv
<sphalerite> Then you can use patchShebangs interactively or just add --run 'patchShebangs <file>'
<sphalerite> However, this won't add GC roots and the resulting script will break eventually
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<sphalerite> As that version of bash gets garbage collected
<sphalerite> So using a portable shebang like #!/usr/bin/env bash or packaging your script is better
pxc has quit [(Ping timeout: 255 seconds)]
pxc has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Alling has quit [(Quit: Page closed)]
pxc has quit [(Ping timeout: 248 seconds)]
<kuznero> sphalerite: is there any way when working on my package I can `nix-shell -f . -p coreclr`? It complains on `-f .`...
<dash> kuznero: what do you want it to do?
<kuznero> dash: I need to troubleshoot package logic...
<kuznero> call build phase steps and see how it behaves
<dash> ok?
gandreani has quit [(Ping timeout: 258 seconds)]
<dash> so what do you expect '-p coreclr' to do there?
<sphalerite> Just nix-shell -A coreclr should do it
<sphalerite> If coreclr is the package you're trying to debug
<kuznero> sphalerite: yes, I am still getting confused with -i vs -A...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdant
<NixOS_GitHub> nixpkgs/master 7002ca7 WilliButz: nixos/zsh-syntax-highlighting: refactor
NixOS_GitHub has left #nixos []
<kuznero> sphalerite: but I need coreclr package definition from current git branch I am working on...
<kuznero> error: unknown flag ‘-f’
<dash> you pretty much always want -A
<dash> -p is for when you aren't working on a nix expr
<sphalerite> I use -p plenty
<kuznero> dash: thanks, I am trying `nix-shell -f . -A coreclr` to point it to my new definition, but nix-shell has no clue on what -f is
<sphalerite> Yeah -f is only for nix-env
<dash> ah right, because -f is a param for nix-env/nix-build
<sphalerite> Most of the other tools just accept the path to the file as a parameter
<sphalerite> You don't need -f with nix-shell
<sphalerite> It'll try ./shell.nix then ./default.nix
<kuznero> so, should it be possible then to say `nix-shell -A pkgs/development/compilers/coreclr/default.nix`?
<dash> no, -A takes an attribute name
<sphalerite> Just nix-shell -A coreclr
<sphalerite> If you're in nixpkgs
<kuznero> so, nix-shell works from current folder?
<sphalerite> If you're not in nixpkgs but want to get the build env for coreclr from it, nix-shell ~/nixpkgs -A coreclr
<sphalerite> It takes a path as a positional parameter
<sphalerite> If none is given, it will try shell.nix then default.nix
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
<kuznero> ok, thanks
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
<kuznero> that was first step :) then while I am in nix-shell -A coreclr I need to invoke package phases as defined in the derivation for my coreclr version. Is it possible?
<kuznero> Ah, please diregard...
<kuznero> Interestingly `$(uname -r)` gives `unknown` when running nix-env -i... Is this by design?
anderslundstedt has quit [(Remote host closed the connection)]
jb55 has quit [(Ping timeout: 260 seconds)]
<kuznero> sorry, please disregard...
<wilornel> Maybe #nixos can help me with this! I declared pkgs.eclipses.eclipse-platform to install eclipse-platform-4.7. It seems like that install it without PlatformUI
<wilornel> maybe I should just install pkgs.applications.editors.eclipse?
Aisenp has joined #nixos
hiratara has quit [(Ping timeout: 264 seconds)]
<Aisenp> Hello just a question, anybody know how to disable slim in configuration file ?
<gchristensen> services.xserver.displayManager.slim.enable = false
sigmundv has joined #nixos
hiratara has joined #nixos
Eisfreak7 has joined #nixos
fendor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ekleog opened pull request #30261: fcron module: fix use with hardlink-optimized store (master...fcron-hardlink) https://git.io/vdaCW
NixOS_GitHub has left #nixos []
ris has joined #nixos
<Aisenp> services.xserver.displayManager.slim.enable = false; d'ont work "The option `services.xserver.displayManager.job.execCmd` is used but not defined"
<Eisfreak7> Hi. I just started using autorandr, and I discovered that it continuously writes "/bin/sh: xrandr: command not found" to the journal
<Eisfreak7> I guess the problem is, that the python file just executes "xrandr" but it needs an absolute path, right?
<Eisfreak7> Can someone guide me through fixing this?
<gchristensen> Aisenp: you need to enable some display manager
<Aisenp> so how i can do this ?
<Aisenp> can i do it with a displayManager = "none" ??
<ToxicFrog> Eisfreak7: if xrandr is in /run/current-system/sw/bin, telling it to run `/usr/bin/env xrandr` instead might be sufficient
<gchristensen> you don't want one at all?
<Aisenp> yes
<gchristensen> do you want X to start?
<ToxicFrog> If it's not and you don't want it to be, you'll probably need some kind of build step for autorandr that splices in the absolute path
<Aisenp> it's just want to startx for spectrwm
<Eisfreak7> ToxicFrog: How would I go about fixing the nix expression to patch the path?
<wilornel> How can I install eclipse-platform with a ui?
<rycee> wilornel: eclipse-platform includes the UI.
<kuznero> What should I do if package install script wants to inspect /etc/os-release file on the system?
<wilornel> eclim can't find org.eclipse.ui.platformui
<Aisenp> <gchristensen> yes i want X to start.
<ToxicFrog> You probably want a call to substituteInPlace that replaces "xrandr" with "${xorg.xrandr}/bin/xrandr", except you'll want to be a bit more circumspect than that so you don't e.g. replace it in comments and help text and stuff as well
<wilornel> rycee: doing "find /nix/store/prcp7k3r9ws97llr0srqp86f4kca056z-eclipse-platform-4.7/ | grep org | grep platform | grep -E "\bui\b"", I can't find platformui. Something must be not installing it
<ToxicFrog> Eisfreak7: that said, you could probably just add `xorg.xrandr` to config.systemPackages and it would start working
<wilornel> I also ran `home-manager switch` from a SSH session into the VM, not from a Display of the VM
<gchristensen> Aisenp: what if you left slim enabled, but set services.xserver.displayManager.slim.autoLogin.user ?
<Aisenp> yes it could be a solution but it's take more ram than disabling slim ?
cement has quit [(Ping timeout: 246 seconds)]
fendor has quit [(Ping timeout: 240 seconds)]
<gchristensen> do you have very tiny amounts of ram?
<Aisenp> nop it's just for the fun ^^
<gchristensen> ah
<gchristensen> I don't know if you can easily turn off the display manager part :/
<Eisfreak7> ToxicFrog: Okay I'll check for other usages of substiuteInPlace, thanks for the pointer
<rycee> wilornel: Not sure how to get it going under eclim but I've been using eclipse-platform quite extensively and it does show an UI :-)
<Eisfreak7> ToxicFrog: Is there documentation for stuff like that?
<Eisfreak7> ToxicFrog: I do have it in my systemPackages
<Aisenp> no problem, i'll take this solution for the moment and if found another way i'll notice you
<ToxicFrog> Eisfreak7: yeah, in the gigantic Nix manual
<ToxicFrog> Or maybe the nixpkgs manual
<MichaelRaskin> Doesn't SLiM _exit_ after starting autologin anyway?
<gchristensen> iirc yes, MichaelRaskin
<ToxicFrog> Or the NixOS manual, but probably nixpkgs
<wilornel> rycee: yes, I can also launch eclipse with a ui
<MichaelRaskin> Then RAM usage of slim is irrelevant anyway.
<ToxicFrog> Eisfreak7: to be honest, my approach would just to be to add xrandr to SystemPackages and call it a day
sigmundv has quit [(Ping timeout: 255 seconds)]
ebzzry has quit [(Ping timeout: 240 seconds)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<Eisfreak7> ToxicFrog: It is systempackages. Also, autorandr is kinda working (I do have an issue but I don't know if it is related). But fixing it seems cleaner
* ToxicFrog nods
<wilornel> rycee: I'm asking #eclipse if there's a flag I need to pass to the installer to tell it I have a UI and for it to install platformui
<rycee> wilornel: There is a PlatformUI in /nix/store/prcp7k3r9ws97llr0srqp86f4kca056z-eclipse-platform-4.7/eclipse/plugins/org.eclipse.ui.workbench_3.110.0.v20170612-1255.jar
<rycee> wilornel: Maybe that's what it is looking for?
<wilornel> how did you list its contents?
<rycee> `unzip -l`
<rycee> For example. `unzip -l /nix/store/prcp7k3r9ws97llr0srqp86f4kca056z-eclipse-platform-4.7/eclipse/plugins/org.eclipse.ui.workbench_3.110.0.v20170612-1255.jar`
<wilornel> yeah, I found it in there (with `jar tf file`)
<kuznero> So, /etc/os-release is not accessible in sandboxed builds. Should I try generate it on the fly while building?
<kuznero> What is the best practice?
<kuznero> There is something in `nixos/modules/misc/version.nix` about generating /etc/os-release. But I am not sure how is it possible to use it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdalk
<NixOS_GitHub> nixpkgs/master 1afd97a Léo Gaspard: fcron module: fix use with hardlink-optimized store
<NixOS_GitHub> nixpkgs/master a61304e Jörg Thalheim: Merge pull request #30261 from Ekleog/fcron-hardlink...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdal3
<NixOS_GitHub> nixpkgs/release-17.09 951c2f3 Léo Gaspard: fcron module: fix use with hardlink-optimized store...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vdalG
<NixOS_GitHub> nixpkgs/release-17.03 6ed3db6 Léo Gaspard: fcron module: fix use with hardlink-optimized store...
NixOS_GitHub has left #nixos []
<Mic92> kuznero: you cannot really generate it, but you can fake the existence with libredirect
<Mic92> kuznero: is your package linux-only?
<kuznero> Mic92: nope, I am still looking into coreclr... it fails because it cannot determine branch in build logic without this file.
<kuznero> Mic92: sorry, no, I think it should not be linux-only. Coreclr suppose to work crossplat
<Mic92> kuznero: ok, you can make the libredirect-hack conditionally, this file should not exists on non-linux anyway
jb55 has joined #nixos
<kuznero> Mic92: agree, I will look into libredirect. Thanks
<Eisfreak7> How can I enable a service from my local version of nixpkgs? Instead of `services.autorandr.enable = true`, what do I have to do?
Khetzal has quit [(Ping timeout: 248 seconds)]
<Mic92> kuznero: celery in python-packages is an example, you can use
<Mic92> I redirect /etc/protocols there
<Mic92> kuznero: https://nixos.wiki/wiki/Packaging_Software#Test_cannot_access_.2Fetc.2Fprotocols.2C_.2Fetc.2Fservices_or_expects_a_special_.2Fetc.2Fpasswd_when_building_in_sandbox
<Aisenp> <gchristensen> I have found a trick to bypass the DisplayManager you just need to add displayManager.job.execCmd = ''''; after displayManager.slim.enable = false; and it is okay !!
<Mic92> the wiki is about getting better designed then the offical homepage: https://nixos.wiki/wiki/Main_Page
<kuznero> Mic92: So, it will be: 1) I generate temp file with the right content, 2) export NIX_REDIRECTS=/etc/os-release=/path/to/temp/etc/os-release, right?
<Eisfreak7> Nevermind, I figured it out (pass the line services.autorandr.enable to the config when importing my nixpkgs)
jtojnar has joined #nixos
<Mic92> kuznero: yep
<Mic92> Eisfreak7: yeah, should just work. I use it daily
<Mic92> it hooks into udev, so no service is running actually
dfranke has quit [(Ping timeout: 264 seconds)]
Aisenp has quit [(Quit: Leaving)]
mortum5 has quit [(Ping timeout: 255 seconds)]
<Eisfreak7> Mic92: Yeah it works for me, it just doesn't execute the postswitch script and complains about not finding xrandr in the journal
<kuznero> Mic92: do you always need to LD_PRELOAD when using NIX_REDIRECTS?
<Mic92> kuznero: yes
<Mic92> Eisfreak7: also postswitch works for me, I do a dbus-send to my windowmanager there
hiratara has quit [(Quit: ZNC - http://znc.in)]
<kuznero> is $out defined on buildPhasE?
<Eisfreak7> Mic92: Thats weired. It works if I manually trigger another profile, but it doesn't if I just plug something in (even though it recognises the new profile)
<Mic92> kuznero: yes
dywedir has quit [(Ping timeout: 255 seconds)]
<Mic92> Eisfreak7: how did you save the current profile with the other stuff not plugged in?
hiratara has joined #nixos
<Mic92> s/how//
<Eisfreak7> Mic92: Yes
<Eisfreak7> Mic92: I have two profiles, "mobile" and "tv". My postswitch script just consists of "echo $(date) /tmp/log"
<Mic92> Eisfreak7: is it executable?
<Mic92> what is the shebang?
oida has quit [(Ping timeout: 240 seconds)]
<Eisfreak7> Yes, #!/bin/sh
<kuznero> new wiki looks pretty cool
gandreani has joined #nixos
<Mic92> I put it just in ~/.config/autorandr/postswitch
oida has joined #nixos
<Eisfreak7> Mic92: Yeah me too. As I said, if I do `autorandr -f -l tv` it is executed
csingley has quit [(Ping timeout: 240 seconds)]
<kuznero> Is it ok to reference pkgs from stdenv.mkDerivation?
gandreani has quit [(Ping timeout: 248 seconds)]
<Mic92> Eisfreak7: I have to look, if I forgot to backport something to 17.09 regarding autorandr
fragamus has joined #nixos
sigmundv has joined #nixos
<Mic92> kuznero: what are you trying to do?
avn has quit [(Ping timeout: 240 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<makefu> is there a way to find out which of the parts of my configuration or packages requires it to build the ghc?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdaBJ
<NixOS_GitHub> nixpkgs/master 3541b9a Joerg Thalheim: autorandr: put xrandr into PATH
NixOS_GitHub has left #nixos []
<Mic92> Eisfreak7: ^
serhart has quit [(Remote host closed the connection)]
serhart has joined #nixos
serhart has quit [(Remote host closed the connection)]
<Mic92> makefu: nixUnstable has why-depends
<kuznero> Mic92: I am trying to reuse nixos/modules/misc/version.nix
<Mic92> kuznero: for what?
<kuznero> To generate content for /etc/os-release and the use NIX_REDIRECTS before calling to ./build.sh for coreclr
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdaBn
<NixOS_GitHub> nixpkgs/release-17.09 9a70d3c Joerg Thalheim: autorandr: put xrandr into PATH...
NixOS_GitHub has left #nixos []
oida has quit [(Ping timeout: 240 seconds)]
gandreani has joined #nixos
<Mic92> kuznero: in nixpkgs we cannot import nixos
<Eisfreak7> Mic92: Ah, thats what I was currently trying to solve with substituteInPlace. Is a wrapper generally considered "nicer"? Shouldn't all the information be available in the package itself?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b3df084c70 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Eisfreak7> Mic92: Its certainly more robust though
Oida has joined #nixos
nix-gsc-io`bot has quit [(Client Quit)]
<kuznero> Mic92: then it is code duplication, which might be ok for this purpose I guess.
mc1 has joined #nixos
<Mic92> kuznero: yes, should be. what is the file for anyway?
<Mic92> *used for
<kuznero> Mic92: /etc/os-release is used to decide the branch logic in the build script.
avn has joined #nixos
<Mic92> kuznero: but I suppose nixos is not detected there anyway
<kuznero> It is detected as Linux $(uname -r) - this is enough. Then it requires some more details from /etc/os-release.
<Mic92> kuznero: just put something there, which makes it build
<Mic92> did it not build before btw?
<kuznero> It did, but produced some warning. And Travis CI fails.
<kuznero> Travis might fail due to different reason, so I am trying to make it more predictable so to say
<Mic92> what does travis fails with?
<Mic92> I stopped carrying about travis at some point
<kuznero> trying to invoke wget and fails to download something. btw, it does not do it when I run locally with sandboxing
<Mic92> oh, did maybe I build coreclr on the machine, before I had sandbox builds enabled
<Mic92> I take a look on a different one
gandreani_OG has joined #nixos
<obadz> there's a whole range of commits on the master branch after 17.03 forked that I cannot run VM-based tests on. Really annoying as that means I can't git bisect a bug :-(
<obadz> starting VDE switch for network 1
<obadz> vde_switch: Could not set the VDE ctl directory '/tmp/nix-build-vm-test-run-ecryptfs.drv-0/vde1.ctl' permissions: Operation not permitted
mudri has quit [(Ping timeout: 255 seconds)]
<Mic92> fetchurl on that sdk there should do the trick https://dotnetcli.azureedge.net/dotnet/Sdk/
<Eisfreak7> Mic92: Do you know how I can convince nix to use the new version of autorandr now? I have a local clone of nixpkgs imported, but when I activate the service it just takes the one from the stable channel.
darlan has joined #nixos
darlan has quit [(Client Quit)]
<Mic92> Eisfreak7: nixos-rebuild -I nixos=/path/to/nixos/
jb55 has quit [(Ping timeout: 240 seconds)]
<Eisfreak7> Mic92: BUt I don't want to rebuild my whole config based on that, just autorandr
gandreani_OG has quit [(Ping timeout: 255 seconds)]
<gandreani> You can rebase your branch onto the current nixos version you're running
<Eisfreak7> gandreani: Yes but I want the newest commit for autorandr.
<Mic92> kuznero: mhm, it starts to build on my machine without using wget
<Mic92> Eisfreak7: git cherry-pick
<kuznero> Mic92: exactly same on my machine
<Eisfreak7> Mic92: I think packageOverrides comes closest to what I want, thanks. But is there now way to just set the `services.autorandr.enable` attribute on my imported version of nixpkgs?
<Eisfreak7> Mic92: I currently have a line like this in my config: `let repo = import <unstable> { config = { allowUnfree = true; useSandbox = true;};}; in`
<obadz> Eisfreak7: cherry-pick might be more appropriate imho as it will share dependencies with your main system
<obadz> Eisfreak7: but packageOverrides might work too
<Mic92> Eisfreak7: you can add your local nixpkgs checkout to NIX_PATH like that: https://github.com/Mic92/dotfiles/blob/master/nixos/configuration.nix#L67
<kuznero> Mic92: but if it is "ok" to have Travis CI fail while it is possible to build in sandbox locally, then it is probably ok. WDYT?
<Mic92> kuznero: yes
<Mic92> kuznero: if it builds for me, I usually don't care about travis
<kuznero> Mic92: good, then I will start looking into corefx
<gandreani> Eisfreak7: I got another one besides git cherry-pick, git checkout master -- nixpkgs/nixos/modules/services/misc/autorandr.nix
<obadz> gandreani: cherry-pick is better is it will capture the full, presumable coherent commit
<obadz> in case other files were touched
Khetzal has joined #nixos
<gandreani> Hmm that's true
<Eisfreak7> Mic92: Thanks, and how can I reference the `services.autorandr.enable` option on that local checkout then (without changing my whole system to the local checkout)?
<Mic92> Eisfreak7: either you use packagesOverrides or an overlay
mudri has joined #nixos
<obadz> Eisfreak7: why not just locally checkout the exact commit you've installed locally? then nothing will get rebuilt or redownloaded other than what you're cherry-picking
<Eisfreak7> Mic92: obadz: Because I would prefer staying on the channel (and having auto-update work). Intuitively I would just do `repo.services.autorandr.enable = true`, but that doesn't work. What am I misunderstanding?
<Mic92> Eisfreak7: I gave you the solution, I would say
<obadz> injecting a module via overrides takes some fiddling
<Mic92> overlays are respected by nixos
<Eisfreak7> Mic92: Yes, you gave me a solution, thakns for that. I'm just trying to further my understanding to why my intuitive solution doesn't work.
mc1 has quit [(Ping timeout: 255 seconds)]
<Eisfreak7> I thought `services.autorandr` just desugars to `pkgs.autorandr`, doesn't it?
kuznero has quit [(Remote host closed the connection)]
<Mic92> Eisfreak7: what have you tried?
joepie91 has quit [(Excess Flood)]
<Mic92> repo = import <unstable> will not affect pkgs
michiel_l has quit [(Ping timeout: 240 seconds)]
<Eisfreak7> `let repo = import /home/eisfreak/nixpkgs {}; in { repo.services.autorandr.enable = true; }
<Eisfreak7> Mic92: ^ that
<Mic92> Eisfreak7: { repo.services.autorandr.enable = true; } is just a key-value assignment. All assignments are merged into one big
<Mic92> in the autorandr modules there is a { config, pkgs, lib, ...} : {} function
pxc has joined #nixos
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
<Mic92> pkgs is taken from their
<Eisfreak7> Mic92: But shouldn't the assignment lead to the service being build and started?
<Eisfreak7> Mic92: So the modules always get called with the system pkgs?
<Mic92> Eisfreak7: yes, they have there own context
<Mic92> *their
roconnor has joined #nixos
<Mic92> in theory you could the module also manually
Nobabs27 has joined #nixos
<Mic92> and pass your own `pkgs = `
<Eisfreak7> Mic92: Ah okay then thats my misunderstanding I guess.
<Mic92> but packagesOverride is cleaner
<Eisfreak7> Mic92: How would that work?
<Mic92> something like (import <nixpkgs/nixos/nixos/modules/services/misc/autorandr>) { pkgs = repo; }
<Mic92> you would also need to set the other parameter of module function
<Eisfreak7> Mic92: Okay, thank you for your explanations
jb55 has joined #nixos
<Mic92> and use overrideAttrs instead of overrideDerivation
roconnor has quit [(Ping timeout: 255 seconds)]
digitus has quit [(Quit: digitus)]
roconnor_ has joined #nixos
roconnor has joined #nixos
goibhniu has quit [(Ping timeout: 255 seconds)]
schoppenhauer has quit [(Ping timeout: 240 seconds)]
roconnor_ has quit [(Ping timeout: 255 seconds)]
Neo-- has joined #nixos
iqubic has joined #nixos
vandenoever has quit [(Read error: Connection reset by peer)]
schoppenhauer has joined #nixos
michiel_l has joined #nixos
lsyoyom has joined #nixos
<Eisfreak7> Mic92: Which attrs are I supposed to override?
<Ralith> Is there a way to tell llvmPackages.stdenv to use the libstdc++ from gcc7 without rebuilding llvm+clang?
<Ralith> that is, I want it in the stdenv, I don't care what it was built with itself
markus1189 has joined #nixos
<Ralith> i.e. I want a stdenv that has clang 4 and libstdc++ from gcc 7
markus1199 has quit [(Ping timeout: 255 seconds)]
<Mic92> Eisfreak7: of autorandr
<Mic92> Ralith: libcxxStdenv.mkDerivation maybe?
<Mic92> so libcxxStdenv instead of stdenv
<Ralith> Mic92: that gives me libc++, not libstdc++.
<Ralith> I want libstdc++.
Neo-- has quit [(Remote host closed the connection)]
<Mic92> Ralith: does clang in the normal stdenv not use libstdc++ anymore?
<Ralith> clang in the normal stdenv uses libstdc++ from the normal stdenv, which is not the one I want.
<Ralith> I want the libstdc++ from gcc 7.
anderslundstedt has joined #nixos
<Mic92> Ralith: I think this was encoded in the compiler wrapper
<Ralith> yes; I'm asking if there's a way to override that without overriding the libstdc++ the compiler was built with (and thereby having to rebuild the compiler)
betaboon has quit [(Ping timeout: 260 seconds)]
<Mic92> Ralith: you can probably do cc-wrapper.override ({stdenv= ...;})
<Mic92> Ralith: grep for ccWrapperFun in top-level/all-packages.nix