[Nix-dev] [PATCH] Fix xserver restart with cfg.driSupport32Bit

2012-03-15 Thread Kirill Elagin
--- modules/services/x11/xserver.nix |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index d07ca53..c918d81 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -414,6

[Nix-dev] [PATCH 1/2] Fix Firefox desktop item

2012-03-20 Thread Kirill Elagin
--- .../networking/browsers/firefox/wrapper.nix|4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index 1b8fb79..a89db87 100644 ---

[Nix-dev] ksshaskpass

2012-03-22 Thread Kirill Elagin
I have no idea how to integrate ksshaskpass. Currently x11-ssh-askpass is hard-coded into 'nixos/modules/services/x11/display-managers/default.nix'. Should there be an option to choose which ssh-askpass program to use (I know that there exists at least one more such a program)? Where should this

[Nix-dev] Expressing dependencies on init scripts

2012-03-26 Thread Kirill Elagin
Please take a look at this bug that Lluís has just fixed: https://nixos.org/websvn/nix/nixos/trunk/modules/config/networking.nix?op=diffrev=33434peg=33434 . Of course this works now, but there is a deeper problem: Nix couldn't detect that this config referred to nscd's init-script. It seems to me

Re: [Nix-dev] nix-prefetch-git in nixpkgs

2012-06-07 Thread Kirill Elagin
Hi, I'm reading nix-prefetch-git from HEAD right now and its behaviour seems to be consistent with documentation except for a small bug that renders those --* setters a bit unusable (see thishttps://github.com/kirelagin/nixpkgs/commit/7d786f3b7b41d1a417cde496cc002e5fa6f2352e ). Next. You are

Re: [Nix-dev] Git migration progress

2012-06-07 Thread Kirill Elagin
Are you planning to set up a push-hook which will send notifications to this list? -- Кирилл Елагин ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] libreoffice icons

2012-06-07 Thread Kirill Elagin
That's true, I can't see creation of .desktop items in LibreOffice expression… -- Кирилл Елагин 2012/6/5 Sergey Mironov ier...@gmail.com Hi, Looks like libreoffice doesn't show itself in xfce's main menu. And I cant find any icons in it's /nix/store/.../ dir. Does anybody know anything

Re: [Nix-dev] lighttpd service

2012-06-07 Thread Kirill Elagin
I think the right way to handle config files is the on used by xserver module. You provide a basic config, enough to run lighty in most well-trodden configurations, similar to configs included by other distros. And when someone needs an advanced config he just overwrites it completely with

Re: [Nix-dev] Linux kernel and acpi_call/bbswitch build

2012-06-07 Thread Kirill Elagin
Hello, You mean headers of other packages? I think, the best way to deal with this is applying a patch in your nix expr and opening a bug in upstream's tracker. -- Кирилл Елагин 2012/6/7 Michael Raskin 7c6f4...@mail.ru Hello. With recent Linux kernels it turns out

Re: [Nix-dev] nixos-install

2012-06-07 Thread Kirill Elagin
2012/5/10 Marco Maggesi magg...@math.unifi.it The directory /nix/var/nix/profiles/per-user/root is empty on my system. What is wrong? That's wrong. You are probably using old-style /etc/nixos stuff. Migrate to nix channels. -- Кирилл Елагин ___

Re: [Nix-dev] Linux kernel and acpi_call/bbswitch build

