Re: [Nix-dev] syncthing questions

2015-09-21 Thread Sergey Mironov
OK, I have solved my syncthing-related problems. It turns out that I
misused service.syncthing.dataDir config option. I thought it is
pre-defined data directory to syncronize, but it is configuration-only
directory in reality!

Regards,
Sergey


2015-09-21 22:28 GMT+03:00 Sergey Mironov :
> 2015-09-21 14:39 GMT+03:00 zimbatm :
>> Hi Sergey,
>>
>> Have you setup syncthing using the config.services.syncthing.enable = true
>> in /etc/nixos/configuration.nix ?
>> The service is creating /var/lib/syncthing by default. This is a better
>> place to put the files, home folders should be private.
>>
>> Cheers,
>> z
>>
>> On Mon, 21 Sep 2015 at 12:19 Sergey Mironov  wrote:
>>>
>>> Hi, List! I have two questions regarding Syncthing synchronization
>>> service. They may be not strongly related to Nix but I'd like to ask
>>> here before going to the upstream's forum.
>>>
>>> 1) I've upgraded NixOS installations on both desktop and server
>>> workstations recently. After the upgrade I noticed that syncthing IDs
>>> were changed, so I had to re-setup the connection using Web-GUI. Is it
>>> possible to preserve the IDs ? Or should we think about making this
>>> type of configuration static by providing NixOS wrappers for
>>> 'device'/'folders' options? (I am not sure if it is possible or not)
>>>
>>> 2) I keep my synced data in the /home/syncthing folder and I want it
>>> to be of 'syncthing:users' user/group with 770 permissions. Older
>>> NixOS setup seems to handle it well, but the new one seems to reset
>>> the permissions to 'syncthing:root' 700 every hour. Could it be a
>>> systemd new behavior or it's the syncthing who does this?
>>>
>>> Regards,
>>> Sergey
>>> ___
>>> nix-dev mailing list
>>> nix-dev@lists.science.uu.nl
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
> Zimbatm, I would have faced another kind of problems with disabled
> syncthing :) Yes, I set syncthing.enable to true. Here is my config
>
> { config, pkgs, ... } :
> {
>   services.syncthing.enable = true;
>   services.syncthing.dataDir = "/home/syncthing";
>
>   users.extraUsers = {
>
> syncthing = {
>   group = "users";
>   home = "/home/syncthing";
>   useDefaultShell = true;
> };
>
>   };
> }
>
> I use /home as a storage for two reasons: 1) I run syncthing as a
> separate user, I think its not bad to put it in its own home. 2) /home
> is mounted on separate hard drive partition, and this partition is
> large. / (root) lives in a limited amount of space, so I don't want to
> garbage it with user data.
>
> Regards,
> Sergey
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Tablet stylus stopped working

2015-09-21 Thread Joachim Schiele
*smiles*

On 21.09.2015 20:57, Jeffrey David Johnson wrote:
> Solution in case someone has the same issue in the future: it's nothing
> to do with NixOS. Alexei was correct. Got a new stylus (HP instead of a
> knock-off this time) and it works again.
> Jeff
> 
> On Sun, 13 Sep 2015 18:37:39 -0700
> Jeffrey David Johnson  wrote:
> 
>> Yeah I think you're right. Unfortunately this computer also has issues
>> booting from anything but the internal HDD so that's a lot of work.
>> Will probably just give up on using it for the current round of
>> presentations and figure it out later.
>> Jeff
>>
>> On Mon, 14 Sep 2015 08:59:41 +1000
>> Alexei Robyn  wrote:
>>
>>> There might be, but if you've rebooted into known-working configurations
>>> and it's still not functional, you're probably better off moving
>>> straight on to testing on a different distro and computer to confirm
>>> whether or not it's the stylus.
>>>
>>> - Alexei
>>>
>>> On Mon, Sep 14, 2015, at 08:57 AM, Jeffrey David Johnson wrote:
 My wacom stylus recently stopped working. I wasn't doing anything
 nix-related at the time (just working in Inkscape) and booting into
 older generations doesn't fix it. The eraser tip and side button keep
 working but nothing from the main tip. I can't get it to show up in xev
 or kde_wacom_tabletfinder. Is there anywhere else to look before
 assuming it's a hardware failure? This is the tablet section of my
 configuration.nix:

 # ...
 environment.systemPackages = [
   libwacom
   xf86_input_wacom
 ];
 services = {
   xserver = {
 wacom.enable = true;
 synaptics = {
   enable = true;
   twoFingerScroll = true;
 };
   };
 };
 # ...

 Thanks
 Jeff
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>> ___
>>> nix-dev mailing list
>>> nix-dev@lists.science.uu.nl
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Tablet stylus stopped working

