[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Defining user services in Guix.
From: |
Mathieu Othacehe |
Subject: |
Defining user services in Guix. |
Date: |
Sat, 22 Apr 2017 18:50:27 +0200 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
Hi Guix,
I just a wrote a small service for redshift¹. Redshift is a program
adjusting color temperature of the screen according to surroundings.
This program needs to communicate to X, so DISPLAY and XAUTHORITY must
be set correctly.
The only way I found to make my service work is something very hacky:
--8<---------------cut here---------------start------------->8---
(start #~(make-forkexec-constructor
#$redshift-command
#:user "mathieu"
#:group "users"
#:environment-variables
'("DISPLAY=:0"
"XAUTHORITY=/home/mathieu/.Xauthority")))
--8<---------------cut here---------------end--------------->8---
Is there a better way to define this kind of "user" service in Guix ?
Thanks,
Mathieu
¹: http://jonls.dk/redshift/
- Defining user services in Guix.,
Mathieu Othacehe <=
- Re: Defining user services in Guix., Danny Milosavljevic, 2017/04/22
- Re: Defining user services in Guix., Ludovic Courtès, 2017/04/22
- Re: Defining user services in Guix., Mathieu Othacehe, 2017/04/23
- Re: Defining user services in Guix., Mekeor Melire, 2017/04/24
- Re: Defining user services in Guix., Ricardo Wurmus, 2017/04/25
- Re: Defining user services in Guix., Ludovic Courtès, 2017/04/27
- Re: Defining user services in Guix., Mathieu Othacehe, 2017/04/28
Re: Defining user services in Guix., Carlo Zancanaro, 2017/04/22