summaryrefslogtreecommitdiff
path: root/dom0/home.scm
diff options
context:
space:
mode:
authorc0co <c0co.channel@braincrime.com>2025-09-07 01:04:49 +0100
committerc0co <c0co.channel@braincrime.com>2025-09-07 01:04:49 +0100
commit67e8d0fb57b89316e4036035368924f1f0bfbb0a (patch)
tree7479e729b8c8a9f380e0e4315b5c7db5283f962c /dom0/home.scm
parentf28835626ff85371668d1c1a86d74d1550074cdc (diff)
Add home.csm, gpg and sway scripts, wp
Diffstat (limited to 'dom0/home.scm')
-rw-r--r--dom0/home.scm69
1 files changed, 69 insertions, 0 deletions
diff --git a/dom0/home.scm b/dom0/home.scm
new file mode 100644
index 0000000..d41d694
--- /dev/null
+++ b/dom0/home.scm
@@ -0,0 +1,69 @@
+(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))
+
+ (use-package-modules compression gnome fonts freedesktop
+ linux package-management pulseaudio ssh
+ terminals xdisorg xorg glib virtualization
+ wm)
+
+ (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")))
+
+ (service home-bash-service-type
+ (home-bash-configuration
+ (bash-profile (list (local-file "files/scripts/sway-login")))
+ (bashrc (list (local-file "files/scripts/gpg-agent-tty")))))
+
+ (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
+ flatpak (list glib "bin")
+
+ ;; Audio
+ alsa-utils pavucontrol
+
+ ;; General
+ virt-manager openssh zip unzip)))