mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
services: home-noctalia-shell: Create ~/.config/noctalia on activation.
This commit is contained in:
1 file changed
+17
-4
@@ -312,6 +312,17 @@ compositor.")))
|
|||||||
(file-like noctalia-shell)
|
(file-like noctalia-shell)
|
||||||
"File-like object to provide @command{/bin/noctalia-shell}."))
|
"File-like object to provide @command{/bin/noctalia-shell}."))
|
||||||
|
|
||||||
|
;; Create ~/.config/noctalia directory, otherwise Noctalia shell won't show up
|
||||||
|
;; on initial startup.
|
||||||
|
(define (%home-noctalia-shell-activation _)
|
||||||
|
(with-imported-modules (source-module-closure '((guix build utils)))
|
||||||
|
#~(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let ((xdg-config-home
|
||||||
|
(or (getenv "XDG_CONFIG_HOME")
|
||||||
|
(in-vicinity (getenv "HOME") ".config"))))
|
||||||
|
(mkdir-p (in-vicinity xdg-config-home "noctalia"))))))
|
||||||
|
|
||||||
(define %home-noctalia-shell-shepherd
|
(define %home-noctalia-shell-shepherd
|
||||||
(match-record-lambda <home-noctalia-shell-configuration>
|
(match-record-lambda <home-noctalia-shell-configuration>
|
||||||
(noctalia-shell)
|
(noctalia-shell)
|
||||||
@@ -329,10 +340,12 @@ compositor.")))
|
|||||||
(service-type
|
(service-type
|
||||||
(name 'home-noctalia-shell)
|
(name 'home-noctalia-shell)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension home-shepherd-service-type
|
(list (service-extension home-profile-service-type
|
||||||
%home-noctalia-shell-shepherd)
|
(compose list home-noctalia-shell-configuration-noctalia-shell))
|
||||||
(service-extension home-profile-service-type
|
(service-extension home-activation-service-type
|
||||||
(compose list home-noctalia-shell-configuration-noctalia-shell))))
|
%home-noctalia-shell-activation)
|
||||||
|
(service-extension home-shepherd-service-type
|
||||||
|
%home-noctalia-shell-shepherd)))
|
||||||
(default-value (home-noctalia-shell-configuration))
|
(default-value (home-noctalia-shell-configuration))
|
||||||
(description "")))
|
(description "")))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user