Compare commits

...

6 Commits

Author SHA1 Message Date
Hilton Chain
af7bf64a8c
rosenthal: noctalia-shell: Install under ‘etc/xdg/quickshell’.
* modules/rosenthal/packages/wm.scm (noctalia-shell) [arguments]
<#:install-plan>: Install under etc/xdg/quickshell.
<#:phases>: Adjust accordingly.
2026-02-06 19:27:10 +08:00
Hilton Chain
2468773dd2
rosenthal: Avoid referencing packages by specifications. 2026-02-06 19:26:55 +08:00
Hilton Chain
6949df2e5b
examples: niri: Adjust Shepherd launching. 2026-02-06 14:38:59 +08:00
Hilton Chain
452e9d7854
examples: emacs: Change configuration file names. 2026-02-06 14:38:59 +08:00
Hilton Chain
64525e12cd
examples: emacs: Import ‘(gnu)’ module. 2026-02-06 14:35:33 +08:00
Hilton Chain
c1b50aa743
examples: emacs: Set up emacs-macrostep-geiser. 2026-02-06 14:35:31 +08:00
10 changed files with 59 additions and 36 deletions

View File

@ -84,6 +84,17 @@
:bind :bind
("C-c e" . macrostep-expand)) ("C-c e" . macrostep-expand))
;;guix:emacs-macrostep-geiser
(use-package macrostep-geiser
:after (geiser-mode)
:hook
(geiser-mode . macrostep-geiser-setup))
(use-package macrostep-geiser
:after (geiser-repl)
:hook
(geiser-repl-mode . macrostep-geiser-setup))
;;guix:emacs-puni ;;guix:emacs-puni
(use-package puni (use-package puni
:hook :hook

View File

@ -25,10 +25,10 @@
;; Workaround to use fish as login shell. ;; Workaround to use fish as login shell.
(shell-file-name "/bin/sh")) (shell-file-name "/bin/sh"))
(load-file (locate-user-emacs-file "fonts.el")) (load-file (locate-user-emacs-file "init-fonts.el"))
(load-file (locate-user-emacs-file "interface.el")) (load-file (locate-user-emacs-file "init-interface.el"))
(load-file (locate-user-emacs-file "editing.el")) (load-file (locate-user-emacs-file "init-editing.el"))
(load-file (locate-user-emacs-file "miscellaneous.el")) (load-file (locate-user-emacs-file "init-miscellaneous.el"))
;;; ;;;
@ -39,6 +39,7 @@
(setopt initial-scratch-message (setopt initial-scratch-message
";;; Type your Guile program here and evaluate it.\n\n") ";;; Type your Guile program here and evaluate it.\n\n")
(scheme-mode) (scheme-mode)
(geiser-repl-import-module "(gnu)")
(geiser-repl-import-module "(nonguix)") (geiser-repl-import-module "(nonguix)")
(geiser-repl-import-module "(rosenthal)") (geiser-repl-import-module "(rosenthal)")
(delete-window) (delete-window)

View File

