added cups and changed avahi config. added .local name res as well

This commit is contained in:
Ryan Schanzenbacher 2023-08-31 10:11:42 -04:00
parent 7cbc4ab3f8
commit d81001a4a1
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E

View file

@ -3,6 +3,7 @@
#:use-module (nongnu packages linux)
#:use-module (gnu system setuid)
#:use-module (gnu packages admin)
#:use-module (gnu packages avahi)
#:use-module (guix packages)
#:use-module (gnu packages shells)
#:use-module (guix build-system trivial)
@ -22,6 +23,7 @@
#:use-module (gnu services nix)
#:use-module (gnu services sound)
#:use-module (gnu services docker)
#:use-module (gnu services avahi)
#:use-module (gnu services virtualization))
; Define package that installs my root ca public keys
@ -119,6 +121,7 @@
;"waybar"
"gnupg"
"light"
"avahi"
"mako"
"grim"
"grimblast"
@ -153,6 +156,14 @@
;; record as a second argument to 'service' below.
(service openssh-service-type)
(service pcscd-service-type)
(service cups-service-type
(cups-configuration
(web-interface? #t)))
;; Avahi is only present for CUPS to support "automagic" printing
(service avahi-service-type
(avahi-configuration
(publish? #f) ;; do not advertise this machine
(publish-workstation? #f))) ;; do not advertise, I want this to be as silent as possible
(service docker-service-type)
(service nix-service-type)
(service libvirt-service-type
@ -186,8 +197,10 @@
(udev-configuration-rules config)))))
(delete pulseaudio-service-type)
(delete gdm-service-type)
(delete avahi-service-type)
;(delete xorg-server-service-type)
(delete alsa-service-type) )))
(name-service-switch %mdns-host-lookup-nss) ;; Enable .local lookup
(setuid-programs
(append (list (file-like->setuid-program
(file-append