diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-05-18 01:57:03 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-05-18 01:57:03 -0400 |
| commit | 3d495ba0b5c148b3d1d55cb3ad1004d1bf08841d (patch) | |
| tree | 836dd72a1143d91aac29b0594a04a309496dad00 /home-config | |
| parent | 232a9f91d237df4741078e2cf2322e49fb1ddf06 (diff) | |
many changes, mostly migrations to using shepherd home services
Diffstat (limited to 'home-config')
| -rw-r--r-- | home-config/bashrc | 4 | ||||
| -rw-r--r-- | home-config/home-configuration.scm | 21 | ||||
| -rw-r--r-- | home-config/pipewire.scm | 99 | ||||
| -rw-r--r-- | home-config/sway/config | 8 |
4 files changed, 22 insertions, 110 deletions
diff --git a/home-config/bashrc b/home-config/bashrc index 6d22d87..f52ed48 100644 --- a/home-config/bashrc +++ b/home-config/bashrc | |||
| @@ -41,6 +41,6 @@ alias cat='bat --paging=never' | |||
| 41 | export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:/home/ryan/.local/share/flatpak/exports/share | 41 | export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:/home/ryan/.local/share/flatpak/exports/share |
| 42 | 42 | ||
| 43 | # GPG SETUP FOR SSH | 43 | # GPG SETUP FOR SSH |
| 44 | export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | 44 | #export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) |
| 45 | gpgconf --launch gpg-agent | 45 | #gpgconf --launch gpg-agent |
| 46 | export GPG_TTY=$(tty) | 46 | export GPG_TTY=$(tty) |
diff --git a/home-config/home-configuration.scm b/home-config/home-configuration.scm index 17874d3..64d1236 100644 --- a/home-config/home-configuration.scm +++ b/home-config/home-configuration.scm | |||
| @@ -8,11 +8,15 @@ | |||
| 8 | (gnu packages) | 8 | (gnu packages) |
| 9 | (gnu packages vim) | 9 | (gnu packages vim) |
| 10 | (gnu packages gcc) | 10 | (gnu packages gcc) |
| 11 | (gnu packages gnupg) | ||
| 11 | (gnu services) | 12 | (gnu services) |
| 12 | (guix packages) | 13 | (guix packages) |
| 13 | (guix gexp) | 14 | (guix gexp) |
| 14 | (gnu home services shells) | 15 | (gnu home services shells) |
| 15 | (gnu home services)) | 16 | (gnu home services desktop) |
| 17 | (gnu home services gnupg) | ||
| 18 | (gnu home services) | ||
| 19 | (ryan-services pipewire)) | ||
| 16 | 20 | ||
| 17 | (define my-neovim | 21 | (define my-neovim |
| 18 | (package | 22 | (package |
| @@ -52,7 +56,7 @@ | |||
| 52 | "texlive-amsfonts" | 56 | "texlive-amsfonts" |
| 53 | "texlive-lm" | 57 | "texlive-lm" |
| 54 | "texlive-lm-math" | 58 | "texlive-lm-math" |
| 55 | "texlive-generic-iftex" | 59 | "texlive-iftex" |
| 56 | "texlive-unicode-math" | 60 | "texlive-unicode-math" |
| 57 | "texlive-fontspec" | 61 | "texlive-fontspec" |
| 58 | "texlive-xcolor" | 62 | "texlive-xcolor" |
| @@ -97,6 +101,13 @@ | |||
| 97 | (service home-files-service-type | 101 | (service home-files-service-type |
| 98 | `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim")) | 102 | `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim")) |
| 99 | (".ssh/config" ,(local-file "ssh/config")) | 103 | (".ssh/config" ,(local-file "ssh/config")) |
| 100 | (".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol")) | 104 | ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol")) |
| 101 | (".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf")) | 105 | ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf")) |
| 102 | (".fonts" ,(local-file "fonts" #:recursive? #t)) ))))) | 106 | (".fonts" ,(local-file "fonts" #:recursive? #t)))) |
| 107 | (service home-pipewire-service-type) | ||
| 108 | (service home-dbus-service-type) | ||
| 109 | (service home-gpg-agent-service-type | ||
| 110 | (home-gpg-agent-configuration | ||
| 111 | (pinentry-program | ||
| 112 | (file-append pinentry "/bin/pinentry")) | ||
| 113 | (ssh-support? #t))) ))) | ||
diff --git a/home-config/pipewire.scm b/home-config/pipewire.scm deleted file mode 100644 index 48089ad..0000000 --- a/home-config/pipewire.scm +++ /dev/null | |||
| @@ -1,99 +0,0 @@ | |||
| 1 | (define-module (home-configuration pipewire) | ||
| 2 | #:use-module (gnu packages) | ||
| 3 | #:use-module (gnu packages linux) | ||
| 4 | #:use-module (gnu services) | ||
| 5 | #:use-module (gnu services configuration) | ||
| 6 | #:use-module (gnu home services) | ||
| 7 | #:use-module (gnu home services shepherd) | ||
| 8 | #:use-module (guix gexp)) | ||
| 9 | |||
| 10 | (define (home-pipewire-profile-service config) | ||
| 11 | (map specification->package | ||
| 12 | (list "pipewire" | ||
| 13 | "wireplumber"))) | ||
| 14 | |||
| 15 | (define (home-pipewire-shepherd-service config) | ||
| 16 | (list | ||
| 17 | ;; Pipewire daemon | ||
| 18 | (shepherd-service | ||
| 19 | (requirement '(dbus)) | ||
| 20 | (provision '(pipewire)) | ||
| 21 | (stop #~(make-kill-destructor)) | ||
| 22 | (start #~(make-forkexec-constructor | ||
| 23 | (list #$(file-append pipewire "/bin/pipewire")) | ||
| 24 | #:log-file (string-append | ||
| 25 | (or (getenv "XDG_LOG_HOME") | ||
| 26 | (format #f "~a/.local/var/log" | ||
| 27 | (getenv "HOME"))) | ||
| 28 | "/pipewire.log") | ||
| 29 | #:environment-variables | ||
| 30 | (append (list "DISABLE_RTKIT=0") | ||
| 31 | (default-environment-variables))))) | ||
| 32 | ;; Pipewire-pulse | ||
| 33 | (shepherd-service | ||
| 34 | (requirement '(pipewire)) | ||
| 35 | (provision '(pipewire-pulse)) | ||
| 36 | (stop #~(make-kill-destructor)) | ||
| 37 | (start #~(make-forkexec-constructor | ||
| 38 | (list #$(file-append pipewire "/bin/pipewire-pulse")) | ||
| 39 | #:log-file (string-append | ||
| 40 | (or (getend "XDG_LOG_HOME") | ||
| 41 | (format #f "~a/.local/var/log" | ||
| 42 | (getenv "HOME"))) | ||
| 43 | "/pipewire-pulse.log") | ||
| 44 | #:environment-variables | ||
| 45 | (append (list "DISABLE_RTKIT=0") | ||
| 46 | (default-environment-variables))))) | ||
| 47 | ;; Wireplumber | ||
| 48 | (shepherd-service | ||
| 49 | (requirement '(pipewire)) | ||
| 50 | (provision '(wireplumber)) | ||
| 51 | (stop #~(make-kill-destructor)) | ||
| 52 | (start #~(make-forkexec-constructor | ||
| 53 | (list #$(file-append wireplumber "/bin/wireplumber")) | ||
| 54 | #:log-file (string-append | ||
| 55 | (or (getenv "XDG_LOG_HOME") | ||
| 56 | (format #f "~a/.local/var/log" | ||
| 57 | (getenv "HOME"))) | ||
| 58 | "/wireplumber.log") | ||
| 59 | #:environment-variables | ||
| 60 | (append (list "DISABLE_RTKIT=0") | ||
| 61 | (default-environment-variables))))))) | ||
| 62 | |||
| 63 | (define (home-pipewire-xdg-configuration-service config) | ||
| 64 | `(("alsa/asoundrc" | ||
| 65 | ,(mixed-text-file | ||
| 66 | "asoundrc" | ||
| 67 | #~(string-append | ||
| 68 | "<" | ||
| 69 | #$(file-append | ||
| 70 | pipewire "/share/alsa/alsa.conf.d/50-pipewire.conf") | ||
| 71 | ">\n<" | ||
| 72 | #$(file-append | ||
| 73 | pipewire "/share/alsa/alsa.conf.d/99-pipewire-default.conf") | ||
| 74 | ">/n" | ||
| 75 | " | ||
| 76 | pcm_type.pipewire { | ||
| 77 | lib " #$(file-append pipewire "/lib/alsa-lib/libasound_module_pcm_pipewire.so") | ||
| 78 | " | ||
| 79 | } | ||
| 80 | ctl_type.pipewire { | ||
| 81 | lib " #$(file-append pipewire "/lib/alsa-lib/libasound_module_ctl_pipewire.so") | ||
| 82 | " | ||
| 83 | } | ||
| 84 | "))))) | ||
| 85 | |||
| 86 | (define-public home-pipewire-service-type | ||
| 87 | (service-type (name 'home-pipewire) | ||
| 88 | (extensions | ||
| 89 | (list (service-extension | ||
| 90 | home-profile-service-type | ||
| 91 | home-pipewire-profile-service) | ||
| 92 | (service-extension | ||
| 93 | home-shepherd-service-type | ||
| 94 | home-pipewire-shepherd-service) | ||
| 95 | (service-extension | ||
| 96 | home-xdg-configuration-files-service-type | ||
| 97 | home-pipewire-xdg-configuration-service))) | ||
| 98 | (default-value #f) | ||
| 99 | (description "Configures and runs Pipewire and Wireplumber"))) | ||
diff --git a/home-config/sway/config b/home-config/sway/config index 3c2d0c2..fdc56e0 100644 --- a/home-config/sway/config +++ b/home-config/sway/config | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | exec sh ~/.profile | 24 | exec sh ~/.profile |
| 25 | 25 | ||
| 26 | # Load up the user session dbus | 26 | # Load up the user session dbus |
| 27 | exec dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus | 27 | #exec dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus |
| 28 | 28 | ||
| 29 | # | 29 | # |
| 30 | # Logo key. Use Mod1 for Alt. | 30 | # Logo key. Use Mod1 for Alt. |
| @@ -280,14 +280,14 @@ exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activati | |||
| 280 | # Numlock on startup | 280 | # Numlock on startup |
| 281 | input * xkb_numlock enabled | 281 | input * xkb_numlock enabled |
| 282 | 282 | ||
| 283 | # Bluetooth | ||
| 284 | exec blueman-applet | ||
| 285 | |||
| 283 | # Audio Server | 286 | # Audio Server |
| 284 | #exec pipewire | 287 | #exec pipewire |
| 285 | #exec wireplumber | 288 | #exec wireplumber |
| 286 | #exec pipewire-pulse | 289 | #exec pipewire-pulse |
| 287 | 290 | ||
| 288 | # Bluetooth | ||
| 289 | exec blueman-applet | ||
| 290 | |||
| 291 | # Spotifyd | 291 | # Spotifyd |
| 292 | #exec spotifyd | 292 | #exec spotifyd |
| 293 | 293 | ||
