diff options
| -rw-r--r-- | disposable/home.scm | 80 | ||||
| -rw-r--r-- | files/scripts/disposable-firefox | 2 |
2 files changed, 81 insertions, 1 deletions
diff --git a/disposable/home.scm b/disposable/home.scm new file mode 100644 index 0000000..f202306 --- /dev/null +++ b/disposable/home.scm @@ -0,0 +1,80 @@ +(define-module (corpo home) + #:use-module (gnu) + #:use-module (gnu packages gnupg) + #:use-module (gnu services) + #:use-module (gnu home) + #:use-module (gnu home services) + #:use-module (gnu home services pm) + #:use-module (gnu home services sound) + #:use-module (gnu home services shells) + #:use-module (gnu home services desktop) + #:use-module (gnu home services gnupg) + #:use-module (gnu home services xdg) + #:use-module (guix gexp) + #:export (corpo-home-environment)) + + (use-package-modules compression gnome gnome-xyz video fonts freedesktop + linux package-management pulseaudio + terminals xdisorg xorg glib wm messaging) + + (define corpo-home-environment + (home-environment + (services + (list + (simple-service 'profile-env-vars-service + home-environment-variables-service-type + '(;; Sort dot files first in ls + ("LC_COLLATE" . "C") + + ;; vim instead of nano + ("VISUAL" . "vim") + ("EDITOR" . "vim") + + ;; Wayland + ("XDG_CURRENT_DESKTOP" . "sway") + ("XDG_SESSION_TYPE" . "wayland") + ("RTC_USE_PIPEWIRE" . "true") + ("SDL_VIDEODRIVER" . "wayland") + ("MOZ_ENABLE_WAYLAND" . "1") + ("CLUTTER_BACKEND" . "wayland") + ("ELM_ENGINE" . "wayland_egl") + ("ECORE_EVAS_ENGINE" . "wayland-egl") + ("QT_QPA_PLATFORM" . "wayland-egl") + + ;; JAVA + ("_JAVA_AWT_WM_NONREPARENTING" . #t) + + ;; env-vars for Flatpak visibility + ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"))) + + + (service home-bash-service-type + (home-bash-configuration + (bash-profile (list (local-file "./files/scripts/sway-login"))))) + + + (simple-service 'xdg-user-directories-config-service + home-xdg-user-directories-service-type + (home-xdg-user-directories-configuration + (download "$HOME/Downloads"))) + + (service home-xdg-configuration-files-service-type + `(("sway/config" ,(local-file "./files/misc-config/sway-config")))) + + (service home-dbus-service-type) + (service home-pipewire-service-type))) + + (packages (list xorg-server-xwayland + sway swayidle swaylock fuzzel foot + grimshot wl-clipboard network-manager-applet + + ;; XDG + (list glib "bin") + xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-wlr + xdg-utils xdg-dbus-proxy shared-mime-info + + ;; Audio + alsa-utils pavucontrol + + ;; General + zip unzip)))) diff --git a/files/scripts/disposable-firefox b/files/scripts/disposable-firefox index 7932522..fe726c0 100644 --- a/files/scripts/disposable-firefox +++ b/files/scripts/disposable-firefox @@ -3,4 +3,4 @@ CONFIG=$BUILDDIR/disposable/firefox-dsp.scm SCRIPT=$(guix system vm -L ${BUILDDIR} ${CONFIG}) trap 'kill 0' EXIT -$SCRIPT -m 2048 -smp 2 -vga qxl -device virtio-serial-pci -spice port=5930,disable-ticketing=on -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -device virtio-sound-pci,audiodev=my_audiodev -audiodev spice,id=my_audiodev & remote-viewer spice://localhost:5930 +$SCRIPT -m 2048 -smp 2 -vga qxl -device virtio-serial-pci -spice port=5930,disable-ticketing=on -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -device virtio-sound-pci,audiodev=my_audiodev -audiodev spice,id=my_audiodev -device nec-usb-xhci,id=usb -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2 -chardev spicevmc,name=usbredir,id=usbredirchardev3 -device usb-redir,chardev=usbredirchardev3,id=usbredirdev3 & remote-viewer spice://localhost:5930 |
