diff options
| author | c0co.channel <c0co.channel@braincrime.com> | 2025-09-10 18:14:22 +0100 |
|---|---|---|
| committer | c0co.channel <c0co.channel@braincrime.com> | 2025-09-10 18:14:22 +0100 |
| commit | b58749efa6889c66016e73d6bbb7c239a991fb38 (patch) | |
| tree | 94436cd9b947856bcc7b18f9533511660bf99dc2 /dom0/home-laptop.scm | |
| parent | 763668339c9c2b5c677ccbc0674c1777258681c8 (diff) | |
| parent | cd080424127bb8e91ba4df7f36aa7b541d35752b (diff) | |
Merge remote-tracking branch 'origin/corpo-nonefi'
Diffstat (limited to 'dom0/home-laptop.scm')
| -rw-r--r-- | dom0/home-laptop.scm | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/dom0/home-laptop.scm b/dom0/home-laptop.scm new file mode 100644 index 0000000..f1146b7 --- /dev/null +++ b/dom0/home-laptop.scm @@ -0,0 +1,89 @@ +(define-module (dom0 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 (dom0-home-environment)) + + (use-package-modules compression gnome gnome-xyz video fonts freedesktop + linux package-management pulseaudio ssh + terminals xdisorg xorg glib virtualization + wm messaging) + + (define dom0-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") + (plain-file "bash-profile" "flatpak -u remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"))) + (bashrc (list (local-file "files/scripts/gpg-agent-tty"))))) + + (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-gpg-agent-service-type + (home-gpg-agent-configuration + (pinentry-program + (file-append pinentry "/bin/pinentry")) + (ssh-support? #t))) + + (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-desktop-portal xdg-desktop-portal-gtk + xdg-desktop-portal-wlr xdg-utils xdg-dbus-proxy shared-mime-info + + ;; Flatpak and XDG + flatpak (list glib "bin") ; flatpak dependency + xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-wlr + xdg-utils xdg-dbus-proxy shared-mime-info + + ;; Audio + alsa-utils pavucontrol + + ;; General + openssh zip unzip)))) |
