aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/polkit.scm
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2024-01-08 20:38:14 +0100
committerMathieu Othacehe <othacehe@gnu.org>2024-01-17 18:30:27 +0100
commit685399c27dee4b2720d98267050257dd16f1ffc4 (patch)
treeda8c889742494a7407877b44078ffe9295483fd1 /gnu/packages/polkit.scm
parentdcc6f0537f593af49c0b3e96ab8350b3ceba694f (diff)
downloadguix-685399c27dee4b2720d98267050257dd16f1ffc4.tar.gz
guix-685399c27dee4b2720d98267050257dd16f1ffc4.zip
gnu: Add nghttp3.
* gnu/packages/web.scm (nghttp3): New variable. Change-Id: I4ed318506f6d3bdd0c47a367b1dcc1b4454c09b2 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'gnu/packages/polkit.scm')
0 files changed, 0 insertions, 0 deletions
ar/nix/profiles" "/nix/var/nix/profiles/per-user")))) (define nix-service-etc (match-lambda (($ <nix-configuration> package sandbox build-directory build-sandbox-items extra-config) (let ((ref-file (references-file package))) `(("nix/nix.conf" ,(computed-file "nix.conf" #~(begin (use-modules (srfi srfi-26) (ice-9 format)) (with-output-to-file #$output (lambda _ (define internal-sandbox-paths (call-with-input-file #$ref-file read)) (format #t "sandbox = ~a~%" (if #$sandbox "true" "false")) ;; config.nix captures store file names. (format #t "build-sandbox-paths = ~{~a ~}~%" (append (list (string-append "/bin/sh=" #$bash-minimal "/bin/sh")) internal-sandbox-paths '#$build-sandbox-items)) (for-each (cut display <>) '#$extra-config))))))))))) (define %nix-store-directory "/nix/store") (define %immutable-nix-store ;; Read-only store to avoid users or daemons accidentally modifying it. ;; 'nix-daemon' has provisions to remount it read-write in its own name ;; space. (list (file-system (device %nix-store-directory) (mount-point %nix-store-directory) (type "none") (check? #f) (flags '(read-only bind-mount))))) (define nix-shepherd-service ;; Return a <shepherd-service> for Nix. (match-lambda (($ <nix-configuration> package _ build-directory _ _ extra-options) (list (shepherd-service (provision '(nix-daemon)) (documentation "Run nix-daemon.") (requirement '(user-processes file-system-/nix/store)) (start #~(make-forkexec-constructor (list (string-append #$package "/bin/nix-daemon") #$@extra-options) #:environment-variables (list (string-append "TMPDIR=" #$build-directory) "PATH=/run/current-system/profile/bin"))) (respawn? #f) (stop #~(make-kill-destructor))))))) (define nix-service-type (service-type (name 'nix) (extensions (list (service-extension shepherd-root-service-type nix-shepherd-service) (service-extension account-service-type nix-accounts) (service-extension activation-service-type nix-activation) (service-extension etc-service-type nix-service-etc) (service-extension profile-service-type (compose list nix-configuration-package)) (service-extension file-system-service-type (const %immutable-nix-store)))) (description "Run the Nix daemon.") (default-value (nix-configuration)))) ;;; nix.scm ends here