Re: [Nix-dev] daemon in httpd subservice

2014-07-20 Thread Andreas Herrmann
@Bit Shift: Thanks for your response.

[...] but could you not define a crontab entry that invokes the updater
 [...]


The TTRSS documentation lists a couple of different ways to update the
feeds. A crontab entry is indeed one of the possible options. However, the
documentation lists the daemon as the recommended way of updating the
feeds. And, since we have full control of the NixOS machine, I don't see
why we shouldn't be able to spawn that daemon.

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


Re: [Nix-dev] NixOS Sprint in Ljubljana

2014-07-20 Thread Domen Kožar
A friendly reminder: the deadline for voting for dates of the sprint is
tonight at midnight CET timezone.


On Thu, Jul 17, 2014 at 11:53 AM, Rok Garbas r...@garbas.si wrote:

 Quoting Wout Mertens (2014-07-17 10:51:24)
  Sounds awesome! Don't know if I can make it yet but I'd love to join.
 

 yaay! hope to see you all.


 --
 Rok Garbas - http://www.garbas.si

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


[Nix-dev] cgroups, cpu.rt_runtime_us

2014-07-20 Thread Marc Weber
While trying to run jack1d I noticed that I had to change some limits:


security.pam.loginLimits = [

# jackd:
{ domain = @audio; type = -; item = rtprio; value = 100; }
{ domain = @audio; type = -; item = memlock; value = 25; }
{ domain = @audio; type = -; item = nice; value = -10; }
];

as well as assign cpu.rt_runtime_us (otherwise sched_setscheduler
fails):

  echo 90  /sys/fs/cgroups/cpu,cpuacct/user.slice/cpu.rt_runtime_us

Is there a systemd way to set cpu.rt_runtime_us value or is it most
simple to just create a startup script assigning it?

Eg nixos manual and 
http://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
mention some specific settings such as MemoryLimit, but I didnt't find a
rt_runtime_us setting there.

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


Re: [Nix-dev] Nix users going to Haskell Hackathon in Berlin?

2014-07-20 Thread Daniel Bergey
On 2014-07-15 at 19:34, John Wiegley jo...@newartisans.com wrote:
 How about the one in Boston in two weeks?

I'm planning to be in Boston.

Daniel


pgpvjp2hAKTNe.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] GPG on NixOS

2014-07-20 Thread Daniel Bergey
I use the following two lines in nixos/configuration.nix

services.xserver.startGnuPgAgent = true;
programs.ssh.startAgent = false  # gpg agent takes over this role

This sets the path to pinentry automatically; the definition is in

nixpkgs/nixos/modules/services/x11/display-managers/default.nix

I don't know if there are reasons to prefer a per-profile config rather
than system-wide.

bergey

On 2014-07-18 at 07:42, Lluís Batlle i Rossell vi...@viric.name wrote:
 You have to set gpg config to find the pinentry program. It finds it by 
 absolute
 path iirc, /usr/bin/pinentry.

 A gpg config line can set up its absolute path (~/.gnupg/gpg.conf or so).

 Bye,
 Lluís.

 On Fri, Jul 18, 2014 at 02:36:19AM +0200, Mateusz Kowalczyk wrote:
 Hi,
 
 I've been tryin to sign a git tag with my private key but I am failing:
 
 [shana@lenalee:~/programming/haddock]$ git tag -a -s
 haddock-2.14.3-release -m Haddock version 2.14.3 release
 
 You need a passphrase to unlock the secret key for
 user: Mateusz Kowalczyk (Main key) fuuze...@fuuzetsu.co.uk
 4096-bit RSA key, ID 2ADA9A97, created 2013-01-31
 
 gpg-agent[15413]: can't connect to the PIN entry module: IPC connect
 call failed
 gpg-agent[15413]: command get_passphrase failed: No pinentry
 gpg: problem with the agent: No pinentry
 gpg: skipped 2ADA9A97: Operation cancelled
 gpg: signing failed: Operation cancelled
 error: gpg failed to sign the data
 error: unable to sign the tag
 
 I have used nix-env -i to install ‘pinentry’ but that changed nothing.
 Looking online, I see a person on IRC with the same problem but when
 trying to create a key which makes me think the whole thing is broken.
 
 Is anyone successfully using GPG on NixOS?
 
 A relevant question is why we have gnupg and gnupg1compat: how do they
 differ and why do we need both? I notice that only gnupg1compat provides
 a ‘gpg’ binary needed by git.
 
 -- 
 Mateusz K.
 ___
 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


pgpUgYPLBD5s1.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] Nix users going to Haskell Hackathon in Berlin?

2014-07-20 Thread John Wiegley
 Daniel Bergey ber...@alum.mit.edu writes:

 I'm planning to be in Boston.

Great!  hnix is what I plan on focusing on in Boston, if you want to join me.

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