diff options
Diffstat (limited to 'guix/jd/desktops')
-rw-r--r-- | guix/jd/desktops/base.scm | 128 | ||||
-rw-r--r-- | guix/jd/desktops/mimir.scm | 6 |
2 files changed, 82 insertions, 52 deletions
diff --git a/guix/jd/desktops/base.scm b/guix/jd/desktops/base.scm index db95939..c613c26 100644 --- a/guix/jd/desktops/base.scm +++ b/guix/jd/desktops/base.scm | |||
@@ -1,6 +1,7 @@ | |||
1 | (define-module (jd desktops base) | 1 | (define-module (jd desktops base) |
2 | #:use-module (jd home services polkit) | 2 | #:use-module (jd home services polkit) |
3 | #:use-module (jd home services desktop) | 3 | #:use-module (jd home services desktop) |
4 | #:use-module (jd home services emacs) | ||
4 | #:use-module (jd services polkit) | 5 | #:use-module (jd services polkit) |
5 | 6 | ||
6 | #:use-module (gnu) | 7 | #:use-module (gnu) |
@@ -9,61 +10,46 @@ | |||
9 | #:use-module (gnu home services desktop) | 10 | #:use-module (gnu home services desktop) |
10 | #:use-module (gnu home services gnupg) | 11 | #:use-module (gnu home services gnupg) |
11 | #:use-module (gnu home services xdg) | 12 | #:use-module (gnu home services xdg) |
13 | #:use-module (gnu home services sound) | ||
12 | #:use-module (gnu services) | 14 | #:use-module (gnu services) |
15 | #:use-module (guix packages) | ||
13 | 16 | ||
14 | #:use-module (nongnu packages linux) | 17 | #:use-module (nongnu packages linux) |
15 | #:use-module (nongnu system linux-initrd)) | 18 | #:use-module (nongnu system linux-initrd)) |
16 | 19 | ||
17 | (use-package-modules wm gnome gnupg networking virtualization | 20 | (use-package-modules wm gnome networking virtualization |
18 | lisp lisp-xyz cups) | 21 | lisp lisp-xyz cups fonts gnupg) |
19 | 22 | ||
20 | (use-service-modules cups desktop networking ssh xorg | 23 | (use-service-modules cups desktop networking ssh xorg |
21 | docker virtualization pm sound dbus | 24 | docker virtualization pm sound dbus |
22 | nix) | 25 | nix sddm) |
23 | 26 | ||
24 | (define-public %jd-base-home-services | 27 | (define-public %jd-base-home-services |
25 | (list | 28 | (list |
26 | (service home-xdg-mime-applications-service-type | 29 | ;; (service home-redshift-service-type |
27 | (home-xdg-mime-applications-configuration | 30 | ;; (home-redshift-configuration |
28 | (default '((inode/directory . emacs-desktop.desktop) | 31 | ;; (location-provider 'manual) |
29 | (application/pdf . emacs-desktop.desktop))) | 32 | ;; (latitude 51.919438) |
30 | (desktop-entries | 33 | ;; (longitude 19.145136))) |
31 | (list (xdg-desktop-entry | 34 | ;; Poland |
32 | (file "emacs-desktop") | ||
33 | (name "Emacs") | ||
34 | (type 'application) | ||
35 | (config | ||
36 | '((exec . "emacsclient -a emacs %u")))))))) | ||
37 | |||
38 | (service home-redshift-service-type | ||
39 | (home-redshift-configuration | ||
40 | (location-provider 'manual) | ||
41 | (latitude 51.919438) | ||
42 | (longitude 19.145136))) ;; Poland | ||
43 | |||
44 | (simple-service 'some-useful-env-vars-service | ||
45 | home-environment-variables-service-type | ||
46 | `(("GTK_THEME" . "Adwaita:dark") | ||
47 | ("VISUAL" . "emacsclient") | ||
48 | ("EDITOR" . "emacsclient") | ||
49 | ("PATH" . "$HOME/.bin:$HOME/.npm-global/bin:$PATH") | ||
50 | ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share") | ||
51 | ("SBCL_HOME" . "/run/current-system/profile/lib/sbcl/"))) | ||
52 | |||
53 | (service home-gpg-agent-service-type | ||
54 | (home-gpg-agent-configuration | ||
55 | (pinentry-program | ||
56 | (file-append pinentry "/bin/pinentry")) | ||
57 | (ssh-support? #t) | ||
58 | (default-cache-ttl 28800) | ||
59 | (max-cache-ttl 28800) | ||
60 | (default-cache-ttl-ssh 28800) | ||
61 | (max-cache-ttl-ssh 28800))) | ||
62 | 35 | ||
63 | (service home-dbus-service-type) | 36 | (service home-dbus-service-type) |
64 | 37 | (service home-emacs-service-type) | |
65 | (service home-desktop-service-type) | 38 | (service home-desktop-service-type) |
66 | (service home-polkit-gnome-service-type))) | 39 | |
40 | ;; Dont know why, but when i put home-gpg-agent-service-type as an | ||
41 | ;; extension in home-desktop-service-type service it doesn't work. | ||
42 | (service home-gpg-agent-service-type | ||
43 | (home-gpg-agent-configuration | ||
44 | (pinentry-program | ||
45 | (file-append pinentry-gnome3 "/bin/pinentry-gnome3")) | ||
46 | (ssh-support? #t) | ||
47 | (default-cache-ttl 28800) | ||
48 | (max-cache-ttl 28800) | ||
49 | (default-cache-ttl-ssh 28800) | ||
50 | (max-cache-ttl-ssh 28800))) | ||
51 | ;; (service home-polkit-gnome-service-type) | ||
52 | )) | ||
67 | 53 | ||
68 | 54 | ||
69 | (define-public %jakub-user | 55 | (define-public %jakub-user |
@@ -82,7 +68,6 @@ | |||
82 | "audio" ;; control audio devices | 68 | "audio" ;; control audio devices |
83 | "video" ;; access to webcam | 69 | "video" ;; access to webcam |
84 | "dialout" ;; access to /dev/ttyUSBX devices | 70 | "dialout" ;; access to /dev/ttyUSBX devices |
85 | "adbusers" | ||
86 | )))) | 71 | )))) |
87 | 72 | ||
88 | (define-public %jd-base-user-accounts | 73 | (define-public %jd-base-user-accounts |
@@ -105,6 +90,8 @@ | |||
105 | sbcl-stumpwm-battery-portable | 90 | sbcl-stumpwm-battery-portable |
106 | sbcl-stumpwm-stumptray | 91 | sbcl-stumpwm-stumptray |
107 | 92 | ||
93 | sbcl-stumpwm-ttf-fonts | ||
94 | |||
108 | sbcl-drakma | 95 | sbcl-drakma |
109 | sbcl-yason | 96 | sbcl-yason |
110 | 97 | ||
@@ -121,21 +108,54 @@ | |||
121 | "xf86-input-libinput" | 108 | "xf86-input-libinput" |
122 | "intel-vaapi-driver" | 109 | "intel-vaapi-driver" |
123 | "libva-utils" ;; vainfo | 110 | "libva-utils" ;; vainfo |
124 | "nss-certs" | 111 | ;; "nss-certs" -- it is in %base-packages from fdfd7667c66cf9ce746330f39bcd366e124460e1 |
125 | "nix"))) | 112 | "nix"))) |
126 | 113 | ||
127 | (define-public %jd-base-packages | 114 | (define-public %jd-base-packages |
128 | (append %root-packages | 115 | (append %root-packages |
129 | %stumpwm-packages | 116 | ;; %stumpwm-packages |
130 | %base-packages)) | 117 | %base-packages)) |
131 | 118 | ||
132 | (define-public %jd-base-services | 119 | (define-public %jd-base-services |
133 | (cons* | 120 | (cons* |
134 | (service openssh-service-type) | 121 | (service openssh-service-type) |
135 | 122 | ||
136 | (set-xorg-configuration | 123 | ;; (set-xorg-configuration |
137 | (xorg-configuration ;for Xorg | 124 | ;; (xorg-configuration ;for Xorg |
138 | (keyboard-layout (keyboard-layout "pl")))) | 125 | ;; (keyboard-layout (keyboard-layout "pl")))) |
126 | ;; (service greetd-service-type | ||
127 | ;; (greetd-configuration | ||
128 | ;; ;; We need to give the greeter user these permissions, otherwise | ||
129 | ;; ;; Sway will crash on launch. | ||
130 | ;; (greeter-supplementary-groups (list "video" "input")) | ||
131 | ;; (terminals | ||
132 | ;; (list (greetd-terminal-configuration | ||
133 | ;; (terminal-vt "1") | ||
134 | ;; (terminal-switch #t)) | ||
135 | ;; (greetd-terminal-configuration | ||
136 | ;; (terminal-vt "2")) | ||
137 | ;; (greetd-terminal-configuration | ||
138 | ;; (terminal-vt "3")) | ||
139 | ;; (greetd-terminal-configuration | ||
140 | ;; (terminal-vt "4")) | ||
141 | ;; (greetd-terminal-configuration | ||
142 | ;; (terminal-vt "5")) | ||
143 | ;; (greetd-terminal-configuration | ||
144 | ;; (terminal-vt "6")))))) | ||
145 | |||
146 | (service console-font-service-type | ||
147 | (map (lambda (tty) | ||
148 | (cons tty (file-append | ||
149 | font-terminus | ||
150 | "/share/consolefonts/ter-112n"))) | ||
151 | '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) | ||
152 | |||
153 | (service screen-locker-service-type | ||
154 | (screen-locker-configuration | ||
155 | (name "swaylock") | ||
156 | (program (file-append swaylock "/bin/swaylock")) | ||
157 | (using-pam? #t) | ||
158 | (using-setuid? #f))) | ||
139 | 159 | ||
140 | (service network-manager-service-type | 160 | (service network-manager-service-type |
141 | (network-manager-configuration | 161 | (network-manager-configuration |
@@ -180,7 +200,17 @@ | |||
180 | (append (list (plain-file "non-guix.pub" | 200 | (append (list (plain-file "non-guix.pub" |
181 | "(public-key (ecc (curve Ed25519) (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))")) | 201 | "(public-key (ecc (curve Ed25519) (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))")) |
182 | %default-authorized-guix-keys)))) | 202 | %default-authorized-guix-keys)))) |
183 | (delete network-manager-service-type)))) | 203 | (delete network-manager-service-type) |
204 | ;; (delete mingetty-service-type) | ||
205 | (delete console-font-service-type) | ||
206 | |||
207 | (delete pulseaudio-service-type) | ||
208 | (delete alsa-service-type) | ||
209 | (delete (if (string-prefix? "x86_64" | ||
210 | (or (%current-target-system) | ||
211 | (%current-system))) | ||
212 | gdm-service-type | ||
213 | sddm-service-type))))) | ||
184 | 214 | ||
185 | ;; Odin is a base for my operating systems | 215 | ;; Odin is a base for my operating systems |
186 | (define-public odin-free | 216 | (define-public odin-free |
diff --git a/guix/jd/desktops/mimir.scm b/guix/jd/desktops/mimir.scm index 742f8c5..7d9823d 100644 --- a/guix/jd/desktops/mimir.scm +++ b/guix/jd/desktops/mimir.scm | |||
@@ -18,17 +18,17 @@ | |||
18 | 18 | ||
19 | (swap-devices (list (swap-space | 19 | (swap-devices (list (swap-space |
20 | (target (uuid | 20 | (target (uuid |
21 | "658793cb-d374-426e-bcd5-00d032b003a0"))))) | 21 | "5402ec34-85b8-4716-9c37-3d38c452ef98"))))) |
22 | 22 | ||
23 | (file-systems (cons* (file-system | 23 | (file-systems (cons* (file-system |
24 | (mount-point "/boot/efi") | 24 | (mount-point "/boot/efi") |
25 | (device (uuid "64D8-134F" | 25 | (device (uuid "1A88-DB36" |
26 | 'fat32)) | 26 | 'fat32)) |
27 | (type "vfat")) | 27 | (type "vfat")) |
28 | (file-system | 28 | (file-system |
29 | (mount-point "/") | 29 | (mount-point "/") |
30 | (device (uuid | 30 | (device (uuid |
31 | "1f9304b0-5623-4248-ab66-534b5ac85876" | 31 | "640c44ea-125f-4410-a8de-3ec0fb3656c4" |
32 | 'ext4)) | 32 | 'ext4)) |
33 | (type "ext4")) %base-file-systems)))) | 33 | (type "ext4")) %base-file-systems)))) |
34 | 34 | ||