;; 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)(gnusystemnss)(guixstore))(use-service-modulesdesktoppmxorg)(use-package-modulescertsmategnome)(operating-system(host-name"antelope")(timezone"Europe/Paris")(locale"sv_SE.utf8");; Assuming /dev/sda is the target hard disk, and "my-root"
;; is the label of the target root file system.
(bootloader(bootloader-configuration(bootloadergrub-bootloader)(target"/dev/sda")(menu-entries(menu-entry(label"Ubuntu 16.04")(linux"/boot/vmlinuz-4.4.0-128-generic")(linux-arguments'("root=/dev/sda5"))(initrd"/boot/initrd.img-4.4.0-128-generic")))))(file-systems(cons(file-system(device(file-system-label"my-root"))(mount-point"/")(type"ext4"))%base-file-systems))(users(cons(user-account(name"swedebugia")(comment"Alice's brother")(group"users")(supplementary-groups'("wheel""netdev""audio""video"))(home-directory"/home/swedebugia"))%base-user-accounts));; This is where we specify system-wide packages.
(packages(cons*nss-certsmatemate-applets;for HTTPS access
gvfs;for user mounts
%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*(slim-configuration(auto-login?#t)(default-user"swedebugia")(auto-login-session"xfdesktop"))(guix-configuration; #:authorize-keys (cons "/home/swedebugia/berlin.guixsd.org.pub"
(substitute-urls(cons"https://berlin.guixsd.org"%default-substitute-urls)));; Is this correct?
; ;; Should I use parenteses instead of "#:"?
; (cpu-scaling-govenor-on-ac (list "conservative"))
; (cpu-scaling-govenor-on-bat (list "conservative"))))
(xfce-desktop-service)%desktop-services));; Allow resolution of '.local' host names with mDNS.
The guix-service-type service needs to be modified because it is alreadyin %desktop-services, and you can't have it twice.
Toggle quote (2 lines)> ; ;; Should I use parenteses instead of "#:"?
Things ending with '-configuration' are usually macros that can be usedto instantiate the corresponding records. They take arguments like'(field value)'. '#:' is used when passing arguments to normalfunctions. This is complex, but you can usually know what things expect by lookingat the examples in the documentation. If you have similar issues, please email email@example.com instead. Good luck, and don't hesitate to ask! :-)Clément
Hi On June 18, 2018 10:45:42 PM GMT+02:00, "Clément Lassieur" <firstname.lastname@example.org> wrote:
Toggle quote (5 lines)>>The guix-service-type service needs to be modified because it is>already>in %desktop-services, and you can't have it twice.
Got it! Now I understand the problem.
Toggle quote (7 lines)>> ; ;; Should I use parenteses instead of "#:"?>>Things ending with '-configuration' are usually macros that can be used>to instantiate the corresponding records. They take arguments like>'(field value)'. '#:' is used when passing arguments to normal>functions.
This I did not fully understand, will read up on macros in the guile manual and ask on help-guix or IRC if needed.
Toggle quote (3 lines)>This is complex, but you can usually know what things expect by looking>at the examples in the documentation.
I tried. Will try harder and propose changes with more examples and clarifications.
Toggle quote (3 lines)>>If you have similar issues, please email email@example.com instead.
Toggle quote (2 lines)>Good luck, and don't hesitate to ask! :-)
Big thanks for taking the time to investigate this. 😀 -- Cheers Swedebugia