@ -631,7 +631,7 @@ binds {
// Start user Shepherd // Start user Shepherd
spawn-at-startup "sh" "-c" "pgrep --uid $USER shepherd > /dev/null || shepherd" spawn-at-startup "shepherd"
overview { overview {
backdrop-color "#D2DEE9" backdrop-color "#D2DEE9"

View File

@ -48,7 +48,7 @@
(arguments (arguments
(list (list
#:install-plan #:install-plan
#~'(("." "share/noctalia-shell")) #~'(("." "etc/xdg/quickshell/noctalia-shell"))
#:imported-modules #:imported-modules
`((guix build qt-utils) `((guix build qt-utils)
,@%copy-build-system-modules) ,@%copy-build-system-modules)
@ -71,7 +71,7 @@
(lambda () (lambda ()
(format #t "~ (format #t "~
#!~a #!~a
exec ~a --path ~a/share/noctalia-shell \"$@\"~%" exec ~a --config ~a/etc/xdg/quickshell/noctalia-shell \"$@\"~%"
(search-input-file inputs "bin/sh") (search-input-file inputs "bin/sh")
(search-input-file inputs "bin/quickshell") (search-input-file inputs "bin/quickshell")
#$output))) #$output)))

View File

@ -9,6 +9,7 @@
#:use-module (gnu services base) #:use-module (gnu services base)
#:use-module (gnu packages admin)
#:use-module (gnu packages bash) #:use-module (gnu packages bash)
#:use-module (rosenthal packages admin) #:use-module (rosenthal packages admin)
#:export (greetd-tuigreet-session)) #:export (greetd-tuigreet-session))
@ -18,7 +19,7 @@
greetd-tuigreet-session? greetd-tuigreet-session?
this-greetd-tuigreet-session this-greetd-tuigreet-session
(tuigreet greetd-tuigreet-session-tuigreet (tuigreet greetd-tuigreet-session-tuigreet
(default (spec->pkg "tuigreet"))) (default tuigreet))
(args greetd-tuigreet-session-args (args greetd-tuigreet-session-args
(default '("--issue" (default '("--issue"
"--time" "--time"

View File

@ -30,6 +30,14 @@
#:use-module (gnu home services shepherd) #:use-module (gnu home services shepherd)
#:use-module (gnu home services sound) #:use-module (gnu home services sound)
#:use-module (gnu packages fcitx5)
#:use-module (gnu packages fonts)
#:use-module (gnu packages gnome)
#:use-module (gnu packages linux)
#:use-module (gnu packages networking)
#:use-module (gnu packages qt)
#:use-module (gnu packages wm)
#:use-module (gnu packages xorg)
#:use-module (rosenthal packages wm) #:use-module (rosenthal packages wm)
#:use-module (rosenthal packages xorg) #:use-module (rosenthal packages xorg)
@ -75,7 +83,7 @@
(define-configuration/no-serialization home-blueman-applet-configuration (define-configuration/no-serialization home-blueman-applet-configuration
(blueman (blueman
(file-like (spec->pkg+out "blueman")) (file-like blueman)
"")) ""))
(define %home-blueman-applet-shepherd (define %home-blueman-applet-shepherd
@ -111,10 +119,10 @@
(define-configuration/no-serialization home-fcitx5-configuration (define-configuration/no-serialization home-fcitx5-configuration
(fcitx5 (fcitx5
(file-like (spec->pkg "fcitx5")) (file-like fcitx5)
"") "")
(utilities (utilities
(list-of-file-likes (specs->pkgs "fcitx5-configtool")) (list-of-file-likes (list fcitx5-configtool))
"") "")
(themes (themes
(list-of-file-likes '()) (list-of-file-likes '())
@ -153,10 +161,10 @@
themes themes
input-method-editors input-method-editors
(if gtk-im-module? (if gtk-im-module?
(list (spec->pkg "fcitx5-gtk")) (list fcitx5-gtk)
'()) '())
(if qt-im-module? (if qt-im-module?
(list (spec->pkg "fcitx5-qt")) (list fcitx5-qt)
'())))) '()))))
(define %home-fcitx5-shepherd (define %home-fcitx5-shepherd
@ -191,7 +199,7 @@
(define-configuration/no-serialization home-mako-configuration (define-configuration/no-serialization home-mako-configuration
(mako (mako
(file-like (spec->pkg "mako")) (file-like mako)
"") "")
(config (config
maybe-file-like maybe-file-like
@ -234,7 +242,7 @@
(define-configuration/no-serialization home-network-manager-applet-configuration (define-configuration/no-serialization home-network-manager-applet-configuration
(network-manager-applet (network-manager-applet
(file-like (spec->pkg "network-manager-applet")) (file-like network-manager-applet)
"")) ""))
(define %home-network-manager-applet-shepherd (define %home-network-manager-applet-shepherd
@ -346,7 +354,7 @@ compositor.")))
(define-configuration/no-serialization home-swaybg-configuration (define-configuration/no-serialization home-swaybg-configuration
(swaybg (swaybg
(file-like (spec->pkg "swaybg")) (file-like swaybg)
"") "")
(background (background
(file-like (local-file "../examples/wallpaper.jpg")) (file-like (local-file "../examples/wallpaper.jpg"))
@ -406,9 +414,9 @@ compositor.")))
(define %home-theme-profile (define %home-theme-profile
(match-record-lambda <home-theme-configuration> (match-record-lambda <home-theme-configuration>
(packages) (packages)
(append (specs->pkgs "adwaita-icon-theme" (cons* adwaita-icon-theme
"hicolor-icon-theme" hicolor-icon-theme
"qtwayland") qtwayland
packages))) packages)))
(define %home-theme-files (define %home-theme-files
@ -458,7 +466,7 @@ gtk-key-theme-name = ~a~%"
(define-configuration/no-serialization home-waybar-configuration (define-configuration/no-serialization home-waybar-configuration
(waybar (waybar
(file-like (spec->pkg "waybar")) (file-like waybar)
"") "")
(config (config
maybe-file-like maybe-file-like
@ -518,8 +526,8 @@ gtk-key-theme-name = ~a~%"
(define* (build-keyboard-layout file layout #:optional variant #:key model options) (define* (build-keyboard-layout file layout #:optional variant #:key model options)
(define pipe (define pipe
(apply open-pipe* OPEN_READ (apply open-pipe* OPEN_READ
#$(file-append (spec->pkg "console-setup") "/bin/ckbcomp") #$(file-append console-setup)
(string-append "-I" #$(spec->pkg "xkeyboard-config") "/share/X11/xkb") (string-append "-I" #$xkeyboard-config "/share/X11/xkb")
"-rules" "base" "-rules" "base"
`(,@(if model `(,@(if model
'("-model" ,model) '("-model" ,model)
@ -537,7 +545,7 @@ gtk-key-theme-name = ~a~%"
(port-filename (port-filename
(mkstemp "/tmp/console-keymap.XXXXXX"))) (mkstemp "/tmp/console-keymap.XXXXXX")))
(build-keyboard-layout file-name layout variant #:model model #:options options) (build-keyboard-layout file-name layout variant #:model model #:options options)
(invoke "sudo" #$(file-append (spec->pkg "kbd") "/bin/loadkeys") file-name) (invoke "sudo" #$(file-append kbd "/bin/loadkeys") file-name)
(false-if-exception (false-if-exception
(substitute* (substitute*
(in-vicinity (in-vicinity
@ -617,14 +625,14 @@ set-keymap us dvorak -o ctrl:nocaps\n")
(define %rosenthal-skeletons (define %rosenthal-skeletons
`((".config/emacs/init.el" `((".config/emacs/init.el"
,(local-file "../examples/emacs/init.el")) ,(local-file "../examples/emacs/init.el"))
(".config/emacs/fonts.el" (".config/emacs/init-fonts.el"
,(local-file "../examples/emacs/fonts.el")) ,(local-file "../examples/emacs/init-fonts.el"))
(".config/emacs/interface.el" (".config/emacs/init-interface.el"
,(local-file "../examples/emacs/interface.el")) ,(local-file "../examples/emacs/init-interface.el"))
(".config/emacs/editing.el" (".config/emacs/init-editing.el"
,(local-file "../examples/emacs/editing.el")) ,(local-file "../examples/emacs/init-editing.el"))
(".config/emacs/miscellaneous.el" (".config/emacs/init-miscellaneous.el"
,(local-file "../examples/emacs/miscellaneous.el")) ,(local-file "../examples/emacs/init-miscellaneous.el"))
(".config/foot/foot.ini" (".config/foot/foot.ini"
,(plain-file "foot.ini" "font=monospace:size=12\n")) ,(plain-file "foot.ini" "font=monospace:size=12\n"))
@ -675,14 +683,14 @@ configuration {
(using-setuid? #f))) (using-setuid? #f)))
;; Add udev rules for backlight control. ;; Add udev rules for backlight control.
(simple-service 'backlight udev-service-type (specs->pkgs "light")) (simple-service 'backlight udev-service-type (list light))
(modify-services %desktop-services (modify-services %desktop-services
;; Use a font suitable for HiDPI monitors. ;; Use a font suitable for HiDPI monitors.
(console-font-service-type (console-font-service-type
_ => (map (lambda (num) _ => (map (lambda (num)
(cons (string-append "tty" (number->string num)) (cons (string-append "tty" (number->string num))
(file-append (spec->pkg "font-terminus") (file-append font-terminus
"/share/consolefonts/ter-132n"))) "/share/consolefonts/ter-132n")))
(iota 6 1)))))) (iota 6 1))))))

View File

@ -18,6 +18,8 @@
#:use-module (gnu home services shells) #:use-module (gnu home services shells)
#:use-module (gnu packages rust-apps)
#:use-module (gnu packages shellutils)
#:use-module (rosenthal packages rust-apps) #:use-module (rosenthal packages rust-apps)
#:export (home-fish-plugin-atuin-service-type #:export (home-fish-plugin-atuin-service-type
@ -75,7 +77,7 @@
(define-configuration/no-serialization home-direnv-configuration (define-configuration/no-serialization home-direnv-configuration
(direnv (direnv
(file-like (spec->pkg "direnv")) (file-like direnv)
"") "")
(shells (shells
list list
@ -109,7 +111,7 @@
(define-configuration/no-serialization home-zoxide-configuration (define-configuration/no-serialization home-zoxide-configuration
(zoxide (zoxide
(file-like (spec->pkg "zoxide")) (file-like zoxide)
"") "")
(shells (shells
list list