2015-09-21 Thread Jeffrey David Johnson
Solution in case someone has the same issue in the future: it's nothing
to do with NixOS. Alexei was correct. Got a new stylus (HP instead of a
knock-off this time) and it works again.
Jeff

On Sun, 13 Sep 2015 18:37:39 -0700
Jeffrey David Johnson  wrote:

> Yeah I think you're right. Unfortunately this computer also has issues
> booting from anything but the internal HDD so that's a lot of work.
> Will probably just give up on using it for the current round of
> presentations and figure it out later.
> Jeff
> 
> On Mon, 14 Sep 2015 08:59:41 +1000
> Alexei Robyn  wrote:
> 
> > There might be, but if you've rebooted into known-working configurations
> > and it's still not functional, you're probably better off moving
> > straight on to testing on a different distro and computer to confirm
> > whether or not it's the stylus.
> > 
> > - Alexei
> > 
> > On Mon, Sep 14, 2015, at 08:57 AM, Jeffrey David Johnson wrote:
> > > My wacom stylus recently stopped working. I wasn't doing anything
> > > nix-related at the time (just working in Inkscape) and booting into
> > > older generations doesn't fix it. The eraser tip and side button keep
> > > working but nothing from the main tip. I can't get it to show up in xev
> > > or kde_wacom_tabletfinder. Is there anywhere else to look before
> > > assuming it's a hardware failure? This is the tablet section of my
> > > configuration.nix:
> > > 
> > > # ...
> > > environment.systemPackages = [
> > >   libwacom
> > >   xf86_input_wacom
> > > ];
> > > services = {
> > >   xserver = {
> > > wacom.enable = true;
> > > synaptics = {
> > >   enable = true;
> > >   twoFingerScroll = true;
> > > };
> > >   };
> > > };
> > > # ...
> > > 
> > > Thanks
> > > Jeff
> > > ___
> > > nix-dev mailing list
> > > nix-dev@lists.science.uu.nl
> > > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What license does the content of the nixos wiki and the manuals have?

2015-09-21 Thread Joel Moberg
For nix, nixos, nixpkgs and nixops, see source repos and the file COPYING.
I think this license applies if there is no other remark on the manual
page. I can't find any license info at the wiki. And then I think the
'default' license is that the author owns the rights to all material. But
the wiki have many authors..

On Mon, Sep 21, 2015 at 3:19 PM, Matthias Beyer 
wrote:

> Hi,
>
> I cannot find any hints under what license the nixos wiki and the
> manuales on nix, nixos, nixpkgs and nixops are published.
>
> The pages "About Nix wiki" and "Disclaimers" as well as
> "Privacy Policy" on the nixos wiki are non-existent.
>
> So does anyone know something about this topic?
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] What license does the content of the nixos wiki and the manuals have?

2015-09-21 Thread Matthias Beyer
Hi,

I cannot find any hints under what license the nixos wiki and the
manuales on nix, nixos, nixpkgs and nixops are published.

The pages "About Nix wiki" and "Disclaimers" as well as
"Privacy Policy" on the nixos wiki are non-existent.

So does anyone know something about this topic?

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgpzXGDPNbaFw.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] syncthing questions

2015-09-21 Thread zimbatm
Hi Sergey,

Have you setup syncthing using the config.services.syncthing.enable = true
in /etc/nixos/configuration.nix ?
The service is creating /var/lib/syncthing by default. This is a better
place to put the files, home folders should be private.
Cheers,
z
​

On Mon, 21 Sep 2015 at 12:19 Sergey Mironov  wrote:

> Hi, List! I have two questions regarding Syncthing synchronization
> service. They may be not strongly related to Nix but I'd like to ask
> here before going to the upstream's forum.
>
> 1) I've upgraded NixOS installations on both desktop and server
> workstations recently. After the upgrade I noticed that syncthing IDs
> were changed, so I had to re-setup the connection using Web-GUI. Is it
> possible to preserve the IDs ? Or should we think about making this
> type of configuration static by providing NixOS wrappers for
> 'device'/'folders' options? (I am not sure if it is possible or not)
>
> 2) I keep my synced data in the /home/syncthing folder and I want it
> to be of 'syncthing:users' user/group with 770 permissions. Older
> NixOS setup seems to handle it well, but the new one seems to reset
> the permissions to 'syncthing:root' 700 every hour. Could it be a
> systemd new behavior or it's the syncthing who does this?
>
> Regards,
> Sergey
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nixpkgs haskell system got into inconsistent state broken

2015-09-21 Thread Thomas Hunger
It's possible you hit the infamous non-deterministic package hash
generation [1] for which Peter collected data recently [2]. AFAICT the only
solution is to remove and rebuild or refetch all haskell packages.

