Re: guix system reconfigure can not work.

2017-01-14 Thread Ludovic Courtès
tumashu   skribis:

> real0m11.824s
> user0m14.604s
> sys0m0.404s

Not fast but not as bad as you initially reported.  So it seems to me
that the only problem left is the one I mentioned earlier:
.

Ludo’.



Re:Re: guix system reconfigure can not work.

2017-01-14 Thread tumashu
root@tumashu /home/feng/project/guixsd-helper# time guix system reconfigure 
./guixsd-helper.scm -n
The following derivations would be built:
   /gnu/store/m25mz3h7zfp427a5l8h2h5g7rvy61s91-system.drv
   /gnu/store/lwpxcgq4r01vjfd08gd96ljsdf5ksina-grub.cfg.drv
   /gnu/store/xxb2cyhv8j0zcgf5s70j8pf0v64df7yw-elogind-program-wrapper.drv
   /gnu/store/iq9q86rhigdccc1y4r50smll0wly68ys-dbus-system-services.drv
   /gnu/store/jkr6m5k8bzc2dy3b16b40mr40bnm1rja-elogind-wrapper.drv
   /gnu/store/31c2mpbyvlkvcfp1j3drpj2cayxvys7z-groupmod.drv
   /gnu/store/42z16f1s7i85ncdgzxhsircgvjlc7000-su.drv
   /gnu/store/9v3vgfcad7zki615h1dk44jq0aj093yl-userdel.drv
   /gnu/store/a7wi0006l4abhzp2rqq0dwdygpmjqa0r-passwd.drv
   /gnu/store/ag3fa7qjpnxf3wqn243sw0i2b0mwd7wy-groupadd.drv
   /gnu/store/c69bgzbf39xryfr7ialr1p1x8hx0rswa-useradd.drv
   /gnu/store/h52hxfl649yqgwdlx32r4skziqp1ws3a-slock.drv
   /gnu/store/pmidsz4prmp1hgla3xlxh5k9q0l0rllm-groupdel.drv
   /gnu/store/qk83kjvvvpn8c2481jjaxbdjznjxp76x-polkit-1.drv
   /gnu/store/qv4ppq0vbjfx18j3ka55paa3zyvc1bzg-slim.drv
   /gnu/store/qvv8w6kbvk7dy1rz20k32h8cxw256nzj-usermod.drv
   /gnu/store/sn9i1gnqwrx5av9pn5hvxqbkp00dyd9y-sudo.drv
   /gnu/store/v5pyy9bm63vqfamyzmc8b60ys23yq0pc-other.drv
   /gnu/store/xlvww8mfscn6m2mqc8xcmgcki8ln6xac-xlock.drv
   /gnu/store/zqjj1s3bpnj3ifrirr9n6b6v44j4iwxr-login.drv
   /gnu/store/6591iwpq8k0znbp6y2qabklhwkcs9j3c-pam.d.drv
   /gnu/store/vsx316bnp86f5gih8w6xgw2n2slzawn2-dbus-configuration.drv
   /gnu/store/yamb522xilb9w73s5qsyhws37ah70z0l-etc-polkit-1.drv
   /gnu/store/459rdbdah0xjg0v9cqp909hrq1hiss0s-udev.conf.drv
   /gnu/store/4ypbcp9fdrqh374i0havj742vw9albm5-udev-rules.drv
   /gnu/store/r1rv37gsszmw8smdz9rbdvnv10b434nh-shepherd-udev.scm.drv
   /gnu/store/7dq2nrc973rzvla8wgl3dhfcv8mfyy25-xserver.conf.drv
   /gnu/store/xxq7a85gcvv7sayplsxks8s9ps7g9ydz-xorg.conf.d.drv
   /gnu/store/rq7g8rcrlap1iivlgqdlmcz716cl5wl5-xinitrc.drv
   /gnu/store/xbpxfrn3ivh7qn0mwgfq7cagirzpz026-start-xorg.drv
   /gnu/store/c8qxivbagzx4q9vy6b75820p1js7ffdh-slim.cfg.drv
   /gnu/store/jlnzk3aklqgjy4gpqdj874igggmmvh9y-shepherd-xorg-server.scm.drv
   /gnu/store/cqnv80bifqwywpb1wlfpk9ghsz2jzkpn-shepherd-networking.scm.drv
   /gnu/store/i5wxw155vgjp88anx2bw01m617q6mr1d-shepherd.conf.drv
   /gnu/store/rldyywasz0all02299bihlgc2p9w8ly1-activate-service.drv
   /gnu/store/jpfy7rgyh551q13lkk9q7293j47r16qc-activate-service.drv
   /gnu/store/dyxjca8ryrnyy2rdh1dh624nylv96nxn-activate-service.drv
   /gnu/store/8mlhp3h3m086kwarl4w2p846swirh00m-activate.drv
   /gnu/store/ki6y8xhi7aclgryha6xz31bbg5p61v50-boot.drv
   /gnu/store/zbl1bbfnplnlkxr5ckixf3p0zz977z6m-fonts-dir.drv
   /gnu/store/n25k94bgijhi4iv6rkhdvlhxbh0x8j40-gtk-im-modules.drv
   /gnu/store/jgaav8vjlv2sbvhhdy3pzfx95w4nn781-info-dir.drv
   /gnu/store/drfmgbpd33rsapdqvk39scdkj54a9ad5-xdg-mime-database.drv
   /gnu/store/95pyjljcy572542xqfdgi6hazah442h0-gtk-icon-themes.drv
   /gnu/store/1ffq0q9m513pl5w25pjbzc68dgv7g3yr-ca-certificate-bundle.drv
   /gnu/store/7vypc27nsr00phh4iaszqhcvih2xawh4-profile.drv
   /gnu/store/n3p1b7wr5syf1c4wxsjak0a8ns1lzyck-etc.drv
