all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help with `guix system reconfigure`
@ 2019-10-11 20:43 Brian Leung
  2019-10-14 19:57 ` Tonton
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Leung @ 2019-10-11 20:43 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Hi Guix,

I've never used the reconfigure command before. When I run `sudo -E guix
system reconfigure` with the attached config.scm, I get the following error:

> The following derivation will be built:
> /gnu/store/02jkf23yrc29hwj6q0d4daad2ylshq0d-grub.cfg.drv
> building /gnu/store/02jkf23yrc29hwj6q0d4daad2ylshq0d-grub.cfg.drv...
> /gnu/store/74qnv9mg4jgdnqxzyzdjyyjnjrb3vg4c-system
> /gnu/store/wp6r2mz7rrmn1ifpkiwvch66385sil5m-grub.cfg
>
> activating system...
> making '/gnu/store/74qnv9mg4jgdnqxzyzdjyyjnjrb3vg4c-system' the current
system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/aiy5h6bkp02w7cwx27i45bmc5vgh114f-etc...
> guix system: error: rename-file: Is a directory

I'd appreciate some help.

Thanks,
Brian

[-- Attachment #2: config.scm --]
[-- Type: text/x-scheme, Size: 3225 bytes --]

(use-modules
 (gnu)
 (gnu system nss)
 (gnu system mapped-devices)
 (gnu packages cups)
 (gnu services docker)
 (gnu packages emacs-xyz)
 (gnu packages lisp))

(use-service-modules cups
                     desktop)
(use-package-modules certs
                     gnome)

;; ;; Allow members of the "video" group to change the screen brightness.
;; (define %backlight-udev-rule
;;   (udev-rule
;;    "90-backlight.rules"
;;    (string-append
;;     "ACTION==\"add\", SUBSYSTEM==\"backlight\", "
;;     "RUN+=\"/run/current-system/profile/bin/chgrp video /sys/class/backlight/%k/brightness\""
;;     "\n"
;;     "ACTION==\"add\", SUBSYSTEM==\"backlight\", "
;;     "RUN+=\"/run/current-system/profile/bin/chmod g+w /sys/class/backlight/%k/brightness\"")))

;; (define %my/services
;;   (modify-services
;;    %desktop-services
;;    (udev-service-type config =>
;;                       (udev-configuration
;;                        (inherit config)
;;                        (rules (append (udev-configuration-rules config)
;;                                       (list
;;                                        %backlight-udev-rule)))))))

(operating-system
 (host-name "antelope")
 (timezone "America/Los_Angeles")
 (locale "en_US.utf8")

 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (target "/dev/sda")))

 ;; Specify a mapped device for the encrypted root partition.
 ;; The UUID is that returned by 'cryptsetup luksUUID'.
 ;; (mapped-devices
 ;;  (list (mapped-device
 ;;         (source (uuid "12345678-1234-1234-1234-123456789abc"))
 ;;         (target "my-root")
 ;;         (type luks-device-mapping))))

 (file-systems (cons (file-system
                      (device (file-system-label "my-root"))
                      (mount-point "/")
                      (type "ext4"))
                     %base-file-systems))

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

 ;; This is where we specify system-wide packages.
 (packages (cons* nss-certs            ;for HTTPS access
                  gvfs                 ;for user mounts
                  stumpwm
                  emacs-exwm
                  %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
 ;; NetworkManager, and more.
 (services (cons*
            (service cups-service-type
                     (cups-configuration
                      (web-interface? #t)
                      (extensions
                       (list cups-filters hplip-minimal))))
            (service xfce-desktop-service-type)
            (service docker-service-type)
            %desktop-services
            ;; %my/services
            ))

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help with `guix system reconfigure`
  2019-10-11 20:43 Help with `guix system reconfigure` Brian Leung
@ 2019-10-14 19:57 ` Tonton
  0 siblings, 0 replies; 2+ messages in thread
From: Tonton @ 2019-10-14 19:57 UTC (permalink / raw)
  To: help-guix

Hi,

I built a VM from your config. It boots allright, I saw some errors about
files in /etc/ but couldn't catch what they were. I also haven't figured out
how to get at logs of a running VM to check.

Maybe try guix pull followed by guix system build YOUR-CONFIG-FILE.scm
without sudo, I mean as your regular user. It might give you more of an error
message.

maybe.

On Fri, 11 Oct 2019 13:43:57 -0700
Brian Leung <bkleung89@gmail.com> wrote:

> Hi Guix,
> 
> I've never used the reconfigure command before. When I run `sudo -E guix
> system reconfigure` with the attached config.scm, I get the following error:
> 
> > The following derivation will be built:
> > /gnu/store/02jkf23yrc29hwj6q0d4daad2ylshq0d-grub.cfg.drv
> > building /gnu/store/02jkf23yrc29hwj6q0d4daad2ylshq0d-grub.cfg.drv...
> > /gnu/store/74qnv9mg4jgdnqxzyzdjyyjnjrb3vg4c-system
> > /gnu/store/wp6r2mz7rrmn1ifpkiwvch66385sil5m-grub.cfg
> >
> > activating system...
> > making '/gnu/store/74qnv9mg4jgdnqxzyzdjyyjnjrb3vg4c-system' the current  
> system...
> > setting up setuid programs in '/run/setuid-programs'...
> > populating /etc from /gnu/store/aiy5h6bkp02w7cwx27i45bmc5vgh114f-etc...
> > guix system: error: rename-file: Is a directory  
> 
> I'd appreciate some help.
> 
> Thanks,
> Brian



-- 
    :)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-14 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 20:43 Help with `guix system reconfigure` Brian Leung
2019-10-14 19:57 ` Tonton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.