aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/spice.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2019-11-24 01:52:04 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2019-11-24 13:32:58 +0100
commit40df1928d63703092e5e782948f0924895077dca (patch)
treef8f82876edd3bc7db735483f48ac167a917fec4b /gnu/packages/spice.scm
parent39bf4e0bad499aa6f9388164e73197a501915ff6 (diff)
downloadguix-40df1928d63703092e5e782948f0924895077dca.tar.gz
guix-40df1928d63703092e5e782948f0924895077dca.zip
gnu: restic: Update to 0.9.6.
* gnu/packages/backup.scm (restic): Update to 0.9.6.
Diffstat (limited to 'gnu/packages/spice.scm')
0 files changed, 0 insertions, 0 deletions
-store-directory #o775)) (for-each (cut chmod <> #o777) '("/nix/var/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