This bug has high priority for GHC 8 so I hope it'll eventually go away.



[1]
https://ghc.haskell.org/trac/ghc/ticket/4012

[2]
http://lists.science.uu.nl/pipermail/nix-dev/2015-June/017405.html

On 21 September 2015 at 10:41, Miguel Negrão <
miguel.negrao-li...@friendlyvirus.org> wrote:

> Hi
>
> This week I encountered a situation where when I tried to build one of my
> own packages which was working fine before, it would fail claiming that
> every single Haskell package it needed was missing:
>
> http://pastebin.com/agqw9dn2
> http://pastebin.com/Vyqc5U3e
>
> I had not changed anything or installed anything in nix for quite a while,
> the only thing I can think that could have caused this was that my
> filesystem had died (btrfs) and I had to restore from backup the whole of
> /.
> I have not used binary cache to build any of the haskell packages, they
> were
> built from source.
>
> Is it possible that the restore of / via rsync could have caused this ?
>
> In the meantime I had did a rm -r /nix and installed everything again and
> my
> system is working again, exactly as before this issue (I had everything
> specified in my config.nix), which is a testament to how easy it is to
> rebuild a system with nix if you have a declarative description of your
> packages.
>
> Thanks,
> Miguel
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] syncthing questions

2015-09-21 Thread Sergey Mironov
Hi, List! I have two questions regarding Syncthing synchronization
service. They may be not strongly related to Nix but I'd like to ask
here before going to the upstream's forum.

1) I've upgraded NixOS installations on both desktop and server
workstations recently. After the upgrade I noticed that syncthing IDs
were changed, so I had to re-setup the connection using Web-GUI. Is it
possible to preserve the IDs ? Or should we think about making this
type of configuration static by providing NixOS wrappers for
'device'/'folders' options? (I am not sure if it is possible or not)

2) I keep my synced data in the /home/syncthing folder and I want it
to be of 'syncthing:users' user/group with 770 permissions. Older
NixOS setup seems to handle it well, but the new one seems to reset
the permissions to 'syncthing:root' 700 every hour. Could it be a
systemd new behavior or it's the syncthing who does this?

Regards,
Sergey
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Nix logo poll results

2015-09-21 Thread Tim Cuthbertson
Hi all,

Thanks to all who voted on the nix logo poll[0]! The voting has more
or less dropped off after about a week and about 140 responses, so
this seems like a good time to reveal the results.

[0]: 
https://docs.google.com/forms/d/1oMKuPCIz5bmUokrN6mllYpIDH7cmVQTzuZAcUdGH1HM/viewform

Google provides some neat graphs on the responses:

https://docs.google.com/forms/d/1oMKuPCIz5bmUokrN6mllYpIDH7cmVQTzuZAcUdGH1HM/viewanalytics

### Main takeaways:

7% of respondents definitively want to keep the current logo. 32%
don't mind either way, and 52% are keen to adopt one of these new
logos. A further 9% want to change, but not to any of these options.

The favourite logo option presented is clearly the Hexagon outline +
alternating colours. 50% said this was their favourite logo, and 80%
consider it an improvement on the current logo. 9% consider it worse
than the current logo, and the remaining 10% are ambivalent.

The response to the "should we have a gradient version" is mixed. Half
the respondents don't care, while 28% being pro-gradient and 22%
pro-flat. That's a slight lean towards pro-gradient, but could
probably come to an executive decision if anyone wants to make it ;)

There were quite a few comments about the font - if anyone is keen, it
sounds like there's some enthusiasm for changing the font as well. If
we're changing the logo I'm happy to explore new fonts at the same
time, but I'm also happy for someone else to do that - I don't have
such strong opinions on the font.

### Raw responses:

https://docs.google.com/spreadsheets/d/1nevqPzHhGXBAfB_I_4ESRArASPfr-2kYqzAIWz5Av9c/edit?usp=sharing


### Next steps:

So: the question is, what next? Is this enough of a critical mass to
proceed with a logo change? I feel like it is, but I am of course
biased ;). If we want to change the logo, how would we go about it?
Who do we need to get involved to make it happen?

Thanks all,
 - Tim.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] nixpkgs haskell system got into inconsistent state broken

2015-09-21 Thread Miguel Negrão
Hi

This week I encountered a situation where when I tried to build one of my
own packages which was working fine before, it would fail claiming that
every single Haskell package it needed was missing:

http://pastebin.com/agqw9dn2
http://pastebin.com/Vyqc5U3e

I had not changed anything or installed anything in nix for quite a while,
the only thing I can think that could have caused this was that my
filesystem had died (btrfs) and I had to restore from backup the whole of /.
I have not used binary cache to build any of the haskell packages, they were
built from source.

