Update + not working secretsd service
This commit is contained in:
parent
c6768eb6eb
commit
4db81bbde7
4 changed files with 48 additions and 8 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
(url "https://git.guix.gnu.org/guix.git")
|
(url "https://git.guix.gnu.org/guix.git")
|
||||||
(branch "master")
|
(branch "master")
|
||||||
(commit
|
(commit
|
||||||
"4bfe5cdf144183df08e7ac0e1c1acb7366e24bcf")
|
"0c28553113176cc498b622c5fc831c4b6ae844a0")
|
||||||
(introduction
|
(introduction
|
||||||
(make-channel-introduction
|
(make-channel-introduction
|
||||||
"9edb3f66fd807b096b48283debdcddccfea34bad"
|
"9edb3f66fd807b096b48283debdcddccfea34bad"
|
||||||
|
|
|
||||||
40
guix-config/home/services/secretsd.scm
Normal file
40
guix-config/home/services/secretsd.scm
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
(define-module (guix-config home services secretsd)
|
||||||
|
#:use-module (gnu home services)
|
||||||
|
#:use-module (gnu home services shepherd)
|
||||||
|
#:use-module (gnu packages bash)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages glib)
|
||||||
|
#:use-module (gnu packages password-utils)
|
||||||
|
#:use-module (gnu services)
|
||||||
|
#:use-module (gnu services shepherd)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix records)
|
||||||
|
#:export (home-secretsd-service-type))
|
||||||
|
|
||||||
|
(define (home-secretsd-shepherd-service config)
|
||||||
|
(list
|
||||||
|
(shepherd-service
|
||||||
|
(documentation "Run secretsd - secret service.")
|
||||||
|
(provision '(secretsd))
|
||||||
|
(start #~(lambda _
|
||||||
|
(mkdir-p (string-append (getenv "HOME")
|
||||||
|
"/.local/share/nullroute.lt/secretsd"))
|
||||||
|
(make-forkexec-constructor
|
||||||
|
(list
|
||||||
|
#$(file-append secretsd "/bin/secretsd") "-v")
|
||||||
|
#:log-file (string-append (getenv "HOME")
|
||||||
|
"/.local/var/log/secretsd.log"))))
|
||||||
|
(stop #~(make-kill-destructor)))))
|
||||||
|
|
||||||
|
(define home-secretsd-service-type
|
||||||
|
(service-type
|
||||||
|
(name 'home-secretsd)
|
||||||
|
(extensions
|
||||||
|
(list (service-extension home-shepherd-service-type
|
||||||
|
home-secretsd-shepherd-service)
|
||||||
|
(service-extension home-profile-service-type
|
||||||
|
(lambda (config)
|
||||||
|
(list dbus
|
||||||
|
secretsd)))))
|
||||||
|
(description "Install secretsd, a secret service. This service runs secretsd on start")
|
||||||
|
(default-value '())))
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
#:use-module (gnu home services sound)
|
#:use-module (gnu home services sound)
|
||||||
#:use-module (gnu home services desktop)
|
#:use-module (gnu home services desktop)
|
||||||
#:use-module (guix-config home services emacs)
|
#:use-module (guix-config home services emacs)
|
||||||
|
#:use-module (guix-config home services secretsd)
|
||||||
#:use-module (gnu home services niri))
|
#:use-module (gnu home services niri))
|
||||||
|
|
||||||
(home-environment
|
(home-environment
|
||||||
|
|
@ -81,6 +82,7 @@
|
||||||
(service home-dotfiles-service-type
|
(service home-dotfiles-service-type
|
||||||
(home-dotfiles-configuration
|
(home-dotfiles-configuration
|
||||||
(directories '("../../files"))))
|
(directories '("../../files"))))
|
||||||
|
(service home-secretsd-service-type)
|
||||||
; (service home-emacs-service-type
|
; (service home-emacs-service-type
|
||||||
; (home-emacs-configuration
|
; (home-emacs-configuration
|
||||||
; (emacs emacs-pgtk)
|
; (emacs emacs-pgtk)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,10 @@
|
||||||
|
|
||||||
(define %my-desktop-services
|
(define %my-desktop-services
|
||||||
(modify-services %desktop-services
|
(modify-services %desktop-services
|
||||||
(delete gdm-service-type)
|
(gdm-service-type config =>
|
||||||
|
(gdm-configuration
|
||||||
|
(inherit config)
|
||||||
|
(wayland? #t)))
|
||||||
(elogind-service-type config =>
|
(elogind-service-type config =>
|
||||||
(elogind-configuration
|
(elogind-configuration
|
||||||
(inherit config)
|
(inherit config)
|
||||||
|
|
@ -63,12 +66,7 @@
|
||||||
(list cups-filters epson-inkjet-printer-escpr hplip-minimal))))
|
(list cups-filters epson-inkjet-printer-escpr hplip-minimal))))
|
||||||
(service bluetooth-service-type)
|
(service bluetooth-service-type)
|
||||||
(service power-profiles-daemon-service-type)
|
(service power-profiles-daemon-service-type)
|
||||||
(simple-service 'my-polkit-wheel polkit-service-type (list my-polkit-wheel))
|
(simple-service 'my-polkit-wheel polkit-service-type (list my-polkit-wheel)))
|
||||||
(set-xorg-configuration
|
|
||||||
(xorg-configuration (keyboard-layout keyboard-layout))))
|
|
||||||
|
|
||||||
;; This is the default list of services we
|
|
||||||
;; are appending to.
|
|
||||||
%my-desktop-services))
|
%my-desktop-services))
|
||||||
(bootloader (bootloader-configuration
|
(bootloader (bootloader-configuration
|
||||||
(bootloader grub-bootloader)
|
(bootloader grub-bootloader)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue