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 | |
| parent | 232a9f91d237df4741078e2cf2322e49fb1ddf06 (diff) | |
many changes, mostly migrations to using shepherd home services
| -rw-r--r-- | home-config/bashrc | 4 | ||||
| -rw-r--r-- | home-config/home-configuration.scm | 21 | ||||
| -rw-r--r-- | home-config/sway/config | 8 | ||||
| -rw-r--r-- | modules/ryan-services/pipewire.scm (renamed from home-config/pipewire.scm) | 6 | ||||
| -rw-r--r-- | system.scm | 12 |
5 files changed, 35 insertions, 16 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/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 | ||
diff --git a/home-config/pipewire.scm b/modules/ryan-services/pipewire.scm index 48089ad..cd2d10e 100644 --- a/home-config/pipewire.scm +++ b/modules/ryan-services/pipewire.scm | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | (define-module (home-configuration pipewire) | 1 | (define-module (ryan-services pipewire) |
| 2 | #:use-module (gnu packages) | 2 | #:use-module (gnu packages) |
| 3 | #:use-module (gnu packages linux) | 3 | #:use-module (gnu packages linux) |
| 4 | #:use-module (gnu services) | 4 | #:use-module (gnu services) |
| @@ -37,7 +37,7 @@ | |||
| 37 | (start #~(make-forkexec-constructor | 37 | (start #~(make-forkexec-constructor |
| 38 | (list #$(file-append pipewire "/bin/pipewire-pulse")) | 38 | (list #$(file-append pipewire "/bin/pipewire-pulse")) |
| 39 | #:log-file (string-append | 39 | #:log-file (string-append |
| 40 | (or (getend "XDG_LOG_HOME") | 40 | (or (getenv "XDG_LOG_HOME") |
| 41 | (format #f "~a/.local/var/log" | 41 | (format #f "~a/.local/var/log" |
| 42 | (getenv "HOME"))) | 42 | (getenv "HOME"))) |
| 43 | "/pipewire-pulse.log") | 43 | "/pipewire-pulse.log") |
| @@ -71,7 +71,7 @@ | |||
| 71 | ">\n<" | 71 | ">\n<" |
| 72 | #$(file-append | 72 | #$(file-append |
| 73 | pipewire "/share/alsa/alsa.conf.d/99-pipewire-default.conf") | 73 | pipewire "/share/alsa/alsa.conf.d/99-pipewire-default.conf") |
| 74 | ">/n" | 74 | ">\n" |
| 75 | " | 75 | " |
| 76 | pcm_type.pipewire { | 76 | pcm_type.pipewire { |
| 77 | lib " #$(file-append pipewire "/lib/alsa-lib/libasound_module_pcm_pipewire.so") | 77 | lib " #$(file-append pipewire "/lib/alsa-lib/libasound_module_pcm_pipewire.so") |
| @@ -19,7 +19,7 @@ | |||
| 19 | (use-modules (gnu packages tls)) | 19 | (use-modules (gnu packages tls)) |
| 20 | (use-modules (srfi srfi-1)) | 20 | (use-modules (srfi srfi-1)) |
| 21 | (use-package-modules security-token) | 21 | (use-package-modules security-token) |
| 22 | (use-service-modules cups desktop networking xorg ssh sound security-token docker) | 22 | (use-service-modules cups desktop networking xorg ssh sound security-token docker virtualization) |
| 23 | 23 | ||
| 24 | ; Define package that installs my root ca public keys | 24 | ; Define package that installs my root ca public keys |
| 25 | (define my-ca-certs | 25 | (define my-ca-certs |
| @@ -94,7 +94,7 @@ | |||
| 94 | (group "users") | 94 | (group "users") |
| 95 | ;(shell (file-append zsh "/bin/zsh")) | 95 | ;(shell (file-append zsh "/bin/zsh")) |
| 96 | (home-directory "/home/ryan") | 96 | (home-directory "/home/ryan") |
| 97 | (supplementary-groups '("wheel" "netdev" "audio" "video" "lp" "plugdev" "docker"))) | 97 | (supplementary-groups '("wheel" "netdev" "audio" "video" "lp" "plugdev" "docker" "libvirt" "kvm"))) |
| 98 | %base-user-accounts)) | 98 | %base-user-accounts)) |
| 99 | 99 | ||
| 100 | ;; Packages installed system-wide. Users can also install packages | 100 | ;; Packages installed system-wide. Users can also install packages |
| @@ -120,11 +120,16 @@ | |||
| 120 | "wl-clipboard" | 120 | "wl-clipboard" |
| 121 | "bluez" | 121 | "bluez" |
| 122 | "blueman" | 122 | "blueman" |
| 123 | "ldacbt" | ||
| 124 | "libfreeaptx" | ||
| 125 | "libfdk" | ||
| 123 | "opendoas" | 126 | "opendoas" |
| 124 | "xdg-desktop-portal-wlr" | 127 | "xdg-desktop-portal-wlr" |
| 125 | "xdg-desktop-portal" | 128 | "xdg-desktop-portal" |
| 126 | "pipewire" | 129 | "pipewire" |
| 127 | "docker" | 130 | "docker" |
| 131 | "libvirt" | ||
| 132 | "virt-manager" | ||
| 128 | "wireplumber" | 133 | "wireplumber" |
| 129 | "zsh")) | 134 | "zsh")) |
| 130 | (list my-ca-certs) | 135 | (list my-ca-certs) |
| @@ -140,6 +145,9 @@ | |||
| 140 | (service openssh-service-type) | 145 | (service openssh-service-type) |
| 141 | (service pcscd-service-type) | 146 | (service pcscd-service-type) |
| 142 | (service docker-service-type) | 147 | (service docker-service-type) |
| 148 | (service libvirt-service-type | ||
| 149 | (libvirt-configuration | ||
| 150 | (unix-sock-group "libvirt"))) | ||
| 143 | (service bluetooth-service-type) | 151 | (service bluetooth-service-type) |
| 144 | (udev-rules-service 'fido2 libfido2 #:groups '("plugdev"))) | 152 | (udev-rules-service 'fido2 libfido2 #:groups '("plugdev"))) |
| 145 | 153 | ||
