summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfiles/.bin/home-reconfigure4
-rwxr-xr-xfiles/.bin/system-reconfigure4
-rwxr-xr-xfiles/.config/guix/channels.scm24
-rw-r--r--guix/jd/desktops/base.scm79
-rw-r--r--guix/jd/home/services/desktop.scm21
5 files changed, 59 insertions, 73 deletions
diff --git a/files/.bin/home-reconfigure b/files/.bin/home-reconfigure
index 4d16cc0..f55b896 100755
--- a/files/.bin/home-reconfigure
+++ b/files/.bin/home-reconfigure
@@ -2,8 +2,8 @@
2 2
3if [ -n "$1" ]; then 3if [ -n "$1" ]; then
4 guix home -L $1 reconfigure \ 4 guix home -L $1 reconfigure \
5 -e '((@@ (jd utils) current-home))' 5 -e '((@ (jd utils) current-home))'
6else 6else
7 guix home reconfigure \ 7 guix home reconfigure \
8 -e '((@@ (jd utils) current-home))' 8 -e '((@ (jd utils) current-home))'
9fi; 9fi;
diff --git a/files/.bin/system-reconfigure b/files/.bin/system-reconfigure
index dae18f6..e76ba27 100755
--- a/files/.bin/system-reconfigure
+++ b/files/.bin/system-reconfigure
@@ -2,9 +2,9 @@
2 2
3if [ -n "$1" ]; then 3if [ -n "$1" ]; then
4 sudo -E guix system -L $1 reconfigure \ 4 sudo -E guix system -L $1 reconfigure \
5 -e '((@@ (jd utils) current-operating-system))' 5 -e '((@ (jd utils) current-operating-system))'
6else 6else
7 sudo -E guix system reconfigure \ 7 sudo -E guix system reconfigure \
8 -e '((@@ (jd utils) current-operating-system))' 8 -e '((@ (jd utils) current-operating-system))'
9fi; 9fi;
10 10
diff --git a/files/.config/guix/channels.scm b/files/.config/guix/channels.scm
index 13bee44..cb25ece 100755
--- a/files/.config/guix/channels.scm
+++ b/files/.config/guix/channels.scm
@@ -1,19 +1,5 @@
1(cons* (channel 1(cons* (channel
2 (name 'rustup) 2 (name 'jdlugosz)
3 (url "https://github.com/declantsien/guix-rustup") 3 (branch "main")
4 (introduction 4 (url "https://github.com/jdlugosz963/dotfiles"))
5 (make-channel-introduction 5 %default-channels)
6 "325d3e2859d482c16da21eb07f2c6ff9c6c72a80"
7 (openpgp-fingerprint
8 "F695 F39E C625 E081 33B5 759F 0FC6 8703 75EF E2F5"))))
9
10 (channel
11 (name 'nonguix)
12 (url "https://gitlab.com/nonguix/nonguix")
13 ;; Enable signature verification:
14 (introduction
15 (make-channel-introduction
16 "897c1a470da759236cc11798f4e0a5f7d4d59fbc"
17 (openpgp-fingerprint
18 "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
19 %default-channels)
diff --git a/guix/jd/desktops/base.scm b/guix/jd/desktops/base.scm
index 079d57e..2cd98fd 100644
--- a/guix/jd/desktops/base.scm
+++ b/guix/jd/desktops/base.scm
@@ -22,7 +22,7 @@
22 22
23(use-service-modules cups desktop networking ssh xorg 23(use-service-modules cups desktop networking ssh xorg
24 docker virtualization pm sound dbus 24 docker virtualization pm sound dbus
25 nix sddm) 25 nix sddm guix)
26 26
27(define-public %jd-base-home-services 27(define-public %jd-base-home-services
28 (list 28 (list
@@ -119,37 +119,18 @@
119 119
120(define-public %jd-base-services 120(define-public %jd-base-services
121 (cons* 121 (cons*
122 (service openssh-service-type) 122 (service guix-home-service-type
123 `(("jakub" ,(home-environment
124 (services %jd-base-home-services)))))
123 125
124 ;; (set-xorg-configuration 126 (service openssh-service-type)
125 ;; (xorg-configuration ;for Xorg
126 ;; (keyboard-layout (keyboard-layout "pl"))))
127 ;; (service greetd-service-type
128 ;; (greetd-configuration
129 ;; ;; We need to give the greeter user these permissions, otherwise
130 ;; ;; Sway will crash on launch.
131 ;; (greeter-supplementary-groups (list "video" "input"))
132 ;; (terminals
133 ;; (list (greetd-terminal-configuration
134 ;; (terminal-vt "1")
135 ;; (terminal-switch #t))
136 ;; (greetd-terminal-configuration
137 ;; (terminal-vt "2"))
138 ;; (greetd-terminal-configuration
139 ;; (terminal-vt "3"))
140 ;; (greetd-terminal-configuration
141 ;; (terminal-vt "4"))
142 ;; (greetd-terminal-configuration
143 ;; (terminal-vt "5"))
144 ;; (greetd-terminal-configuration
145 ;; (terminal-vt "6"))))))
146 127
147 (service console-font-service-type 128 (service console-font-service-type
148 (map (lambda (tty) 129 (map (lambda (tty)
149 (cons tty (file-append 130 (cons tty (file-append
150 font-terminus 131 font-terminus
151 "/share/consolefonts/ter-122n.psf.gz"))) 132 "/share/consolefonts/ter-122n.psf.gz")))
152 '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) 133 '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6")))
153 134
154 (service screen-locker-service-type 135 (service screen-locker-service-type
155 (screen-locker-configuration 136 (screen-locker-configuration
@@ -202,26 +183,26 @@
202 183
203 ;; %desktop-services 184 ;; %desktop-services
204 (modify-services %desktop-services 185 (modify-services %desktop-services
205 (guix-service-type config => (guix-configuration 186 (guix-service-type config => (guix-configuration
206 (inherit config) 187 (inherit config)
207 (substitute-urls 188 (substitute-urls
208 (append (list "https://substitutes.nonguix.org") 189 (append (list "https://substitutes.nonguix.org")
209 %default-substitute-urls)) 190 %default-substitute-urls))
210 (authorized-keys 191 (authorized-keys
211 (append (list (plain-file "non-guix.pub" 192 (append (list (plain-file "non-guix.pub"
212 "(public-key (ecc (curve Ed25519) (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))")) 193 "(public-key (ecc (curve Ed25519) (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))"))
213 %default-authorized-guix-keys)))) 194 %default-authorized-guix-keys))))
214 (delete network-manager-service-type) 195 (delete network-manager-service-type)
215 ;; (delete mingetty-service-type) 196 ;; (delete mingetty-service-type)
216 (delete console-font-service-type) 197 (delete console-font-service-type)
217 198
218 (delete pulseaudio-service-type) 199 (delete pulseaudio-service-type)
219 (delete alsa-service-type) 200 (delete alsa-service-type)
220 (delete (if (string-prefix? "x86_64" 201 (delete (if (string-prefix? "x86_64"
221 (or (%current-target-system) 202 (or (%current-target-system)
222 (%current-system))) 203 (%current-system)))
223 gdm-service-type 204 gdm-service-type
224 sddm-service-type))))) 205 sddm-service-type)))))
225 206
226;; Odin is a base for my operating systems 207;; Odin is a base for my operating systems
227(define-public odin-free 208(define-public odin-free
diff --git a/guix/jd/home/services/desktop.scm b/guix/jd/home/services/desktop.scm
index 32c8059..d5aa414 100644
--- a/guix/jd/home/services/desktop.scm
+++ b/guix/jd/home/services/desktop.scm
@@ -13,6 +13,7 @@
13 #:use-module (gnu home services sound) 13 #:use-module (gnu home services sound)
14 #:use-module (gnu home services xdg) 14 #:use-module (gnu home services xdg)
15 #:use-module (gnu home services gnupg) 15 #:use-module (gnu home services gnupg)
16 #:use-module (gnu home services dotfiles)
16 #:use-module (guix gexp) 17 #:use-module (guix gexp)
17 18
18 #:use-module (jd packages fonts)) 19 #:use-module (jd packages fonts))
@@ -33,6 +34,9 @@
33 "wlsunset" 34 "wlsunset"
34 "grimshot" 35 "grimshot"
35 "swappy" 36 "swappy"
37
38 "htop"
39 "distrobox"
36 40
37 "udiskie" 41 "udiskie"
38 ;; rest 42 ;; rest
@@ -121,7 +125,7 @@
121 `(("GTK_THEME" . "Adwaita:dark") 125 `(("GTK_THEME" . "Adwaita:dark")
122 ("VISUAL" . "emacsclient") 126 ("VISUAL" . "emacsclient")
123 ("EDITOR" . "emacsclient") 127 ("EDITOR" . "emacsclient")
124 ("PATH" . "$HOME/.bin:$HOME/.npm-global/bin:$PATH") 128 ("PATH" . "$HOME/.bin:$HOME/.local/bin:$HOME/.npm-global/bin:$PATH")
125 ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share") 129 ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share")
126 ("SBCL_HOME" . "/run/current-system/profile/lib/sbcl/") 130 ("SBCL_HOME" . "/run/current-system/profile/lib/sbcl/")
127 131
@@ -161,6 +165,19 @@
161 (default-cache-ttl-ssh 28800) 165 (default-cache-ttl-ssh 28800)
162 (max-cache-ttl-ssh 28800))) 166 (max-cache-ttl-ssh 28800)))
163 167
168(define (desktop-gpg-agent-service config)
169 (home-gpg-agent-configuration
170 (pinentry-program
171 (file-append pinentry-gnome3 "/bin/pinentry-gnome3"))
172 (ssh-support? #t)
173 (default-cache-ttl 28800)
174 (max-cache-ttl 28800)
175 (default-cache-ttl-ssh 28800)
176 (max-cache-ttl-ssh 28800)))
177
178(define (desktop-dotfiles-service config)
179 (home-dotfiles-configuration
180 (directories '("./files"))))
164 181
165(define-public home-desktop-service-type 182(define-public home-desktop-service-type
166 (service-type (name 'home-desktop) 183 (service-type (name 'home-desktop)
@@ -174,6 +191,8 @@
174 desktop-xdg-mime-applications-service) 191 desktop-xdg-mime-applications-service)
175 (service-extension home-gpg-agent-service-type 192 (service-extension home-gpg-agent-service-type
176 desktop-gpg-agent-service) 193 desktop-gpg-agent-service)
194 (service-extension home-dotfiles-service-type
195 desktop-dotfiles-service)
177 )) 196 ))
178 (default-value #f) 197 (default-value #f)
179 (description "Runs desktop services."))) 198 (description "Runs desktop services.")))