The following files would be downloaded:
   /gnu/store/lylrqspx2sl6jq3dh8hig3ss46a2nqgf-skel
   /gnu/store/dw1px9d01fq3xxd055ayfk45p3xc48xi-shepherd-guix-daemon.scm
   /gnu/store/xw052i9yf6flcwwhp6r0q3lldyqzxhs6-activate-service
   /gnu/store/mhxmr8zc4dajf1wnv6ssb6bf1cyam214-grub-image.png

real0m11.824s
user0m14.604s
sys0m0.404s
root@tumashu /home/feng/project/guixsd-helper# time guix system reconfigure 
./guixsd-helper.scm -n --no-substitutes
The following derivations would be built:
   /gnu/store/m25mz3h7zfp427a5l8h2h5g7rvy61s91-system.drv
   /gnu/store/lwpxcgq4r01vjfd08gd96ljsdf5ksina-grub.cfg.drv
   /gnu/store/xxb2cyhv8j0zcgf5s70j8pf0v64df7yw-elogind-program-wrapper.drv
   /gnu/store/iq9q86rhigdccc1y4r50smll0wly68ys-dbus-system-services.drv
   /gnu/store/jkr6m5k8bzc2dy3b16b40mr40bnm1rja-elogind-wrapper.drv
   /gnu/store/31c2mpbyvlkvcfp1j3drpj2cayxvys7z-groupmod.drv
   /gnu/store/42z16f1s7i85ncdgzxhsircgvjlc7000-su.drv
   /gnu/store/9v3vgfcad7zki615h1dk44jq0aj093yl-userdel.drv
   /gnu/store/a7wi0006l4abhzp2rqq0dwdygpmjqa0r-passwd.drv
   /gnu/store/ag3fa7qjpnxf3wqn243sw0i2b0mwd7wy-groupadd.drv
   /gnu/store/c69bgzbf39xryfr7ialr1p1x8hx0rswa-useradd.drv
   /gnu/store/h52hxfl649yqgwdlx32r4skziqp1ws3a-slock.drv
   /gnu/store/pmidsz4prmp1hgla3xlxh5k9q0l0rllm-groupdel.drv
   /gnu/store/qk83kjvvvpn8c2481jjaxbdjznjxp76x-polkit-1.drv
   /gnu/store/qv4ppq0vbjfx18j3ka55paa3zyvc1bzg-slim.drv
   /gnu/store/qvv8w6kbvk7dy1rz20k32h8cxw256nzj-usermod.drv
   /gnu/store/sn9i1gnqwrx5av9pn5hvxqbkp00dyd9y-sudo.drv
   /gnu/store/v5pyy9bm63vqfamyzmc8b60ys23yq0pc-other.drv
   /gnu/store/xlvww8mfscn6m2mqc8xcmgcki8ln6xac-xlock.drv
   /gnu/store/zqjj1s3bpnj3ifrirr9n6b6v44j4iwxr-login.drv
   /gnu/store/8ifi9gvhwfr0spa6h4wvr7y0jj3ggbvc-Python-3.5.2.tar.xz.drv
   /gnu/store/m64s3wdxcdl4b1pid1lnz5mdmvpr80nh-Python-3.5.2.tar.xz.drv
   