2012-06-08 Thread Kirill Elagin
2012/6/8 Michael Raskin 7c6f4...@mail.ru The question was how would the patch get into an official _NixPkgs_ repository - it looks like there is currently no process in place. Well, as I can see, Eelco is accepting pull requests on GitHub (although there is a bunch of pretty old pending

Re: [Nix-dev] nix-prefetch-git in nixpkgs

2012-06-08 Thread Kirill Elagin
2012/6/8 Nicolas Pierron nicolas.b.pier...@gmail.com Hi, On Thu, Jun 7, 2012 at 7:06 AM, Kirill Elagin kirela...@gmail.com wrote: I'm reading nix-prefetch-git from HEAD right now and its behaviour seems to be consistent with documentation except for a small bug that renders those

Re: [Nix-dev] Linux kernel and acpi_call/bbswitch build

2012-06-08 Thread Kirill Elagin
2012/6/8 Michael Raskin 7c6f4...@mail.ru The question was how would the patch get into an official _NixPkgs_ repository - it looks like there is currently no process in place. Well, as I can see, Eelco is accepting pull requests on GitHub (although there is a bunch of pretty old pending

Re: [Nix-dev] Linux kernel and acpi_call/bbswitch build

2012-06-08 Thread Kirill Elagin
2012/6/8 Michael Raskin 7c6f4...@mail.ru Isn't SVN commit access still open? AFAIK github is currently a read-only mirror of the SVN repo. I am collecting opinions about that last part... “Within a few days…” http://lists.science.uu.nl/pipermail/nix-dev/2012-June/009001.html As I see it,

[Nix-dev] Firefox 13 issue

2012-06-09 Thread Kirill Elagin
Hi, I've just installed FF 13 (with no customisation, so nothing was built locally) and its xulrunner seems to be broken. When I open some websites (I guess, the problem is somehow related to Flash), say, Youtube, it just hangs completely and prints this to console:

Re: [Nix-dev] Firefox 13 issue

2012-06-09 Thread Kirill Elagin
this… -- Кирилл Елагин 2012/6/9 Kirill Elagin kirela...@gmail.com Hi, I've just installed FF 13 (with no customisation, so nothing was built locally) and its xulrunner seems to be broken. When I open some websites (I guess, the problem is somehow related to Flash), say, Youtube, it just hangs

Re: [Nix-dev] Emacs 24

2012-06-15 Thread Kirill Elagin
Thanks God I use vim. -- Кирилл Елагин ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] sudo and nix-channel (was: Re: NixOS channel)

2012-06-17 Thread Kirill Elagin
Ahh... I don't get how this works. According to `man sudoers`, env_reset is enabled by default, so $HOME should be set to the target user's home (and, indeed, that happens in my Gentoo box). On the other hand, description of `-H` option in `man sudo` states that “By default, sudo does not modify

Re: [Nix-dev] nix-env ignores NIX_PATH ?

2012-06-17 Thread Kirill Elagin
2012/6/17 Sergey Mironov ier...@gmail.com Thanks, linking ~/proj/nix/nixpkgs into ~/.nix-defexpr works. But what is NIX_PATH for? It is used look up expressions enclosed in angle brackets as man says ;). For example, try this: ``NIX_PATH=hey=$HOME/code/nixos/nixpkgs nix-env -f 'hey' -qa

Re: [Nix-dev] NixOS channel

