Re: [Nix-dev] nixos-rebuild without Internet

2017-06-24 Thread Danylo Hlynskyi
In general, no, there isn't "partial" rebuild, because Nix itself doesn't support "partial" builds (and NixOS is just another derivation) There are workarounds, however: - don't setup network via NixOS modules, do it with direct imperative commands - often some commands are hidden. For example,

Re: [Nix-dev] Hydra and security updates

2017-06-03 Thread Danylo Hlynskyi
So, the assumption is: "security updates hardly should break stuff, so we can apply them without tests" And desire is: "don't publish untested changes to channel" This clearly leads to necessity of two channels, just as described in

[Nix-dev] hydra problems

2017-05-30 Thread Danylo Hlynskyi
1. https://hydra.nixos.org seems to have problems with HTTPS: in my Firefox. 2. no build results can be downloaded ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-16 Thread Danylo Hlynskyi
You can get some inspiration from NixOps libvirtd backend. Also, I think little changes to NixOps will allow to start/stop non-NixOS images too. Though I've run into issues with network of libvirtd machines (DHCP problems)... 2017-05-15 20:26 GMT+03:00 Justin Humm : >

Re: [Nix-dev] Nixos wiki project

2017-05-16 Thread Danylo Hlynskyi
People also can subscribe to wiki changes using https://github.com/nixos-users/wiki/wiki.atom RSS feed 2017-05-10 9:56 GMT+03:00 Mic92 : > As the official wiki is now finally part of the history: > https://nixos.org/nixos/wiki.html, > we have started our own community wiki:

Re: [Nix-dev] why has each revision / generation not a own configuration.nix

2017-05-12 Thread Danylo Hlynskyi
Anotther solution shown in https://mailman.science.uu.nl/pipermail/nix-dev/2017-April/023403.html which has an advantage of copying related modules (assuming they belong to same folder as configuration.nix) 2017-05-13 6:28 GMT+03:00 Stefan Huchler : > Tomasz Czyż

Re: [Nix-dev] NixOps prefer send from local.

2017-04-28 Thread Danylo Hlynskyi
did you consider https://nixos.org/nixops/manual/#opt-deployment.hasFastConnection ? 2017-04-28 23:12 GMT+03:00 Kevin Cox : > Hi all. > > I am using NixOps to configure a machine on the local network, > unfortunately my uplink to the internet isn't great but the network

Re: [Nix-dev] Failure to boot after hibernate

2017-04-24 Thread Danylo Hlynskyi
Probably too late, but can you boot with hibernate=no kernel parameter? In general I found this[1] article great on debugging suspend/hibernate issues on Nixos (which I had twice). [1] https://wiki.ubuntu.com/DebuggingKernelSuspend 2017-04-24 2:20 GMT+03:00 Bas van Dijk :

Re: [Nix-dev] Presenting nix-index: a file-not-found utility

2017-04-22 Thread Danylo Hlynskyi
Great! A question: what does it mean when expression is in round parents? (wineUnstable.out)2,141 r /nix/store/ cl7b6kw7y8cqkpy4pnwwq4iqmaiw52d0-xextproto-7.3.0/include/ X11/extensions/secur.h 2017-04-21 13:36 GMT+03:00 Benno Fünfstück

[Nix-dev] Postgresql, rsyslog and systemd journal

2017-04-19 Thread Danylo Hlynskyi
Hi. I want to enable syslog log destination in Postgresql. Existing postgresql module hardcodes log_destination to 'stderr', so I use # alter system set log_destination = 'syslog' in psql session. The problem is, logs still are routed to systemd journal, not to configured `rsyslog`. As far

Re: [Nix-dev] The Church of Suckless NixOS is looking for followers

2017-04-08 Thread Danylo Hlynskyi
I'm interested for this project to succeed, in case it will be NixOS extension like nixsap[1], and not a fork like triton[2] or microgram[3]. Currently NixOS is very customizable: - module system - disabling modules [4] - nixpkgs overlays Because of these ways, it is possible to belong to The

Re: [Nix-dev] Use PHP FPM with 2 PHP versions simultaneously

