mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-03-05 01:15:14 +00:00
rosenthal: Avoid referencing packages by specifications.
This commit is contained in:
parent
6949df2e5b
commit
2468773dd2
@ -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"
|
||||||
|
|||||||
@ -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,10 +414,10 @@ 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
|
||||||
(match-record-lambda <home-theme-configuration>
|
(match-record-lambda <home-theme-configuration>
|
||||||
@ -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
|
||||||
@ -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))))))
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user