mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f0677e5e3 | ||
|
|
0f8ae9ca08 | ||
|
|
8a8142d16c |
No files matched your search
@@ -32,6 +32,7 @@
|
|||||||
#:use-module (gnu packages polkit)
|
#:use-module (gnu packages polkit)
|
||||||
#:use-module (gnu packages pulseaudio)
|
#:use-module (gnu packages pulseaudio)
|
||||||
#:use-module (gnu packages stb)
|
#:use-module (gnu packages stb)
|
||||||
|
#:use-module (gnu packages window-management)
|
||||||
#:use-module (gnu packages xdisorg)
|
#:use-module (gnu packages xdisorg)
|
||||||
#:use-module (gnu packages xml))
|
#:use-module (gnu packages xml))
|
||||||
|
|
||||||
@@ -122,3 +123,56 @@ Wayland and OpenGL ES, with no Qt or GTK dependency.")
|
|||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-deprecated-package noctalia-shell noctalia)
|
(define-deprecated-package noctalia-shell noctalia)
|
||||||
|
|
||||||
|
(define-public noctalia-greeter
|
||||||
|
(package
|
||||||
|
(name "noctalia-greeter")
|
||||||
|
(version "1.5.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/noctalia-dev/noctalia-greeter")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0d8nkabqfid2fnfb0hryrl7lhgzv8ps0vjkz15hajf2ld5pf00r6"))))
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:build-type "release"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'prepare-for-build
|
||||||
|
(lambda _
|
||||||
|
;; Adjust import paths for STB headers packaged in Guix.
|
||||||
|
(substitute* (find-files "." "\\.cpp$|^meson\\.build$")
|
||||||
|
(("\\bstb/stb_") "stb_"))
|
||||||
|
;; Reproducibility.
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("'-march=native', '-mtune=native',") "")))))))
|
||||||
|
(native-inputs (list pkg-config wayland))
|
||||||
|
(inputs
|
||||||
|
(list cairo
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
|
glib
|
||||||
|
harfbuzz
|
||||||
|
jemalloc
|
||||||
|
(librsvg-for-system)
|
||||||
|
libwebp
|
||||||
|
libxkbcommon
|
||||||
|
libxml2
|
||||||
|
mesa
|
||||||
|
nlohmann-json
|
||||||
|
pango
|
||||||
|
stb-image-resize2
|
||||||
|
tomlplusplus
|
||||||
|
wayland
|
||||||
|
wayland-protocols
|
||||||
|
wlroots))
|
||||||
|
(home-page "https://noctalia.dev/")
|
||||||
|
(synopsis "Login greeter for greetd")
|
||||||
|
(description
|
||||||
|
"Noctalia Greeter is a minimal login greeter for greetd that matches the
|
||||||
|
look and feel of Noctalia Shell")
|
||||||
|
(license license:expat)))
|
||||||
@@ -5,14 +5,112 @@
|
|||||||
;; Utilities
|
;; Utilities
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix records)
|
#:use-module (guix records)
|
||||||
|
#:use-module (rosenthal utils contract combinators)
|
||||||
|
#:use-module (rosenthal utils file)
|
||||||
|
#:use-module (rosenthal utils records)
|
||||||
#:use-module (rosenthal utils packages)
|
#:use-module (rosenthal utils packages)
|
||||||
|
;; Guix System
|
||||||
|
#:use-module (gnu system keyboard)
|
||||||
;; Guix System - services
|
;; Guix System - services
|
||||||
|
#:use-module (gnu services)
|
||||||
#:use-module (gnu services base)
|
#:use-module (gnu services base)
|
||||||
|
#:use-module (gnu services dbus)
|
||||||
;; Guix packages
|
;; Guix packages
|
||||||
#:use-module (gnu packages admin)
|
#: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))
|
#:use-module (rosenthal packages wm)
|
||||||
|
#:export (noctalia-greeter-configuration
|
||||||
|
noctalia-greeter-service-type
|
||||||
|
greetd-noctalia-greeter-session
|
||||||
|
|
||||||
|
greetd-tuigreet-session))
|
||||||
|
|
||||||
|
|
||||||
|
;;;
|
||||||
|
;;; noctalia-greeter
|
||||||
|
;;;
|
||||||
|
|
||||||
|
(define-record-type/dolly <noctalia-greeter-configuration>
|
||||||
|
noctalia-greeter-configuration
|
||||||
|
make-noctalia-greeter-configuration
|
||||||
|
noctalia-greeter-configuration?
|
||||||
|
this-noctalia-greeter-configuration
|
||||||
|
(package
|
||||||
|
noctalia-greeter-configuration-package
|
||||||
|
(default noctalia-greeter)
|
||||||
|
(contract file-like?)
|
||||||
|
(documentation
|
||||||
|
"Noctalia greeter package."))
|
||||||
|
(keyboard-layout
|
||||||
|
noctalia-greeter-configuration-keyboard-layout
|
||||||
|
(default #f)
|
||||||
|
(contract (or/c #f keyboard-layout?))
|
||||||
|
(documentation
|
||||||
|
"Keyboard layout to use in a Noctalia greeter session.")))
|
||||||
|
|
||||||
|
(define (noctalia-greeter-activation-service _)
|
||||||
|
#~(mkdir-p/perms "/var/lib/noctalia-greeter" (getpwnam "greeter") #o750))
|
||||||
|
|
||||||
|
(define noctalia-greeter-special-files-service
|
||||||
|
(match-record-lambda/dolly <noctalia-greeter-configuration>
|
||||||
|
(keyboard-layout)
|
||||||
|
(if keyboard-layout
|
||||||
|
(let* ((name (keyboard-layout-name keyboard-layout))
|
||||||
|
(variant (keyboard-layout-variant keyboard-layout))
|
||||||
|
(options (keyboard-layout-options keyboard-layout))
|
||||||
|
(layout
|
||||||
|
`(("layout" . ,name)
|
||||||
|
,@(if variant
|
||||||
|
`(("variant" . ,variant))
|
||||||
|
'())
|
||||||
|
,@(if (null? options)
|
||||||
|
'()
|
||||||
|
`(("options" . ,(string-join options ",")))))))
|
||||||
|
`(("/var/lib/noctalia-greeter/greeter.toml"
|
||||||
|
,(toml-file "greeter.toml"
|
||||||
|
`(("keyboard" . ,layout))))))
|
||||||
|
'())))
|
||||||
|
|
||||||
|
(define noctalia-greeter-service-type
|
||||||
|
(service-type
|
||||||
|
(name 'noctalia-greeter)
|
||||||
|
(extensions
|
||||||
|
(list (service-extension activation-service-type
|
||||||
|
noctalia-greeter-activation-service)
|
||||||
|
(service-extension special-files-service-type
|
||||||
|
noctalia-greeter-special-files-service)
|
||||||
|
(service-extension polkit-service-type
|
||||||
|
(compose list noctalia-greeter-configuration-package))
|
||||||
|
(service-extension profile-service-type
|
||||||
|
(compose list noctalia-greeter-configuration-package))))
|
||||||
|
(default-value (noctalia-greeter-configuration))
|
||||||
|
(description "Set up environment for @command{noctalia-greeter-session}.")))
|
||||||
|
|
||||||
|
(define-record-type/dolly <greetd-noctalia-greeter-session>
|
||||||
|
greetd-noctalia-greeter-session
|
||||||
|
make-greetd-noctalia-greeter-session
|
||||||
|
greetd-noctalia-greeter-session?
|
||||||
|
this-greetd-noctalia-greeter-session
|
||||||
|
(noctalia-greeter-session
|
||||||
|
greetd-noctalia-greeter-session-noctalia-greeter-session
|
||||||
|
(default (file-append noctalia-greeter "/bin/noctalia-greeter-session"))
|
||||||
|
(contract (or/c file-like? string?))
|
||||||
|
(documentation
|
||||||
|
"@command{noctalia-greeter-session} executable file.")))
|
||||||
|
|
||||||
|
(define-gexp-compiler (greetd-noctalia-greeter-session-compiler
|
||||||
|
(session <greetd-noctalia-greeter-session>)
|
||||||
|
system target)
|
||||||
|
(match-record/dolly session <greetd-noctalia-greeter-session> (noctalia-greeter-session)
|
||||||
|
(lower-object
|
||||||
|
(program-file "noctalia-greeter-wrapper"
|
||||||
|
#~(execl #$noctalia-greeter-session #$noctalia-greeter-session)))))
|
||||||
|
|
||||||
|
|
||||||
|
;;;
|
||||||
|
;;; tuigreet
|
||||||
|
;;;
|
||||||
|
|
||||||
(define-record-type* <greetd-tuigreet-session>
|
(define-record-type* <greetd-tuigreet-session>
|
||||||
greetd-tuigreet-session make-greetd-tuigreet-session
|
greetd-tuigreet-session make-greetd-tuigreet-session
|
||||||
|
|||||||
Reference in new issue
Block a user