2017-04-06 Thread Danylo Hlynskyi
Apart from container solution, there are no easy ways to do this. 1. You can patch nixpkgs and add option `phpPackage` per-pool, that overrides global `phpPackage` 2. You can use `lib.mkForce` like here: systemd.services.phpfpm-your-pool-name.serviceConfig = lib.mkForce { Slice =

Re: [Nix-dev] nixops: how to deploy containers with specified IP addresses

2017-04-03 Thread Danylo Hlynskyi
You may be interested in https://github.com/NixOS/nixpkgs/issues/18355#issuecomment-288903363 But perhaps the easiest option would be to generate container .conf file via `environment.etc."containers/***.conf"`, if you control host. 2017-04-03 21:57 GMT+03:00 Bas van Dijk :

Re: [Nix-dev] updating my mesos cluster to 17.03

2017-03-31 Thread Danylo Hlynskyi
Rolled back to 16.09, because Gnome3+gdb is unusable in 17.03 (system inresonsible, lots of errors in logs) Probably https://hydra.nixos.org/build/51025002, but not sure. disappointed 2017-03-31 16:39 GMT+03:00 Azul : > > minor changes related to my own setup but looking

Re: [Nix-dev] Declarative containers are not updated after creation

2017-03-31 Thread Danylo Hlynskyi
You have to restart container for changes to apply. Also, check second part of http://lists.science.uu.nl/pipermail/nix-dev/2017-March/023069.html Answering your question: the cause is because of an error in switch-to-configuration.pl script 2017-03-31 0:35 GMT+03:00 Guido Witmond

Re: [Nix-dev] Typing nix − funding campaign

2017-03-29 Thread Danylo Hlynskyi
That looks like a feature of gradual typing: unless you exlicitly specify type annotations, it can infer type, be it ?, ? -> ? or more complicated. But I'm too interested on how to specify type for `if` without introducing local lambda (e.g., will there be special syntax for this). 2017-03-29

Re: [Nix-dev] Fwd: nixos-container networking

2017-03-15 Thread Danylo Hlynskyi
> > Date: 2017-03-14 18:12 GMT+00:00 > Subject: Re: [Nix-dev] nixos-container networking > To: Danylo Hlynskyi <abcz2.upr...@gmail.com> > > > Hey Danylo, > > yup, I hit 13 char limit and because I was removing - I thought it's that. > > I also had the issue with

Re: [Nix-dev] nixos-container networking

2017-03-15 Thread Danylo Hlynskyi
r (break abstraction). 2017-03-14 16:48 GMT+02:00 Thomas Hunger <tehun...@gmail.com>: > Would it be possible to add an assert if there are any restrictions on the > naming? I don't know enough about this to be of much help though. > > On 14 March 2017 at 06:01, Danylo Hlynskyi <ab

Re: [Nix-dev] nixos-container networking

2017-03-14 Thread Danylo Hlynskyi
Strange, I have lot's of containers with "-" and experience no problems. But maybe you've exceeded by accident limit 13 symbols per container name? Also, last time I tried "veth" networking, I was struggling from https://github.com/NixOS/nixpkgs/issues/16330. My container experience was awful

Re: [Nix-dev] importing nixpkgs from derivation dumps large path

2017-03-02 Thread Danylo Hlynskyi
as a workaround you can use fetchFromGitHub or fetchTarball "https://github.com/NixOS/nixpkgs/archive/${commit}.tar.gz; 2017-03-02 9:01 GMT+02:00 Ganesh Sittampalam : > Hi, > > I'm trying to maintain a set of development environments using > nix-shell. For each environment, I

Re: [Nix-dev] newbie question nix private package

2017-02-23 Thread Danylo Hlynskyi
self = { tango = callPackage ./development/libraries/tango {}; pytango = pythonPackages.pytango {}; }; Key insight here is: pythonPackages.pytango is a derivation, not a function. 2017-02-23 15:49 GMT+02:00 Sébastien Petitdemange < sebastien.petitdema...@esrf.fr>: > Hello,

Re: [Nix-dev] How to ensure that a directory exists via configuration.nix

2017-02-12 Thread Danylo Hlynskyi
There exists also a systemd.tmpfiles.rules option. (which doesn't trigger on system activation, howewer, only on boot) I had problems with creating folders in activation scripts on mounted disks, can't say any concrete for now, just experience. 2017-02-10 18:14 GMT+02:00 Mark Gardner

Re: [Nix-dev] Is it possible to limit nix access to sudoers and/or a group?

2017-01-20 Thread Danylo Hlynskyi
gt; On 17-01-20 10:59am, Danylo Hlynskyi wrote: > > Nix design doesn't support quotas on filled store per-user, and let's not > > forget #8. > > https://github.com/NixOS/nixpkgs/pull/8 ? > > That looks unrelated. > > -- > Proudly written in Mutt with Vim on NixOS. >

Re: [Nix-dev] Is it possible to limit nix access to sudoers and/or a group?

2017-01-20 Thread Danylo Hlynskyi
Nix design doesn't support quotas on filled store per-user, and let's not forget #8. 2017-01-20 5:36 GMT+02:00 Tomasz Czyż : > It's probably against nix design but let's try. > > Just an idea (haven't tried yet). Install nix as NIXUSER (without the > deamon, just nix to

Re: [Nix-dev] Various NetworkManager (and KDE) problems

2013-08-06 Thread Danylo Hlynskyi
Though, there is a workaround (thanks to Arch users!): # export $(dbus-launch) I don't know why, but it solves problems with NetworkManagement applet and ocular (yes, ocular cannot open documents without this hack). How can I add this command at system startup or maybe it is a

Re: [Nix-dev] Various NetworkManager (and KDE) problems

2013-08-06 Thread Danylo Hlynskyi
starts fine for me on xfce and I know people tried and succeeded without DE. You could experiment what really makes it crash (maybe using kde?) 2. We have kde applet? I'd suggest using networkmanagerapplet (gtk one) On Tue, Aug 6, 2013 at 10:56 PM, Danylo Hlynskyi abcz2.upr...@gmail.com