Re: guix system reconfigure can not work.

2017-01-14 Thread Ludovic Courtès
tumashu   skribis:

> I don't think it is a networking issue, when I run:
>
> sudo guix system --verbosity=100 reconfigure ./guixsd-helper.scm

And what does:

  time guix system reconfigure ./guixsd-helper.scm -n

report?  As well as:

  time guix system reconfigure ./guixsd-helper.scm -n --no-substitutes

TIA,
Ludo’.



Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu
Very similar, When I use 'label instead,  guix system reconfigure can work,
but the new system can not boot properly:

-
...
[   13.655133] input: HDA Intel MID Mic as 
/devices/pci:00/:00:1b.0/sound/card0/input18
[   13.655341] input: HDA Intel MID Headphone as 
/devices/pci:00/:00:1b.0/sound/card0/input19
[   13.655687] input: HDA ATI HDMI HDMI/DP,pcm=3 as 
/devices/pci:00/:00:01.0/:01:00.1/sound/card1/input17
[   13.787240] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.787701] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf85f, irq=19
[   13.797651] ath9k :44:00.0 wlo1: renamed from wlan0
[   25.002086] NET: Registered protocol family 4
[   25.050341] NET: Registered protocol family 3
[   25.108242] NET: Registered protocol family 5
[   25.502868] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready

*** do nothing, and i have to reboot 