2012-06-19 Thread Kirill Elagin
2012/6/19 Kevin Quick qu...@sparq.org Very interesting information regarding the channels. Can you give some additional advice on how this relates to existing /etc/nixos/* checkouts? As I understand it, all utilities will use channels by default but for backward compatibility, in case there

Re: [Nix-dev] Nixpkgs and NixOS moved to GitHub

2012-06-21 Thread Kirill Elagin
Well, I think, those who used to have commit access to SVN should get push access to git. And they will be accepting pull-requests into the main tree. They have to be responsible enough to read pull-request diffs carefully and, if needed, ask colleague for help with review (GitHub has all those

Re: [Nix-dev] Nixpkgs and NixOS moved to GitHub

2012-06-21 Thread Kirill Elagin
2012/6/22 Eelco Dolstra eelco.dols...@logicblox.com One slight complication here is that since GitHub doesn't disable non-fast-forward commits, every committer actually *can* cause data loss in the repository. You mean force push, right? This can be solved by keeping a reference repo

Re: [Nix-dev] Nixpkgs and NixOS moved to GitHub

2012-06-22 Thread Kirill Elagin
2012/6/22 Ludovic Courtès l...@gnu.org Eelco Dolstra eelco.dols...@logicblox.com skribis: On 21/06/12 17:07, Ludovic Courtès wrote: A hybrid policy is of course also possible. I.e. uncontroversial changes (such as minor package upgrades in Nixpkgs) can go directly into the master,

Re: [Nix-dev] Nixpkgs and NixOS moved to GitHub

2012-06-22 Thread Kirill Elagin
2012/6/22 Shea Levy s...@shealevy.com I tweeted my surprise about this fact and got this response: https://mobile.twitter.com/#!/xpaulbettsx/status/216003572163297280 . So that might make giving more people commit access a more palatable solution. This link is better:

Re: [Nix-dev] BusyBox

2012-06-22 Thread Kirill Elagin
We definitely should investigate [better-initramfs][1]. I've never used it yet (since I'm happy with genkernel), but I was just going to look at it when I'll have free time (by the end of June), so I'll let you know, what I think. [1]: https://github.com/slashbeast/better-initramfs -- Кирилл

Re: [Nix-dev] Fwd: Nixpkgs and NixOS moved to GitHub

2012-06-24 Thread Kirill Elagin
So, [here][1] we have a nice example of discussions in pull requests. This shows that this model actually works. I hope one day we'll get a document explaining how to work pull requests, and I'd like to suggest the following. In cases like this one, when there are lots of commits fixing small

Re: [Nix-dev] Fwd: Nixpkgs and NixOS moved to GitHub

2012-06-24 Thread Kirill Elagin
More on policy. AFAIK, many projects follow [git's own recommendations on sending patches][1]. We should look at this document and decide what is acceptable for us to adopt. Especially, we have to agree on commit message format (ignoring sign-offs for now) and tenses used. Right know most commits

Re: [Nix-dev] Google web fonts import

2012-06-24 Thread Kirill Elagin
Shouldn't we introduce a separate attrset to hold fonts instead of putting them into top-level? Ok, guys, let's be honest. Nix needs something like categories. And, no, suffixes in package names are not a good solution. And, by the way, nested attrsets won't work either, because, as I know, after

Re: [Nix-dev] Google web fonts import

2012-06-24 Thread Kirill Elagin
2012/6/24 Marc Weber marco-owe...@gmx.de Ok, guys, let's be honest. Nix needs something like categories. What if you have a python library which is also a compiler? Put into category compilers or python-library? Well, yeah, this might be a problem, but other package managers solve this

Re: [Nix-dev] Announcing free-nix: the free Linux distribution based on the Nix package manager

2012-06-26 Thread Kirill Elagin
This kind of problem absolutely should be reported as an issue in GitHub or elsewhere. For me as for still a pretty outside observer it seems that the main problem of NixOS for now is lack of… let's call it specifications. I'm sure all those issues will be addressed sooner or later when we

Re: [Nix-dev] [***SPAM***] A bunch of patches to nixpkgs and questions

2012-06-26 Thread Kirill Elagin
2012/6/26 Jan Malakhovski o...@oxij.org I'm kind of confused with gist vs. pull request controversy. I did carefully read the thread about moving to github, but still don't get this nonlinear history/merge problem. No offense, but I feel that gists somehow diminish contributions (or maybe I

Re: [Nix-dev] A bunch of patches to nixpkgs and questions

2012-06-26 Thread Kirill Elagin
2012/6/26 Peter Simons sim...@cryp.to By the way, do you have a user on Github? I'll give you access to the repository in case you have more changes that you'd like to share. If you look carefully at commits you've commited into your repo, you'll notice that, yes, he has a GitHub account. --

Re: [Nix-dev] A bunch of patches to nixpkgs and questions

2012-06-26 Thread Kirill Elagin
2012/6/26 Marc Weber marco-owe...@gmx.de Excerpts from Kirill Elagin's message of Tue Jun 26 20:05:21 +0200 2012: Just to note: I don't get this gist idea either. Gist is, you know, slightly enhanced pastebin, and using it for collecting contributions looks weird. Yes - I'm abusing it :)

Re: [Nix-dev] A bunch of patches to nixpkgs and questions

2012-06-26 Thread Kirill Elagin
2012/6/26 Michael Raskin 7c6f4...@mail.ru Sending patch to mailing list can be done with a single pipeline command in shell... So yes, for simple fixes pull request is more effort than contributing the fix would save. No doubt, we _must_ still accept contributions by `git format-patch`

Re: [Nix-dev] Commit access

2012-06-27 Thread Kirill Elagin
2012/6/27 Eelco Dolstra eelco.dols...@logicblox.com firefox: Updated to 14.0 Please-please-please let's use present imperative as Git (and many other projects) do? Something like firefox: Update to 14.0. I don't know why, but many projects prefer it, and I've read somewhere that imperative

Re: [Nix-dev] variable scope / recursion

2012-07-06 Thread Kirill Elagin
rec is the answer (this is something like let/letrec in Lisp, if you know what I mean ;) ). -- Кирилл Елагин 2012/7/6 Mathijs Kwik math...@bluescreen303.nl Hi all, I was reading this interesting piece of all-packages.nix (comments/whitespace removed): applyGlobalOverrides = overrider:

[Nix-dev] Troubles with console font

2013-07-09 Thread Kirill Elagin
Hi, I'm coming back to NixOS after a rather long break. Lots of things have changed, and the most notable of all the changes is probably switching to systemd (luckily I've been using systemd for almost a year on Gentoo).. It seems that my console font doesn't get configured. The strange thing is

[Nix-dev] google-talk-plugin is broken?

2013-08-31 Thread Kirill Elagin
Here is Chromium console output: ~~~ [000:000] Browser XEmbed support present: 1 [000:000] Browser toolkit is Gtk2. [000:001] Using Gtk2 toolkit [000:202] Starting client channel. [000:203] Warning(clientchannel.cc:436): Unreadable or no port file. Could not initiate GoogleTalkPlugin connection

Re: [Nix-dev] google-talk-plugin is broken?

2013-09-01 Thread Kirill Elagin
to update? Cheers, Cillian On Sat, Aug 31, 2013 at 11:21 AM, Kirill Elagin kirela...@gmail.comwrote: Here is Chromium console output: ~~~ [000:000] Browser XEmbed support present: 1 [000:000] Browser toolkit is Gtk2. [000:001] Using Gtk2 toolkit [000:202] Starting client channel. [000

Re: [Nix-dev] google-talk-plugin is broken?

2013-09-22 Thread Kirill Elagin
Wow, thanks for pointing this out. I was pretty sure that simply installing google-talk-plugin should be enough… -- Кирилл Елагин On Sun, Sep 1, 2013 at 4:55 PM, aszlig asz...@redmoonstudios.org wrote: Hi, It's been a long time since I have used the plugin, but could it be that you

Re: [Nix-dev] Help creating a custom app with Nix package manager

2014-03-01 Thread Kirill Elagin
Hm, I can't reproduce that. Your expression works fine for me (I only had to fix `version`). -- Кирилл Елагин On Thu, Feb 27, 2014 at 6:30 PM, Asus Ceaser theprepb...@gmail.com wrote: I did a fresh install and started following the Nixpkgs manual to create a custom package. I want to use

Re: [Nix-dev] Help creating a custom app with Nix package manager

2014-03-01 Thread Kirill Elagin
, Mar 1, 2014 at 2:45 AM, Kirill Elagin kirela...@gmail.com wrote: Hm, I can't reproduce that. Your expression works fine for me (I only had to fix `version`). -- Кирилл Елагин On Thu, Feb 27, 2014 at 6:30 PM, Asus Ceaser theprepb...@gmail.comwrote: I did a fresh install and started

Re: [Nix-dev] Some NixOS beginner questions...

2014-03-30 Thread Kirill Elagin
On Mon, Mar 31, 2014 at 1:01 AM, Ben Franksen ben.frank...@online.dewrote: (2) It seems impossible to install NixOS w/o installing the boot loader. Hm, boot.loader.grub.enable = false; ? (3) I love the declarative approach to system configuration. However, for a newcomer it is hard to

Re: [Nix-dev] Some NixOS beginner questions...

2014-03-30 Thread Kirill Elagin
On Mon, Mar 31, 2014 at 1:35 AM, Kirill Elagin kirela...@gmail.com wrote: You'll have to look it up in `pkgs/top-level/all-packages.nix`. Either clone the nixpkgs repository or you can find a copy at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`. Oh, and there is also `nix-env

Re: [Nix-dev] Some NixOS beginner questions...

2014-03-31 Thread Kirill Elagin
On Mon, Mar 31, 2014 at 2:22 AM, Ben Franksen ben.frank...@online.dewrote: Then I do `nix-env -i` (or whatever I need) with `-f path_to_my_copy_of_nixpkgs`. That tells Nix to use _my_ expressions. In case of `nixos-rebuild` there is `-I` flag. As I said, I really like the declarative

[Nix-dev] systemPackages vs. services.dbus.packages

2014-04-07 Thread Kirill Elagin
Hi all, I've just noticed that some of system packages have their DBus config sourced twice. Their `etc/dbus-1/system.d/` directories are both explicitly listed in `/etc/dbus-1/system.conf` and are symlinked from `/nix/store/${hash}-system-path/etc/dbus-1/system.d`. The former happens because

Re: [Nix-dev] Hash Collisions

2014-04-07 Thread Kirill Elagin
First of all, those are not hash collisions, obviously. If those were SHA-256 collisions, you'd already be famous =). Those are file collisions, and as you can see, this time the file in question is /share/man/man2/llistxattr.2.gz, it is provided by two packages: `man-pages` and `attr`. Since your

Re: [Nix-dev] Accidental force push to nixpkgs

2014-04-08 Thread Kirill Elagin
It might be a good idea to set up a post receive hook that does git pull on each new revision, so it has all the commits, and if it detects a force push, it sends an email with last commit's hash to the list and to the commiter. -- Кирилл Елагин On Tue, Apr 8, 2014 at 10:27 AM, Alexander

Re: [Nix-dev] cannot install cinnamon-session

2014-04-08 Thread Kirill Elagin
Cinnamon is just not there in 13.10. I'm not really sure that mixing revisions as you do (having 13.10 system and installing some packages from master) is safe… It might be better to switch to unstable and do it properly, by adding cinnamon to systemPackages. Or, if you want, you can maintain your

Re: [Nix-dev] gnome 3 suport

2014-04-08 Thread Kirill Elagin
If we are still talking about 13.10, then Gnome3 was not actually supported in NixOS, but there was an expression for it called gnome3. In NixOS 13.10 Gnome2 is used. -- Кирилл Елагин On Tue, Apr 8, 2014 at 10:47 AM, Roelof Wobben r.wob...@home.nl wrote: Hello, Does anyone know if Gnome3

Re: [Nix-dev] systemPackages vs. services.dbus.packages

2014-04-08 Thread Kirill Elagin
and have an explicit list of packages that have something to do with DBus (it might be useful in the future). -- Кирилл Елагин On Tue, Apr 8, 2014 at 11:29 PM, Mathijs Kwik math...@bluescreen303.nlwrote: Vladimír Čunát vcu...@gmail.com writes: On 04/07/2014 11:36 AM, Kirill Elagin wrote: So

Re: [Nix-dev] systemPackages vs. services.dbus.packages

2014-04-08 Thread Kirill Elagin
On Wed, Apr 9, 2014 at 12:24 AM, Mathijs Kwik math...@bluescreen303.nlwrote: Kirill Elagin kirela...@gmail.com writes: Yes, we can nub them (to be precise, it makes sense to subtract `systemPackages` from `dbus.packages`), those lists contain package names, not derivations. Why should

Re: [Nix-dev] systemPackages vs. services.dbus.packages

2014-04-08 Thread Kirill Elagin
On Tue, Apr 8, 2014 at 11:29 PM, Mathijs Kwik math...@bluescreen303.nlwrote: I use that as much as possible. There's really no need for a lot of packages to be in systemPackages or in some user profile if they only provide a service and don't have lots of often-used CLI tools. Same goes for

Re: [Nix-dev] Unfree packages in Nixpkgs

2014-04-09 Thread Kirill Elagin
I agree, that would be very nice to have a list of “unblocked” unfree packages. We can go even better and “unblock” packages not by name, but by license, i. e. if I've already accepted terms of some particular non-free license it doesn't make any difference for me to have another package with

[Nix-dev] Using fonts with X terribly broken?

2014-04-10 Thread Kirill Elagin
Hi, I've just tried to run `dmenu` in NixOS and I've got issues with unicode symbols. So, it turns out, `dmenu` wants the chosen font to be properly registered within X server. I've glanced through all the fonts stuff in NixOS modules and it looks like there is something wrong. That is, there

Re: [Nix-dev] Using fonts with X terribly broken?

2014-04-10 Thread Kirill Elagin
, 2014 at 1:06 PM, Eelco Dolstra eelco.dols...@logicblox.comwrote: Hi, On 10/04/14 08:18, Kirill Elagin wrote: I've glanced through all the fonts stuff in NixOS modules and it looks like there is something wrong. That is, there are, basically, to different sets of fonts: ordinary fonts

Re: [Nix-dev] libsystemd-login not found

2014-04-11 Thread Kirill Elagin
How about trying to add libxml2? -- Кирилл Елагин On Fri, Apr 11, 2014 at 10:46 AM, Roelof Wobben r.wob...@home.nl wrote: Vladimír Čunát schreef op 10-4-2014 20:05: On 04/10/2014 08:03 PM, Roelof Wobben wrote: When building a package I see a message that libsystemd-login cannot be

Re: [Nix-dev] Objections to switching to Bluez5?

2014-04-11 Thread Kirill Elagin
Any news on that? I'm sure I've been using Bluez 5 with KDE 4.11.5 on my Gentoo laptop for quite some time. -- Кирилл Елагин On Wed, Aug 28, 2013 at 12:02 AM, Aristid Breitkreuz arist...@gmail.comwrote: It appears that KDE does not support Bluez 5 at this point, so this appears to be out

Re: [Nix-dev] Objections to switching to Bluez5?

2014-04-11 Thread Kirill Elagin
:51 schrieb Kirill Elagin kirela...@gmail.com: Why? Audio profiles weren't working anyway (at least, for me)… -- Кирилл Елагин On Fri, Apr 11, 2014 at 8:42 PM, Aristid Breitkreuz arist...@gmail.comwrote: This would require a pulseaudio update. Am 11.04.2014 18:40 schrieb Kirill Elagin

Re: [Nix-dev] Objections to switching to Bluez5?

2014-04-11 Thread Kirill Elagin
Speaking about KDE, looks like we need bluedevil = 2 and it's still RC1. From my experience it's pretty stable but probably we should wait… That's a pity, Bluez4 sucks so much! -- Кирилл Елагин On Fri, Apr 11, 2014 at 9:28 PM, Kirill Elagin kirela...@gmail.com wrote: I'd like to upgrade

Re: [Nix-dev] Objections to switching to Bluez5?

2014-04-12 Thread Kirill Elagin
PM, Carles Pagès page.li...@gmail.com wrote: I only started playing with bluetooth the other day and also relied on bluez5. Perhaps we could open an issue to track making bluez5 the default, with all that info? 2014-04-11 19:34 GMT+02:00 Kirill Elagin kirela...@gmail.com: Speaking about KDE

Re: [Nix-dev] cannot install java

2014-04-16 Thread Kirill Elagin
Well, it says that hashes didn't match. You can download the file yourself and find out what's going on. On Apr 16, 2014 12:21 PM, Roelof Wobben r.wob...@home.nl wrote: Hello, When I want to install opnjdk or icedtea I see this message: output path

[Nix-dev] PDF issues

2014-04-19 Thread Kirill Elagin
Hi, I've got strange issues with some PDF files. I've been seeing this for quite a while with quite a few different PDFs. Basically, the problem is that Okular shows empty pages. I've recently switched to Zathura, and turns out something's wrong there too. Here are some pictures: Okular:

Re: [Nix-dev] PDF issues

2014-04-19 Thread Kirill Elagin
on NixOS right now)—the text is crispy, so, yes, looks like a poppler+Zathura issue. But it is not crispy in Okular! -- Кирилл Елагин On Sat, Apr 19, 2014 at 2:50 PM, Vladimír Čunát vcu...@gmail.com wrote: On 04/19/2014 12:38 PM, Kirill Elagin wrote: Do you have any ideas? To me this looks

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Kirill Elagin
On Mon, Apr 21, 2014 at 4:23 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote: nix-channel --add http://nixos.org/channels/nixos-unstable nixos seems to work but is probably not what I want (getting few-minutes-old fixes from nixpkgs git repository). There is a thing called Hydra. It

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Kirill Elagin
On Mon, Apr 21, 2014 at 4:44 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote: How can I get it to affect nix-env too? What is the way to set this globally, for all users? Namely, for my use-case, I'd like both root and my own user to use this checkout. Just set NIX_PATH system-wide

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Kirill Elagin
And the man tells us that `nix-env` uses `~/.nix-defexpr` as the default expression, so adjust it accordingly. -- Кирилл Елагин On Mon, Apr 21, 2014 at 5:04 PM, Kirill Elagin kirela...@gmail.com wrote: On Mon, Apr 21, 2014 at 4:44 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: How

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Kirill Elagin
:16 PM, Bjørn Forsman bjorn.fors...@gmail.comwrote: On 21 April 2014 14:56, Kirill Elagin kirela...@gmail.com wrote: On Mon, Apr 21, 2014 at 4:23 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: [...] * How can I find out more about packages? For example, I'd like to query a package

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Kirill Elagin
enough time. It would be great is someone did this. -- Кирилл Елагин On Mon, Apr 21, 2014 at 6:25 PM, Bjørn Forsman bjorn.fors...@gmail.comwrote: On 21 April 2014 15:35, Kirill Elagin kirela...@gmail.com wrote: If there was a way to 1. run nix-repl non-interactively, 2. list variables

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Kirill Elagin
Елагин On Mon, Apr 21, 2014 at 6:53 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote: On 04/21/2014 04:34 PM, Kirill Elagin wrote: Right, pretty cool, but still needs a sane frontend. I mean, JSON is way better than, say, XML, but… And the problem with nix-env is that it's damn slow

Re: [Nix-dev] RFC: NixOS version string format

2014-04-27 Thread Kirill Elagin
+1 for annotated tags and `git describe`. It will also include a hash. Plus some additional useful information. This way we automagically get beautiful names for releases and useful names (with last tag and commit hash) for intermediate versions. Upcoming 14.04 release might be a good point to

Re: [Nix-dev] Wireless carl9170 usb driver - missing firmware

2014-04-28 Thread Kirill Elagin
Looks like you have to package properly it and add to `hardware.firmware`. Have a look at https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/network/b43.nixfor reference. By the way, this firmware stuff looks a bit weird. I mean, the modules do strange things like enabling

Re: [Nix-dev] How to actually get rid of things from the nix-env -qs list?

2014-04-28 Thread Kirill Elagin
On Mon, Apr 28, 2014 at 1:38 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote: nix-env -qs shows something like IP- python3.3-livestreamer-1.8.0 Where is the ‘IP-’ bit documented? As far as I know, the last letter indicates whether the software is currently active. Unsurprisingly, it is

Re: [Nix-dev] Sound issues with PulseAudio (5.0) and Chromium HTML5 video lately

2014-04-29 Thread Kirill Elagin
Hm, I don't have any issues with PA 5 and stable Chromium (I'm on 14.04 branch). -- Кирилл Елагин On Sun, Apr 27, 2014 at 5:12 PM, Aristid Breitkreuz arist...@gmail.comwrote: I have attached one minute's worth of pulseaudio log level info, while the stuttering effect is happening. Note

[Nix-dev] Set locale in a pure nix-shell

2014-05-09 Thread Kirill Elagin
`nix-shell --pure` resets locale to POSIX and this leads to issues with unicode output. For example: ~ % nix-shell --pure [nix-shell:~/tmp/shell-test]$ cat test.py print('かわいい') [nix-shell:~/tmp/shell-test]$ python3 test.py Traceback (most recent call last): File

Re: [Nix-dev] Set locale in a pure nix-shell

2014-05-09 Thread Kirill Elagin
by default to something more reasonable than POSIX might be a good idea… -- Кирилл Елагин On Fri, May 9, 2014 at 11:38 PM, Kirill Elagin kirela...@gmail.com wrote: `nix-shell --pure` resets locale to POSIX and this leads to issues with unicode output. For example

Re: [Nix-dev] network interface naming

2014-05-12 Thread Kirill Elagin
I guess it's systemd-209. They added systemd-networkd, .link units and all that stuff. Also udev's .rules file that does net naming changed somewhere around systemd-209. -- Кирилл Елагин On Mon, May 12, 2014 at 1:39 AM, Mathijs Kwik math...@bluescreen303.nlwrote: Lluís Batlle i Rossell

Re: [Nix-dev] xfce: 'lock screen' button

2014-05-16 Thread Kirill Elagin
Yeah, and to ask lightdm to lock your session you do `dm-tool lock`. -- Кирилл Елагин On Fri, May 16, 2014 at 11:06 AM, Domen Kožar do...@dev.si wrote: That's how I override default: $ type -P xflock4 /home/ielectric/bin/xflock4 $ cat /home/ielectric/bin/xflock4 scrot

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Kirill Elagin
Small note first: s/Markdown/Pandochttp://www.johnmacfarlane.net/pandoc/README.htmlMarkdown/ (and this `s/.../.../` thing has to do with `sed`, in case you wonder). I guess many of the NixOS people live in the Haskell world, and `pandoc` is the tool of choice there. The good news is that it

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Kirill Elagin
FTR just so that people don't get confused: GitHub's wiki is Gollum which I mentioned. Maybe it would be more handy to open an issue in nixpkgs for discussing wiki engines? -- Кирилл Елагин On Mon, May 19, 2014 at 12:24 PM, Marc Weber marco-owe...@gmx.de wrote: Just a very small comment:

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Kirill Elagin
On Mon, May 19, 2014 at 7:13 PM, Alex Berg chex...@gmail.com wrote: Thanks for the link to past discussion on this topic, Cillian. That was a good discussion. Also, thank you, Third3ye, for contributing to the wiki effort and raising Nix wiki awareness. ### On the Nix Wiki A wiki is a

Re: [Nix-dev] xfce: 'lock screen' button

2014-05-20 Thread Kirill Elagin
: Stopping display server, no sessions require it 2014-05-16 17:32 GMT+04:00 Kirill Elagin kirela...@gmail.com: Yeah, and to ask lightdm to lock your session you do `dm-tool lock`. -- Кирилл Елагин On Fri, May 16, 2014 at 11:06 AM, Domen Kožar do...@dev.si wrote: That's how I

Re: [Nix-dev] builtins.toPath returns ... a string?

2014-05-22 Thread Kirill Elagin
The relevant commit is this: https://github.com/NixOS/nix/commit/d7efd7639420f4c840cbfdfcbbb3c45292f3ac54 Looks like `toPath` is not only obsolete, but prohibited since semantics of paths changed and now it makes no sense no convert something to a path. -- Кирилл Елагин On Thu, May 22, 2014 at

Re: [Nix-dev] Updating /etc/nix/nix.conf before building packages during nixos-rebuild

2014-05-24 Thread Kirill Elagin
Well, purity doesn't give any guarantees about reproducibility of build _process_. It says something only about build _result_. But, yes, I agree. I'd expect `nix.binaryCaches` to be applied immediately. -- Кирилл Елагин On Sat, May 24, 2014 at 2:13 PM, Wout Mertens

Re: [Nix-dev] GCC in pkgs.buildEnv.paths

2014-05-25 Thread Kirill Elagin
Hi Peter, Just for the record: this issue is not due to Pavel's misconfiguration, I can confirm the behaviour he described. In my case it is ~ % nix-env --dry-run -iA nixos.pkgs.gcc (dry run; not doing anything) installing `gcc-wrapper-4.8.2' % readlink -f $(which gcc)

[Nix-dev] nix-store deriver vs outputs

2014-05-25 Thread Kirill Elagin
Hi, I'm not sure I'm getting the terms right, but I believe that “output” and “deriver” are inverses of each other. But something seems to be wrong. Here is an example: ~ % nix-store -q --deriver ~/.nix-profile/bin/pavucontrol

Re: [Nix-dev] GCC in pkgs.buildEnv.paths

2014-05-25 Thread Kirill Elagin
', 'stdenv', 'zlib'). -- Pavel On Sun, May 25, 2014 at 10:25 AM, Kirill Elagin kirela...@gmail.comwrote: Hi Peter, Just for the record: this issue is not due to Pavel's misconfiguration, I can confirm the behaviour he described. In my case it is ~ % nix-env --dry-run -iA nixos.pkgs.gcc

Re: [Nix-dev] nix-store deriver vs outputs

2014-05-25 Thread Kirill Elagin
-i pavucontrol` _the same_ output will be produced by another derivation. So, again, “deriver” refers to the derivation that actually made the output appear in the store. -- Кирилл Елагин On Sun, May 25, 2014 at 10:39 AM, Kirill Elagin kirela...@gmail.com wrote: Hi, I'm not sure I'm getting

Re: [Nix-dev] GCC in pkgs.buildEnv.paths

2014-05-25 Thread Kirill Elagin
-wrapper-4.8.2.drv -- Кирилл Елагин On Sun, May 25, 2014 at 12:12 PM, Kirill Elagin kirela...@gmail.com wrote: Here is what I see (this is a diff of references of gccWrapper for gcc vs. testgcc): ~ /nix/store/x0ml8lx5220diw4iplia8ry240smb4vl-add-flags /nix/store

Re: [Nix-dev] [nixos] The necessity of UEFI Secure Boot

2014-05-27 Thread Kirill Elagin
In short: all the bootloaders are signed by Microsoft. At least in “mainstream” distributions. UEFI is definitely a cool thing. But there are decisions to be made before implementing its support in a distribution. So, yeah, I hope the discussion will be started. As a first step, NixOS can

Re: [Nix-dev] Regarding extra GRUB options in Configuration.nix

2014-05-27 Thread Kirill Elagin
Well, it looks like I should start with basics of grub. Grub has a configuration file, `grub.cfg`. There is no such thing as “hidden timeout” in terms of grub's configuration file. Also they ship scripts that generate this configuration from another configuration, supposedly, a more

Re: [Nix-dev] Regarding extra GRUB options in Configuration.nix

2014-05-28 Thread Kirill Elagin
? boot.loader.grub.extraConfig = '' if keystatus --shift ; then set timeout=-1 else set timeout=0 fi ''; I currently have boot.loader.grub.timeout = 0; Will this directive need to change? Thanks, Roger On 28/05/2014 3:29 AM, Kirill Elagin wrote: Well, it looks like I should start with basics of grub

Re: [Nix-dev] root OpenGL: 1.4/2.1.2; user OpenGL 4.4

2014-05-28 Thread Kirill Elagin
https://github.com/NixOS/nixpkgs/pull/2692 + fix modules/hardware/opengl.nix:104 -- Кирилл Елагин On Wed, May 28, 2014 at 11:50 PM, Vladimír Čunát vcu...@gmail.com wrote: On 05/28/2014 09:17 PM, Mateusz Kowalczyk wrote: The difference seems that on my user, LD_LIBRARY_PATH is set to

Re: [Nix-dev] New website

2014-05-31 Thread Kirill Elagin
On Sat, May 31, 2014 at 12:19 PM, Michael Raskin 7c6f4...@mail.ru wrote: Carousels with blurbs are often annoying. You start to read and it switches. Just hover it with your mouse and [if it is implemented properly] it won't switch. I've seen carousels that keep switching if you hover them

Re: [Nix-dev] Using Nixpkgs outside of NixOS

2014-06-03 Thread Kirill Elagin
Obviously systemd would then have to not do things that udev etc are already doing... Just running services, opening sockets, handling cgroups... I doubt systemd can do this. First of all, with the new kernel cgroups interface only PID 1 can manage cgroups (on the kernel level). Then, to

Re: [Nix-dev] Using Nixpkgs outside of NixOS

2014-06-04 Thread Kirill Elagin
http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/ http://cgit.freedesktop.org/systemd/systemd/tree/src/core/main.c#n1469 -- Кирилл Елагин On Wed, Jun 4, 2014 at 1:21 AM, Wout Mertens wout.mert...@gmail.com wrote: On Tue, Jun 3, 2014 at 8:30 PM, Kirill Elagin kirela

Re: [Nix-dev] string vs path hell

2014-06-09 Thread Kirill Elagin
Yeah. nix-repl lib.splitString / (toString ./some/vaild/path) [ tmp some vaild path ] -- Кирилл Елагин On Mon, Jun 9, 2014 at 5:13 PM, Luca Bruno lethalma...@gmail.com wrote: On 09/06/2014 15:01, Sergey Mironov wrote: 2014-06-09 16:34 GMT+04:00 Luca Bruno lethalma...@gmail.com: On

Re: [Nix-dev] Fonts

2014-06-10 Thread Kirill Elagin
Why would anyone ever want to add a font to `sytemPackages`? So, the proper way to install a font globally is to add it to `fonts.fonts`. It should also be possible to install fonts as normal packages into your user environment. If something is wrong, run `fc-cache -v` and look for the dir you

Re: [Nix-dev] string vs path hell

2014-06-10 Thread Kirill Elagin
let lib = (import nixpkgs {}).lib; exe = { foo = /some/path/to/foo; bar = /other/path/to/bar; }; in { contents = map (v : let takeFileName = p : let fl = lib.splitString / p; in lib.last fl; fn =

Re: [Nix-dev] string vs path hell

2014-06-10 Thread Kirill Elagin
/nn00kn1fa0154qa1szszijw825cha8ps-busybox-1.22.1/foo/bar ] nix-repl lib.splitString / /nix/store/nn00kn1fa0154qa1szszijw825cha8ps-busybox-1.22.1/foo/bar [ nix store nn00kn1fa0154qa1szszijw825cha8ps-busybox-1.22.1 foo bar ] ~ Total weirdness. -- Кирилл Елагин On Tue, Jun 10, 2014 at 12:58 PM, Kirill

  1   2   3   >