Compare commits

..

No commits in common. "8f9d27482fc75a56f9517b002c7733dd4e014942" and "35dabaf755b2a960706fa99d9a306fef25dfe8e8" have entirely different histories.

5 changed files with 6 additions and 91 deletions

View File

@ -90,7 +90,6 @@ Rosenthal 頻道定義如下,將其加入 =~/.config/guix/channels.scm= 以由
+ emacs-wakatime-mode
+ forgejo
+ grub-efi-luks2
+ pam-dumb-runtime-dir
+ socks2http
+ tree-sitter-yaml
@ -116,7 +115,6 @@ Nonfree Software / 非自由軟件:
+ btrbk-service-type
+ clash-service-type
+ docker-mailserver-service-type
+ dumb-runtime-dir-service-type
+ iwd-service-type
+ forgejo-service-type
+ jellyfin-service-type

View File

@ -9,12 +9,10 @@
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (gnu packages admin)
#:use-module (gnu packages linux)
#:use-module (gnu packages m4)
#:use-module (gnu packages pkg-config))
#:use-module (gnu packages m4))
(define-public dinit
(package
@ -64,42 +62,6 @@ the user to manage services with dependencies and parallel startup.")
(list "-Dlibseat-logind=disabled")))))
(propagated-inputs '()))))
(define-public pam-dumb-runtime-dir
(package
(name "pam-dumb-runtime-dir")
(version "1.0.4")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ifreund/dumb_runtime_dir")
(commit (string-append "v" version))))
(sha256
(base32
"0nrxhvbh3bs4pi4f5h03zw1p1ys19qmmlx263ysly8302wkxk1m4"))))
(build-system gnu-build-system)
(arguments
(list #:tests? #f ;No tests.
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target))
(string-append "DESTDIR=" #$output)
"PREFIX=")
#:phases
#~(modify-phases %standard-phases
;; No configure script.
(delete 'configure))))
(native-inputs (list pkg-config))
(inputs (list linux-pam))
(home-page "https://github.com/ifreund/dumb_runtime_dir")
(synopsis "Create @code{XDG_RUNTIME_DIR} on login and never remove it")
(description
"This package creates an @code{XDG_RUNTIME_DIR} directory on login per
the freedesktop.org base directory spec. Flaunts the spec and never removes
it, even after last logout. This keeps things simple and predictable.
The user is responsible for ensuring that the @file{/run/user} directory
exists and is only writable by root.")
(license license:bsd-0)))
(define-public seatd-sans-logind
(let ((base seatd))
(package

View File

@ -394,7 +394,7 @@ monster-in-the-middle}.")
(define sidebery
(package
(name "sidebery")
(version "5.3.1.7")
(version "5.2.0.9")
(source
(origin
(method url-fetch/zipbomb)
@ -403,7 +403,7 @@ monster-in-the-middle}.")
(string-drop-right version 2) "/sidebery-" version ".xpi"))
(sha256
(base32
"0i2jwar0yb450gslj9rcw8bsldiqdr3r789p0fpmprr1kwzkynwx"))))
"0wb8rmq25sjnlig3pi1ix2kb8x91pilhh9ag4mk2yqsv9r4gcpw8"))))
(build-system copy-build-system)
(arguments
(list

View File

@ -33,7 +33,7 @@
(define-public forgejo
(package
(name "forgejo")
(version "10.0.1")
(version "10.0.0")
(source (origin
(method url-fetch)
(uri (string-append
@ -41,7 +41,7 @@
version "/forgejo-src-" version ".tar.gz"))
(sha256
(base32
"1jmw254xzx15n545cnjpvgdhhr39lfgd2jvmip1lxnl1hkaf6srw"))))
"0lwqn8l7dys7nnha47a05n865dsb13f973fkm167m3x8mwm8vm5i"))))
(build-system go-build-system)
(arguments
(list #:go go-1.23

View File

@ -5,15 +5,11 @@
(define-module (rosenthal services file-systems)
#:use-module (guix gexp)
#:use-module (gnu packages backup)
#:use-module (rosenthal packages admin)
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu services mcron)
#:use-module (gnu system pam)
#:export (btrbk-service-type
btrbk-configuration
dumb-runtime-dir-service-type))
btrbk-configuration))
;;
@ -48,44 +44,3 @@
btrbk-mcron-jobs)))
(default-value (btrbk-configuration))
(description "Configure and run btrbk hourly.")))
;;;
;;; pam-dumb-runtime-dir
;;;
(define dumb-runtime-dir-activation
#~(begin
(use-modules (guix build utils))
(mkdir-p "/run/user")
(chmod "/run/user" #o0755)))
(define dumb-runtime-dir-pam-service
(let ((optional-pam-entry
(pam-entry
(control "optional")
(module
(file-append
pam-dumb-runtime-dir "/lib/security/pam_dumb_runtime_dir.so")))))
(list (pam-extension
(transformer
(lambda (pam)
(if (string=? (pam-service-name pam) "login")
(pam-service
(inherit pam)
(session
(cons optional-pam-entry
(pam-service-session pam))))
pam)))))))
(define dumb-runtime-dir-service-type
(service-type
(name 'dumb-runtime-dir)
(extensions
(list (service-extension activation-service-type
(const dumb-runtime-dir-activation))
(service-extension pam-root-service-type
(const dumb-runtime-dir-pam-service))))
(default-value #f) ;No default value required.
(description "Create @code{XDG_RUNTIME_DIR} on login and never remove it.")))