Before reconfigure, i will be like the below, I don't know the reason and how 
to debug :-(

[   25.002086] NET: Registered protocol family 4
[   25.050341] NET: Registered protocol family 3
[   25.108242] NET: Registered protocol family 5
[   25.502868] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
[] Service term-tty6 has been started.
[] Service term-tty5 has been started.
[] Service term-tty4 has been started.
[] Service term-tty3 has been started.
...
-



>
>This very likely an instance of <https://bugs.gnu.org/23697>.  I’ll see
>if I can fix it soonish if nobody beats me at it.
>
>Thanks for your report!
>
>Ludo’.


Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu
I don't think it is a networking issue, when I run:

sudo guix system --verbosity=100 reconfigure ./guixsd-helper.scm

The output is like:


-acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
... time > 5min



-












At 2017-01-14 01:28:53, "l...@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> 
wrote:
>Hello,
>
>tumashu   skribis:
>
>> "guix system reconfigure"  can't work well in my machine now,   the below is 
>> output:
>> --
>> bash-4.4$ sudo guix system reconfigure guixsd-helper.scm
>> 密码:
>>
>> ** wait long time, about 5 min.**
>
>Ouch.  Could there be a networking issue?
>
>> guix system: loading new services: file-system-/mnt/backup1 
>> file-system-/mnt/backup2...
>> shepherd: Evaluating user expression (register-services (primitive-load 
>> "/gn...") #).
>>
>> looong time and I have to C-c C-c it.*
>>
>> -
>>
>> 2. In the console, the below information is showed:
>> 
>> e2fsck: cannot continue, aborting
>> ...
>> File system check on /dev/sda8 failed
>> 
>
>This very likely an instance of .  I’ll see
>if I can fix it soonish if nobody beats me at it.
>
>Thanks for your report!
>
>Ludo’.


Re: guix system reconfigure can not work.

2017-01-13 Thread Ludovic Courtès
Hello,

tumashu   skribis:

> "guix system reconfigure"  can't work well in my machine now,   the below is 
> output:
> --
> bash-4.4$ sudo guix system reconfigure guixsd-helper.scm
> 密码:
>
> ** wait long time, about 5 min.**

Ouch.  Could there be a networking issue?

> guix system: loading new services: file-system-/mnt/backup1 
> file-system-/mnt/backup2...
> shepherd: Evaluating user expression (register-services (primitive-load 
> "/gn...") #).
>
> looong time and I have to C-c C-c it.*
>
> -
>
> 2. In the console, the below information is showed:
> 
> e2fsck: cannot continue, aborting
> ...
> File system check on /dev/sda8 failed
> 

This very likely an instance of .  I’ll see
if I can fix it soonish if nobody beats me at it.

Thanks for your report!

Ludo’.



Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu










At 2017-01-13 19:06:31, "John Darrington"  wrote: 
>On Fri, Jan 13, 2017 at 04:48:20PM +0800, tumashu wrote: > "guix system 
reconfigure" can't work well in my machine now, the below is output: > 
-- > 
bash-4.4$ sudo guix system reconfigure guixsd-helper.scm > ?? > > ** wait 
long time, about 5 min.** > > substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... > substitute: updating list of substitutes 
from 'https://mirror.hydra.gnu.org'... 100.0% > The following derivation will 
be built: > /gnu/store/plhaxy8p26sxircfmx0vs05a3arva6v9-grub.cfg.drv > 
/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system > 
/gnu/store/4dbisd6wcg494c70yn6y7jrydbw7giph-grub.cfg > 
/gnu/store/cgl8v4q7x8zc09r9d39l7pgd9cx904f8-grub-2.02beta3 > activating 
system... > making '/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system' the 
current system... > setting up setuid programs in '/run/setuid-programs'... > 
populating /etc from /gnu/store/ba01asqiwhmwrq8scisg3dpkpn8yknyp-etc... > 
usermod > usermod > usermod > usermod > 
usermod > usermod > usermod > usermod > 
usermod > guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2... > shepherd: Evaluating user expression 
(register-services (primitive-load "/gn...") #). > > 
looong time and I have to C-c C-c it.* > >Actually 
I had the same problem doing "guix system reconfigure" yesterday. It took well 
over >15 minutes. (nothing needed to be downloaded or compiled - that 15 mins 
seemed to be purely to >build the configuration) - I had never experienced such 
a long wait before. > >It did complete ok eventually though. >

I took long time too... using label only let command works.

 >J' > >-- >Avoid eavesdropping. Send strong encrypted email. >PGP Public key 
 >ID: 1024D/2DE827B3 >fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 
 >2DE8 27B3 >See http://sks-keyservers.net or any PGP keyserver for public key. 
 >>

Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu










At 2017-01-13 17:42:01, "Ricardo Wurmus"  wrote: >tumashu 
你好! > >> guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2... >> shepherd: Evaluating user expression 
(register-services (primitive-load "/gn...") #). >> >> 
looong time and I have to C-c C-c it.* > >Did it 
actually mount the file systems at this point? > >[…] > >> ;; Assuming /dev/sdX 
is the target hard disk, and "my-root" >> ;; is the label of the target root 
file system. >> (bootloader (grub-configuration (device "/dev/sda"))) >> >> 
(swap-devices '("/dev/sda5")) >> >> (file-systems (cons* (file-system >> 
(device "/dev/sda1") >> (title 'device) >> (mount-point "/") >> (type "ext4")) 
>> (file-system >> (device "/dev/sda7") >> (title 'device) >> (mount-point 
"/home") >> (type "ext4")) >> (file-system >> (device "/dev/sda8") >> (title 
'device) >> (mount-point "/mnt/backup1") >> (type "ext4")) >> (file-system >> 
(device "/dev/sda6") >> (title 'device) >> (mount-point "/mnt/backup2") >> 
(type "ext4")) >> %base-file-systems)) > >I suggest not to use these arbitrary 
device nodes. Use labels or uuids, >because unlike device nodes they are 
stable. > >You will also have to make sure that the devices already contain 
file >systems. Guix is not going to format the disks for you.

When I use 'lable to mount instead of 'device, it seem to work again, thanks 
very much!

 > >-- >Ricardo / 吴珂多 > >GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC 
 > >>https://elephly.net >

Re: guix system reconfigure can not work.

2017-01-13 Thread John Darrington
On Fri, Jan 13, 2017 at 04:48:20PM +0800, tumashu wrote:
 "guix system reconfigure"  can't work well in my machine now,   the below 
is output:
 --
 bash-4.4$ sudo guix system reconfigure guixsd-helper.scm
 ??
 
 ** wait long time, about 5 min.**
 
 substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'...
 substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... 100.0%
 The following derivation will be built:
/gnu/store/plhaxy8p26sxircfmx0vs05a3arva6v9-grub.cfg.drv
 /gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system
 /gnu/store/4dbisd6wcg494c70yn6y7jrydbw7giph-grub.cfg
 /gnu/store/cgl8v4q7x8zc09r9d39l7pgd9cx904f8-grub-2.02beta3
 activating system...
 making '/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system' the current 
system...
 setting up setuid programs in '/run/setuid-programs'...
 populating /etc from /gnu/store/ba01asqiwhmwrq8scisg3dpkpn8yknyp-etc...
 usermod
 usermod
 usermod
 usermod
 usermod
 usermod
 usermod
 usermod
 usermod
 guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2...
 shepherd: Evaluating user expression (register-services (primitive-load 
"/gn...") #).
 
 looong time and I have to C-c C-c it.*
 
Actually I had the same problem doing "guix system reconfigure" yesterday.  It 
took well over
15 minutes. (nothing needed to be downloaded or compiled - that 15 mins seemed 
to be purely to
build the configuration) - I had never experienced such a long wait before.

It did complete ok eventually though.

J'

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.



signature.asc
Description: Digital signature


Re: guix system reconfigure can not work.

2017-01-13 Thread Ricardo Wurmus
tumashu 你好!

> guix system: loading new services: file-system-/mnt/backup1 
> file-system-/mnt/backup2...
> shepherd: Evaluating user expression (register-services (primitive-load 
> "/gn...") #).
>
> looong time and I have to C-c C-c it.*

Did it actually mount the file systems at this point?

[…]

>  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
>  ;; is the label of the target root file system.
>  (bootloader (grub-configuration (device "/dev/sda")))
>
>  (swap-devices '("/dev/sda5"))
>
>  (file-systems (cons* (file-system
>(device "/dev/sda1")
>(title 'device)
>(mount-point "/")
>(type "ext4"))
>   (file-system
>(device "/dev/sda7")
>(title 'device)
>(mount-point "/home")
>(type "ext4"))
>   (file-system
>(device "/dev/sda8")
>(title 'device)
>(mount-point "/mnt/backup1")
>(type "ext4"))
>   (file-system
>(device "/dev/sda6")
>(title 'device)
>(mount-point "/mnt/backup2")
>(type "ext4"))
>   %base-file-systems))

I suggest not to use these arbitrary device nodes.  Use labels or uuids,
because unlike device nodes they are stable.

You will also have to make sure that the devices already contain file
systems.  Guix is not going to format the disks for you.

-- 
Ricardo / 吴珂多

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




guix system reconfigure can not work.

2017-01-13 Thread tumashu
"guix system reconfigure"  can't work well in my machine now,   the below is 
output:
--
bash-4.4$ sudo guix system reconfigure guixsd-helper.scm
密码:

** wait long time, about 5 min.**

substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
The following derivation will be built:
   /gnu/store/plhaxy8p26sxircfmx0vs05a3arva6v9-grub.cfg.drv
/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system
/gnu/store/4dbisd6wcg494c70yn6y7jrydbw7giph-grub.cfg
/gnu/store/cgl8v4q7x8zc09r9d39l7pgd9cx904f8-grub-2.02beta3
activating system...
making '/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system' the current 
system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/ba01asqiwhmwrq8scisg3dpkpn8yknyp-etc...
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2...
shepherd: Evaluating user expression (register-services (primitive-load 
"/gn...") #).

looong time and I have to C-c C-c it.*

-

2. In the console, the below information is showed:

e2fsck: cannot continue, aborting
...
File system check on /dev/sda8 failed


3.  This is my guixsd config:
-
bash-4.4$ cat guixsd-helper.scm
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu) (gnu system nss))
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system
 (host-name "tumashu")
 (timezone "Asia/Shanghai")
 (locale "zh_CN.UTF-8")

 ;; Assuming /dev/sdX is the target hard disk, and "my-root"
 ;; is the label of the target root file system.
 (bootloader (grub-configuration (device "/dev/sda")))

 (swap-devices '("/dev/sda5"))

 (file-systems (cons* (file-system
   (device "/dev/sda1")
   (title 'device)
   (mount-point "/")
   (type "ext4"))
  (file-system
   (device "/dev/sda7")
   (title 'device)
   (mount-point "/home")
   (type "ext4"))
  (file-system
   (device "/dev/sda8")
   (title 'device)
   (mount-point "/mnt/backup1")
   (type "ext4"))
  (file-system
   (device "/dev/sda6")
   (title 'device)
   (mount-point "/mnt/backup2")
   (type "ext4"))
  %base-file-systems))

 (users (cons (user-account
   (name "feng")
   (comment "Feng Shu")
   (group "users")
   (supplementary-groups '("wheel" "netdev"
   "audio" "video"))
   (home-directory "/home/feng"))
  %base-user-accounts))

 ;; This is where we specify system-wide packages.
 (packages
  (append (map specification->package
   '("gvfs" "nss-certs"
 "font-wqy-zenhei"
 "font-ubuntu"
 "icecat"))
  %base-packages))

 ;; Add GNOME and/or Xfce---we can choose at the log-in
 ;; screen with F1.  Use the "desktop" services, which
 ;; include the X11 log-in service, networking with Wicd,
 ;; and more.
 (services (cons* (xfce-desktop-service)
  %desktop-services))

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss))
--