diff options
| author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-10-19 19:24:35 +0200 |
|---|---|---|
| committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-10-19 19:24:35 +0200 |
| commit | c6c985d1188830ac90a546cfa27a77c220c9d096 (patch) | |
| tree | b2aaaebfbcbd4141eb6ca5cf533a7e0db2cbe962 /guix | |
| parent | 2a5d171484392d55f3abfd9e48807edc77c182b0 (diff) | |
| download | dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.tar.gz dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.zip | |
Add stumpwm and change disk config for berserker.
Diffstat (limited to 'guix')
| -rw-r--r-- | guix/jd/desktops/base.scm | 39 | ||||
| -rwxr-xr-x | guix/jd/desktops/berserker.scm | 32 |
2 files changed, 51 insertions, 20 deletions
diff --git a/guix/jd/desktops/base.scm b/guix/jd/desktops/base.scm index 656c622..13bc5af 100644 --- a/guix/jd/desktops/base.scm +++ b/guix/jd/desktops/base.scm | |||
| @@ -15,7 +15,8 @@ | |||
| 15 | #:use-module (nongnu packages linux) | 15 | #:use-module (nongnu packages linux) |
| 16 | #:use-module (nongnu system linux-initrd)) | 16 | #:use-module (nongnu system linux-initrd)) |
| 17 | 17 | ||
| 18 | (use-package-modules wm gnome gnupg networking) | 18 | (use-package-modules wm gnome gnupg networking virtualization |
| 19 | lisp lisp-xyz) | ||
| 19 | (use-service-modules cups desktop networking ssh xorg | 20 | (use-service-modules cups desktop networking ssh xorg |
| 20 | docker virtualization pm sound dbus) | 21 | docker virtualization pm sound dbus) |
| 21 | 22 | ||
| @@ -46,12 +47,13 @@ | |||
| 46 | ("VISUAL" . "emacsclient") | 47 | ("VISUAL" . "emacsclient") |
| 47 | ("EDITOR" . "emacsclient") | 48 | ("EDITOR" . "emacsclient") |
| 48 | ("PATH" . "$HOME/.bin:$HOME/.npm-global/bin:$PATH") | 49 | ("PATH" . "$HOME/.bin:$HOME/.npm-global/bin:$PATH") |
| 49 | ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"))) | 50 | ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share") |
| 51 | ("SBCL_HOME" . "/run/current-system/profile/lib/sbcl/"))) | ||
| 50 | 52 | ||
| 51 | (service home-gpg-agent-service-type | 53 | (service home-gpg-agent-service-type |
| 52 | (home-gpg-agent-configuration | 54 | (home-gpg-agent-configuration |
| 53 | (pinentry-program | 55 | (pinentry-program |
| 54 | (file-append pinentry "/bin/pinentry")) | 56 | (file-append pinentry "/bin/pinentry")) |
| 55 | (ssh-support? #t) | 57 | (ssh-support? #t) |
| 56 | (default-cache-ttl 28800) | 58 | (default-cache-ttl 28800) |
| 57 | (max-cache-ttl 28800) | 59 | (max-cache-ttl 28800) |
| @@ -83,6 +85,26 @@ | |||
| 83 | ))) | 85 | ))) |
| 84 | %base-user-accounts)) | 86 | %base-user-accounts)) |
| 85 | 87 | ||
| 88 | (define-public %stumpwm-packages | ||
| 89 | (list sbcl | ||
| 90 | sbcl-dbus | ||
| 91 | stumpwm+slynk | ||
| 92 | |||
| 93 | sbcl-stumpwm-screenshot | ||
| 94 | sbcl-stumpwm-pamixer | ||
| 95 | sbcl-stumpwm-pass | ||
| 96 | |||
| 97 | sbcl-stumpwm-cpu | ||
| 98 | sbcl-stumpwm-mem | ||
| 99 | sbcl-stumpwm-net | ||
| 100 | sbcl-stumpwm-battery-portable | ||
| 101 | sbcl-stumpwm-stumptray | ||
| 102 | |||
| 103 | sbcl-drakma | ||
| 104 | sbcl-yason | ||
| 105 | |||
| 106 | (list stumpwm "lib"))) | ||
| 107 | |||
| 86 | (define-public %jd-base-packages | 108 | (define-public %jd-base-packages |
| 87 | (append | 109 | (append |
| 88 | (specifications->packages '("emacs" | 110 | (specifications->packages '("emacs" |
| @@ -96,18 +118,25 @@ | |||
| 96 | "intel-vaapi-driver" | 118 | "intel-vaapi-driver" |
| 97 | "libva-utils" ;; vainfo | 119 | "libva-utils" ;; vainfo |
| 98 | "nss-certs")) | 120 | "nss-certs")) |
| 121 | %stumpwm-packages | ||
| 99 | %base-packages)) | 122 | %base-packages)) |
| 100 | 123 | ||
| 124 | |||
| 101 | (define-public %jd-base-services | 125 | (define-public %jd-base-services |
| 102 | (cons* | 126 | (cons* |
| 103 | (service openssh-service-type) | 127 | (service openssh-service-type) |
| 104 | 128 | ||
| 129 | (set-xorg-configuration | ||
| 130 | (xorg-configuration ;for Xorg | ||
| 131 | (keyboard-layout (keyboard-layout "pl")))) | ||
| 132 | |||
| 105 | (service network-manager-service-type | 133 | (service network-manager-service-type |
| 106 | (network-manager-configuration | 134 | (network-manager-configuration |
| 107 | (vpn-plugins (list | 135 | (vpn-plugins (list |
| 108 | network-manager-pptp)))) | 136 | network-manager-pptp)))) |
| 109 | 137 | ||
| 110 | (simple-service 'blueman dbus-root-service-type (list blueman)) | 138 | (simple-service 'dbus-packages dbus-root-service-type (list blueman |
| 139 | virt-manager)) | ||
| 111 | (service bluetooth-service-type | 140 | (service bluetooth-service-type |
| 112 | (bluetooth-configuration | 141 | (bluetooth-configuration |
| 113 | (auto-enable? #t))) | 142 | (auto-enable? #t))) |
| @@ -116,6 +145,7 @@ | |||
| 116 | (service libvirt-service-type | 145 | (service libvirt-service-type |
| 117 | (libvirt-configuration | 146 | (libvirt-configuration |
| 118 | (unix-sock-group "libvirt"))) | 147 | (unix-sock-group "libvirt"))) |
| 148 | (service virtlog-service-type) | ||
| 119 | 149 | ||
| 120 | (service cups-service-type | 150 | (service cups-service-type |
| 121 | (cups-configuration | 151 | (cups-configuration |
| @@ -129,7 +159,6 @@ | |||
| 129 | 159 | ||
| 130 | polkit-network-manager-service | 160 | polkit-network-manager-service |
| 131 | 161 | ||
| 132 | (service lxqt-desktop-service-type) ;; Just in case, if Emacs doesn't want to work. | ||
| 133 | (modify-services %desktop-services | 162 | (modify-services %desktop-services |
| 134 | (delete network-manager-service-type)))) | 163 | (delete network-manager-service-type)))) |
| 135 | 164 | ||
diff --git a/guix/jd/desktops/berserker.scm b/guix/jd/desktops/berserker.scm index 37135dc..ed673db 100755 --- a/guix/jd/desktops/berserker.scm +++ b/guix/jd/desktops/berserker.scm | |||
| @@ -13,25 +13,27 @@ | |||
| 13 | (host-name "berserker") | 13 | (host-name "berserker") |
| 14 | 14 | ||
| 15 | (bootloader (bootloader-configuration | 15 | (bootloader (bootloader-configuration |
| 16 | (bootloader grub-efi-bootloader) | 16 | (bootloader grub-efi-bootloader) |
| 17 | (targets (list "/boot/efi")))) | 17 | (targets (list "/boot/efi")))) |
| 18 | 18 | ||
| 19 | (mapped-devices (list (mapped-device | 19 | (swap-devices (list (swap-space |
| 20 | (source (uuid | 20 | (target (uuid |
| 21 | "ef754148-6f23-4d7e-92b4-7abbfe0ae201")) | 21 | "70ee2477-66ff-4856-aebf-8a77053c4462"))))) |
| 22 | (target "cryptroot") | ||
| 23 | (type luks-device-mapping)))) | ||
| 24 | 22 | ||
| 25 | (file-systems (cons* (file-system | 23 | (file-systems (cons* (file-system |
| 26 | (mount-point "/boot/efi") | 24 | (mount-point "/boot/efi") |
| 27 | (device (uuid "695E-FE22" | 25 | (device (uuid "BE9B-69F0" |
| 28 | 'fat32)) | 26 | 'fat32)) |
| 29 | (type "vfat")) | 27 | (type "vfat")) |
| 28 | |||
| 30 | (file-system | 29 | (file-system |
| 31 | (mount-point "/") | 30 | (mount-point "/") |
| 32 | (device "/dev/mapper/cryptroot") | 31 | (device (uuid |
| 33 | (type "ext4") | 32 | "d8783299-c180-4ca3-9c56-9826797f928d" |
| 34 | (dependencies mapped-devices)) %base-file-systems)))) | 33 | 'ext4)) |
| 34 | (type "ext4")) | ||
| 35 | |||
| 36 | %base-file-systems)))) | ||
| 35 | 37 | ||
| 36 | 38 | ||
| 37 | (if (getenv "JD_HOME") home system) | 39 | (if (getenv "JD_HOME") home system) |
