* Error during CUPS configuration
@ 2017-02-24 23:59 Thomas Sigurdsen
2017-02-25 20:50 ` Alex Kost
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Sigurdsen @ 2017-02-24 23:59 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
I'm trying to setup cups printing on machine running GuixSD. I've attached the
config. The problem I'm having is that guix throws an error on the line saying:
"(cups-service-type", here's the error:
guix system: error: failed to load '/etc/config.scm':
/etc/config.scm:97:19: In procedure #<procedure 54078a0 ()>:
/etc/config.scm:97:19: Wrong type to apply: #<service-type cups 4a88810>
Neither guix/gnu/services/cups.scm or the docs explain this, is
cups-service-type a placeholder or is it just a strange name for a servie?
Any help would be nice.
[-- Attachment #2: config.scm --]
[-- Type: text/x-scheme, Size: 3875 bytes --]
;; TODO: sslh? FPM2! Mail! Dmenu conf; packagemanagement; ssh++ linode;
;; webbrowsing w/profiles; aliases/skel; ctrl keys; program for managing
;; dotfiles? gnu something? some way of making a repo with configfiles and
;; having them symlinked to correct places; SKEL!
(add-to-load-path "/home/thomas/guixsd/modules/tms")
(use-modules (gnu) (gnu system nss) (linux-nonfree) (fpm2)(gnu services cups))
(use-service-modules desktop)
(use-package-modules wicd avahi xorg certs wm zip code wget admin
emacs tmux ssh linux disk file gnuzilla zile version-control maths
guile crypto gnupg password-utils pdf mail rsync suckless linux gnome
lxde video xdisorg enlightenment terminals ssh)
(operating-system
(host-name "hitpoints")
(timezone "Europe/Oslo")
(locale "en_US.UTF-8")
;(kernel linux-nonfree)
(firmware (cons* intel-iwlwifi-firmware-non-free %base-firmware))
(bootloader (grub-configuration (device "/dev/disk/by-id/ata-INTEL_SSDSC2CT240A4_CVKI246301DN240DGN")))
(swap-devices '("/dev/disk/by-label/swap"))
(file-systems (cons* (file-system
(device "rootfs")
(title 'label)
(mount-point "/")
(type "ext4"))
%base-file-systems))
(issue "Remember Mercury.")
(users (list (user-account
(name "thomas")
(comment "This should be interesting...")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"
"lp" "net" "lpadmin"))
(home-directory "/home/thomas"))))
(packages (cons* i3-wm i3status ;desktop environments
;useful tools
xterm avahi zip unzip tar tmux htop tree mosh ;wicd
the-silver-searcher psmisc wget file strace
inotify-tools wgetpaste rsync dmenu openssh xmodmap
setxkbmap
; dev
git gnu-make
; misc tools
units gnuplot xclip xkill
; media video audio music images
aumix mps-youtube mpv alsa-utils
; terminal emulators
xterm st termite terminology
; crypto & security
tomb gnupg pwgen ;;fpm2
nss-certs ;for HTTPS access
xorg-server xf86-input-evdev
xf86-video-fbdev
xf86-video-intel
xf86-input-synaptics
; web browser
icecat
; email
claws-mail
; emacs
emacs emacs-guix emacs-magit-popup emacs-smart-mode-line
emacs-rainbow-delimiters emacs-rainbow-identifiers
emacs-scheme-complete emacs-neotree emacs-ag flycheck
emacs-undo-tree emacs-fill-column-indicator
emacs-scheme-complete emacs-pdf-tools emacs-solarized-theme
geiser guile-2.0
; pdf
zathura zathura-cb zathura-djvu zathura-pdf-poppler
zathura-ps
%base-packages))
;; Use the "desktop" services, which include the X11
;; log-in service, networking with Wicd, and more.
(services (cons* (console-keymap-service "us")
(cups-service-type
(cups-configuration
(web-interface? #t)
(browsing? #t)
(default-paper-size "a4")))
;;(dhcp-client-service)
%desktop-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: Error during CUPS configuration
2017-02-24 23:59 Error during CUPS configuration Thomas Sigurdsen
@ 2017-02-25 20:50 ` Alex Kost
0 siblings, 0 replies; 2+ messages in thread
From: Alex Kost @ 2017-02-25 20:50 UTC (permalink / raw)
To: Thomas Sigurdsen; +Cc: help-guix
Thomas Sigurdsen (2017-02-25 00:59 +0100) wrote:
> I'm trying to setup cups printing on machine running GuixSD. I've attached the
> config. The problem I'm having is that guix throws an error on the line saying:
> "(cups-service-type", here's the error:
>
> guix system: error: failed to load '/etc/config.scm':
> /etc/config.scm:97:19: In procedure #<procedure 54078a0 ()>:
> /etc/config.scm:97:19: Wrong type to apply: #<service-type cups 4a88810>
>
> Neither guix/gnu/services/cups.scm or the docs explain this, is
> cups-service-type a placeholder or is it just a strange name for a servie?
>
> Any help would be nice.
Hello, I don't use cups service, but...
[...]
> (services (cons* (console-keymap-service "us")
> (cups-service-type
> (cups-configuration
> (web-interface? #t)
> (browsing? #t)
> (default-paper-size "a4")))
> ;;(dhcp-client-service)
... the manual says:
(service cups-service-type (cups-configuration ...))
and you do:
(cups-service-type (cups-configuration ...))
--
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-25 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24 23:59 Error during CUPS configuration Thomas Sigurdsen
2017-02-25 20:50 ` Alex Kost
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.