Is it possible that the restore of / via rsync could have caused this ?

In the meantime I had did a rm -r /nix and installed everything again and my
system is working again, exactly as before this issue (I had everything
specified in my config.nix), which is a testament to how easy it is to
rebuild a system with nix if you have a declarative description of your
packages.

Thanks,
Miguel

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Full Stackage Support in Nixpkgs "master"

2015-09-21 Thread Miguel Negrão
Peter Simons  cryp.to> writes:

> to discover the available versions, and feel free to create your own
> personal package set by overriding these default choices to your liking.
> The Nixpkgs Haskell Manual [3] contains plenty of helpful information to
> that end, and I'll also update it soon to reflect the new state of
> affairs.

The Nixpkgs Haskell Manual is a fantastic addition ! Many thanks to whoever
wrote it !

Best,
Miguel




___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] ghc --enable-multi-instance, the end of cabal hell ?

2015-09-21 Thread Miguel Negrão
Hi Peter

>  > Could the infrastructure used for this in ghc help in nixos?
> 
> my understanding is that these patches solve a problem that we don't have in
> Nix. We can build any number of variants of the same library and install
all of
> them next to each other just fine. The --enable-multi-instance feature is
> important mostly for people who want to manage one big (system-wide) registry
> of known packages, but we don't do that in Nix.

Rereading the original link I realize that I misunderstood what they were
proposing, indeed it does not fix the type of issues I'm mentioning. I think
the issue I was thinking of is the "diamond problem" [1]:

package A
 / \   
package C   Package D
|   |
package Ev1 PackageEv2

which can cause errors such as:
Couldn't match expected type `bytestring-0.9.0.4:Data.ByteString.ByteString'
against inferred type `bytestring-0.9.0.1:Data.ByteString.ByteString'

Actually, like it is mentioned in the post, this is solved in nix, because
you can install another version of D which uses Ev1 instead of Ev2. 

best,
Miguel

[1]http://www.well-typed.com/blog/2008/04/the-dreaded-diamond-dependency-problem/

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Can NixOS run against hyper-v?

2015-09-21 Thread Lili Deng (Wicresoft)
Thank you, I got my problem resolved last day from 
https://github.com/NixOS/nixpkgs/issues/9899

From: stewart mackenzie [mailto:setor...@gmail.com]
Sent: Friday, September 18, 2015 9:21 AM
To: Lili Deng (Wicresoft) 
Cc: nix-dev 
Subject: Re: [Nix-dev] Can NixOS run against hyper-v?


I found you need to modify the automatically generated 
hardware-configuration.nix. so I overrode it with my own, eschewing UUIDs in 
favour of /dev/sda2 for example.

It then worked.
On 18 Sep 2015 08:46, "Lili Deng (Wicresoft)" 
mailto:v-l...@microsoft.com>> wrote:
Hi dear,

We are working for Microsoft in Shanghai China, currently wants to have a try 
install nixos on hyper-v.
We installed it by following steps here 
http://nixos.org/nixos/manual/sec-installation.html

After reboot hit below issues, do you know if the NixOS can run against 
hyper-v? Is it the issue related with our configuration?
Appreciate your help in advance.

[cid:image001.png@01D0F1F4.23CA7750]

Thanks,
Lili

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Recall: Can NixOS run against hyper-v?

2015-09-21 Thread Lili Deng (Wicresoft)
Lili Deng (Wicresoft) would like to recall the message, "[Nix-dev] Can NixOS 
run against hyper-v?".
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Can NixOS run against hyper-v?

2015-09-21 Thread Lili Deng (Wicresoft)
Thank you, I got my problem resolved last day from 
http://nixos.org/nixos/download.html.

From: stewart mackenzie [mailto:setor...@gmail.com]
Sent: Friday, September 18, 2015 9:21 AM
To: Lili Deng (Wicresoft) 
Cc: nix-dev 
Subject: Re: [Nix-dev] Can NixOS run against hyper-v?


I found you need to modify the automatically generated 
hardware-configuration.nix. so I overrode it with my own, eschewing UUIDs in 
favour of /dev/sda2 for example.

It then worked.
On 18 Sep 2015 08:46, "Lili Deng (Wicresoft)" 
mailto:v-l...@microsoft.com>> wrote:
Hi dear,

We are working for Microsoft in Shanghai China, currently wants to have a try 
install nixos on hyper-v.
We installed it by following steps here 
http://nixos.org/nixos/manual/sec-installation.html

After reboot hit below issues, do you know if the NixOS can run against 
hyper-v? Is it the issue related with our configuration?
Appreciate your help in advance.

[cid:image001.png@01D0F1F4.23CA7750]

Thanks,
Lili

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev